diff options
author | sanpei <sanpei@FreeBSD.org> | 2000-09-17 15:37:53 +0000 |
---|---|---|
committer | sanpei <sanpei@FreeBSD.org> | 2000-09-17 15:37:53 +0000 |
commit | 62e0e10410c07cfb086acfffd093bbecd52cff35 (patch) | |
tree | 62261bcb4571e37f2fe5ce92ad2b845b3f212b9f /sys/pccard/cardinfo.h | |
parent | cb16f04f5df020842df077b1d1cbfe2b7352cf09 (diff) | |
download | FreeBSD-src-62e0e10410c07cfb086acfffd093bbecd52cff35.zip FreeBSD-src-62e0e10410c07cfb086acfffd093bbecd52cff35.tar.gz |
add PIOCSRESOURCE(IOC_GET_RESOURCE_RANGE)
Now /usr/sbin/pccardd read free resource(io,irq) range with
this ioctl.
Original Idea from: PAO3
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 f71cd6f..3f8ffce 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 |