Import 2.3.6
[davej-history.git] / include / linux / ioport.h
blobb5eef44dd3dc42a8119b2df43cae987036235581
1 /*
2 * portio.h Definitions of routines for detecting, reserving and
3 * allocating system resources.
5 * Version: 0.01 8/30/93
7 * Author: Donald Becker (becker@super.org)
8 */
10 #ifndef _LINUX_PORTIO_H
11 #define _LINUX_PORTIO_H
13 #define HAVE_PORTRESERVE
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.
19 extern void reserve_setup(char *str, int *ints);
20 extern int check_region(unsigned long from, unsigned long extent);
21 extern void request_region(unsigned long from, unsigned long extent,const char *name);
22 extern void release_region(unsigned long from, unsigned long extent);
23 extern int get_ioport_list(char *);
25 #ifdef __sparc__
26 extern unsigned long occupy_region(unsigned long base, unsigned long end,
27 unsigned long num, unsigned int align,
28 const char *name);
29 #endif
31 #define HAVE_AUTOIRQ
32 extern void autoirq_setup(int waittime);
33 extern int autoirq_report(int waittime);
35 #endif /* _LINUX_PORTIO_H */