1 /* 2 * portio.h Definitions of routines for detecting, reserving and 3 * allocating system resources. 4 * 5 * Version: 0.01 8/30/93 6 * 7 * Author: Donald Becker (becker@super.org) 8 */ 9
10 #ifndef_LINUX_PORTIO_H 11 #define_LINUX_PORTIO_H 12
13 #defineHAVE_PORTRESERVE 14 /* 15 * Call check_region() before probing for your hardware. 16 * Once you have found you hardware, register it with request_region(). 17 * If you unload the driver, use release_region to free ports. 18 */ 19 externvoidreserve_setup(char *str, int *ints);
20 externintcheck_region(unsignedintfrom, unsignedintextent);
21 externvoidrequest_region(unsignedintfrom, unsignedintextent,constchar *name);
22 externvoidrelease_region(unsignedintfrom, unsignedintextent);
23 externintget_ioport_list(char *);
24
25
26 #defineHAVE_AUTOIRQ 27 externvoid *irq2dev_map[16]; /* Use only if you own the IRQ. */ 28 externintautoirq_setup(intwaittime);
29 externintautoirq_report(intwaittime);
30
31 #endif/* _LINUX_PORTIO_H */