summaryrefslogtreecommitdiffstats
path: root/sys/pccard/cardinfo.h
diff options
context:
space:
mode:
authorhosokawa <hosokawa@FreeBSD.org>2000-01-16 06:44:48 +0000
committerhosokawa <hosokawa@FreeBSD.org>2000-01-16 06:44:48 +0000
commit721d34c8d9cc1ca1480315326ea71269f671217d (patch)
tree10b960c7cc7e3fbf82a53de66e0c8b428cbbd6ab /sys/pccard/cardinfo.h
parentb0d0e9404a1f0c003f8cc2e5860cf6c551000367 (diff)
downloadFreeBSD-src-721d34c8d9cc1ca1480315326ea71269f671217d.zip
FreeBSD-src-721d34c8d9cc1ca1480315326ea71269f671217d.tar.gz
This fixes a bug that /etc/pccard_ether did not work without DHCP.
For example, when /etc/pccard.conf had ed0 in config line, but kernel refused this name and said devclass_alloc_unit: ed0 already exists, using next availale unit number Kernel used ed1 as device name and it did not match with config and insert/remove lines. Fortunately, dhclient was called without args, and it works, but if we wanted to use static IP address for PC-card, it did not work. This modification makes pccardd to execute insert/remove lines with the true device name that returns from kernel. (Last change to etc/pccard.conf.sample eliminated all hardwired device name from insert/remove lines in /etc/pccard.conf)
Diffstat (limited to 'sys/pccard/cardinfo.h')
-rw-r--r--sys/pccard/cardinfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pccard/cardinfo.h b/sys/pccard/cardinfo.h
index 425810b..06c6f4d 100644
--- a/sys/pccard/cardinfo.h
+++ b/sys/pccard/cardinfo.h
@@ -43,7 +43,7 @@
#define PIOCSMEM _IOW('P', 3, struct mem_desc) /* Set memory map */
#define PIOCGIO _IOWR('P', 4, struct io_desc) /* Get I/O map */
#define PIOCSIO _IOW('P', 5, struct io_desc) /* Set I/O map */
-#define PIOCSDRV _IOW('P', 6, struct dev_desc) /* Set driver */
+#define PIOCSDRV _IOWR('P', 6, struct dev_desc) /* Set driver */
#define PIOCRWFLAG _IOW('P', 7, int) /* Set flags for drv use */
#define PIOCRWMEM _IOWR('P', 8, unsigned long) /* Set mem for drv use */
#define PIOCSPOW _IOW('P', 9, struct power) /* Set power structure */
OpenPOWER on IntegriCloud