summaryrefslogtreecommitdiffstats
path: root/sys/dev/cnw
diff options
context:
space:
mode:
authordmlb <dmlb@FreeBSD.org>2001-05-08 23:57:32 +0000
committerdmlb <dmlb@FreeBSD.org>2001-05-08 23:57:32 +0000
commita6a2de6bfe105b0e10afe940c4733952d41c8e7e (patch)
treeac246c8ae05b33089df2bfdc7b4747852c76e80e /sys/dev/cnw
parent073481bfe460b5c3e8e404662589ecca867a94e0 (diff)
downloadFreeBSD-src-a6a2de6bfe105b0e10afe940c4733952d41c8e7e.zip
FreeBSD-src-a6a2de6bfe105b0e10afe940c4733952d41c8e7e.tar.gz
Use enumeration types for CARD_SET_RES_FLAGS.
Approved by: imp
Diffstat (limited to 'sys/dev/cnw')
-rw-r--r--sys/dev/cnw/if_cnw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/cnw/if_cnw.c b/sys/dev/cnw/if_cnw.c
index b291ff2..fdfb903 100644
--- a/sys/dev/cnw/if_cnw.c
+++ b/sys/dev/cnw/if_cnw.c
@@ -264,6 +264,7 @@ struct cfattach cnw_ca = {
#include <net/bpf.h>
+#include <dev/pccard/pccardvar.h>
#include "card_if.h"
#include <dev/cnw/if_cnwioctl.h>
@@ -1701,7 +1702,7 @@ static int cnw_alloc(dev)
}
error = CARD_SET_RES_FLAGS(device_get_parent(dev), dev,
- SYS_RES_MEMORY, rid, 2);
+ SYS_RES_MEMORY, rid, PCCARD_A_MEM_8BIT);
if (error) {
device_printf(dev,
"CARD_SET_RES_FLAGS returned 0x%0x\n", error);
OpenPOWER on IntegriCloud