ioport.h

来自「基于组件方式开发操作系统的OSKIT源代码」· C头文件 代码 · 共 36 行

H
36
字号
/* * portio.h	Definitions of routines for detecting, reserving and *		allocating system resources. * * Version:	0.01	8/30/93 * * Author:	Donald Becker (becker@super.org) */#ifndef _LINUX_PORTIO_H#define _LINUX_PORTIO_H#define HAVE_PORTRESERVE/* * Call check_region() before probing for your hardware. * Once you have found you hardware, register it with request_region(). * If you unload the driver, use release_region to free ports. */extern void reserve_setup(char *str, int *ints);extern int check_region(unsigned long from, unsigned long extent);extern void request_region(unsigned long from, unsigned long extent,const char *name);extern void release_region(unsigned long from, unsigned long extent);extern int get_ioport_list(char *);#ifdef __sparc__extern unsigned long occupy_region(unsigned long base, unsigned long end,				   unsigned long num, unsigned int align,				   const char *name);#endif#define HAVE_AUTOIRQextern void autoirq_setup(int waittime);extern int autoirq_report(int waittime);#endif	/* _LINUX_PORTIO_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?