diff options
author | MIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org> | 2000-09-17 15:37:53 +0000 |
---|---|---|
committer | MIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org> | 2000-09-17 15:37:53 +0000 |
commit | 5935ef4c4408c94c9263e4687bb29c8c8e5df546 (patch) | |
tree | 6a4066043218ecf8a7bf87ba0f84b7b1031f72ff /sys/pccard/cardinfo.h | |
parent | df6bd679e7ebb3829208f614fd90cf4b8396cc0d (diff) |
add PIOCSRESOURCE(IOC_GET_RESOURCE_RANGE)
Now /usr/sbin/pccardd read free resource(io,irq) range with
this ioctl.
Original Idea from: PAO3
Notes
Notes:
svn path=/head/; revision=65991
Diffstat (limited to 'sys/pccard/cardinfo.h')
-rw-r--r-- | sys/pccard/cardinfo.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/pccard/cardinfo.h b/sys/pccard/cardinfo.h index f71cd6f2237f..3f8ffcec27eb 100644 --- a/sys/pccard/cardinfo.h +++ b/sys/pccard/cardinfo.h @@ -49,6 +49,7 @@ #define PIOCSPOW _IOW('P', 9, struct power) /* Set power structure */ #define PIOCSVIR _IOW('P', 10, int) /* Virtual insert/remove */ #define PIOCSBEEP _IOW('P', 11, int) /* Select Beep */ +#define PIOCSRESOURCE _IOWR('P', 12, struct pccard_resource) /* get resource info */ /* * Debug codes. */ @@ -137,6 +138,18 @@ struct power { }; /* + * Th PC-Card resource IOC_GET_RESOURCE_RANGE + */ +struct pccard_resource { + int type; + u_long size; + u_long min; + u_long max; + u_long resource_addr; +}; + + +/* * Other system limits */ #define MAXSLOT 16 |