| * devops.c: Device operations using the PROM. |
| * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) |
| * Copyright (C) 1996,1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) |
| #include <linux/kernel.h> |
| #include <asm/openprom.h> |
| /* Open the device described by the string 'dstr'. Returns the handle |
| * to that device used for subsequent operations on that device. |
| prom_devopen(const char *dstr) |
| args[0] = (unsigned long) "open"; |
| args[3] = (unsigned long) dstr; |
| args[4] = (unsigned long) -1; |
| /* Close the device described by device handle 'dhandle'. */ |
| prom_devclose(int dhandle) |
| args[0] = (unsigned long) "close"; |
| args[3] = (unsigned int) dhandle; |
| /* Seek to specified location described by 'seekhi' and 'seeklo' |
| prom_seek(int dhandle, unsigned int seekhi, unsigned int seeklo) |
| args[0] = (unsigned long) "seek"; |
| args[3] = (unsigned int) dhandle; |
| args[6] = (unsigned long) -1; |