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 snarf_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 externvoidsnarf_region(unsignedintfrom, unsignedintextent);
22 externvoidregister_iomem(unsignedintfrom, unsignedintextent,char* name);
23 externvoidrelease_region(unsignedintfrom, unsignedintextent);
24 externintget_ioport_list(char *);
25
26
27 #defineHAVE_AUTOIRQ 28 externvoid *irq2dev_map[16]; /* Use only if you own the IRQ. */ 29 externvoidautoirq_setup(intwaittime);
30 externintautoirq_report(intwaittime);
31
32 #endif/* _LINUX_PORTIO_H */