Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

ioport.h

Go to the documentation of this file.
00001 /*
00002  * portio.h     Definitions of routines for detecting, reserving and
00003  *              allocating system resources.
00004  *
00005  * Version:     0.01    8/30/93
00006  *
00007  * Author:      Donald Becker (becker@super.org)
00008  */
00009 
00010 #ifndef _LINUX_PORTIO_H
00011 #define _LINUX_PORTIO_H
00012 
00013 #define HAVE_PORTRESERVE
00014 /*
00015  * Call check_region() before probing for your hardware.
00016  * Once you have found you hardware, register it with request_region().
00017  * If you unload the driver, use release_region to free ports.
00018  */
00019 extern void reserve_setup(char *str, int *ints);
00020 extern int check_region(unsigned long from, unsigned long extent);
00021 extern void request_region(unsigned long from, unsigned long extent,const char *name);
00022 extern void release_region(unsigned long from, unsigned long extent);
00023 extern int get_ioport_list(char *);
00024 
00025 #ifdef __sparc__
00026 extern unsigned long occupy_region(unsigned long base, unsigned long end,
00027                                    unsigned long num, unsigned int align,
00028                                    const char *name);
00029 #endif
00030 
00031 #define HAVE_AUTOIRQ
00032 extern void autoirq_setup(int waittime);
00033 extern int autoirq_report(int waittime);
00034 
00035 /*
00036  * for compatibility with 2.4
00037  */
00038 
00039 extern inline int check_mem_region(unsigned long from, unsigned long extent)
00040 {
00041         return 0;
00042 }
00043 
00044 extern inline void request_mem_region(unsigned long from, unsigned long extent,const char *name)
00045 {
00046 }
00047 
00048 extern inline void release_mem_region(unsigned long from, unsigned long extent)
00049 {
00050 }
00051 
00052 #endif  /* _LINUX_PORTIO_H */