summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pccard/pccardd
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-05-09 22:01:16 +0000
committerwpaul <wpaul@FreeBSD.org>2000-05-09 22:01:16 +0000
commit517c12e1248a798d9d889e3eede185a5e669f3ef (patch)
tree79c84e6ccbcfaaa9e8e252a5e310e615a65294be /usr.sbin/pccard/pccardd
parent9bb1617433495d432c109d90e229bb800b7bc9d7 (diff)
downloadFreeBSD-src-517c12e1248a798d9d889e3eede185a5e669f3ef.zip
FreeBSD-src-517c12e1248a798d9d889e3eede185a5e669f3ef.tar.gz
When setting up an iomem resources, remember to set the MEM_ASSIGNED bit
so that pccardd actually does something to set up the memory range.
Diffstat (limited to 'usr.sbin/pccard/pccardd')
-rw-r--r--usr.sbin/pccard/pccardd/cardd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c
index c7dedac..ccac0b3 100644
--- a/usr.sbin/pccard/pccardd/cardd.c
+++ b/usr.sbin/pccard/pccardd/cardd.c
@@ -528,6 +528,7 @@ assign_io(struct slot *sp)
sp->config->driver->mem = sp->mem.addr;
}
sp->mem.cardaddr = 0x4000;
+ sp->flags |= MEM_ASSIGNED;
if (debug_level > 0) {
logmsg("Using mem addr 0x%x, size %d, card addr 0x%x\n",
sp->mem.addr, sp->mem.size, sp->mem.cardaddr);
OpenPOWER on IntegriCloud