diff options
author | Tatsumi Hosokawa <hosokawa@FreeBSD.org> | 2000-01-16 06:44:48 +0000 |
---|---|---|
committer | Tatsumi Hosokawa <hosokawa@FreeBSD.org> | 2000-01-16 06:44:48 +0000 |
commit | a7da6b679e4eafc66c5481d52dd19a135d855660 (patch) | |
tree | 9c9ba13ba489f2cbaf2014003b204fe6662f08c2 /sys/pccard/cardinfo.h | |
parent | 58361cb1b99e10453f009e370c0d862b7dd49cb3 (diff) | |
download | src-a7da6b679e4eafc66c5481d52dd19a135d855660.tar.gz src-a7da6b679e4eafc66c5481d52dd19a135d855660.zip |
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)
Notes
Notes:
svn path=/head/; revision=56095
Diffstat (limited to 'sys/pccard/cardinfo.h')
-rw-r--r-- | sys/pccard/cardinfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pccard/cardinfo.h b/sys/pccard/cardinfo.h index 425810b69ccf..06c6f4d63005 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 */ |