From a6a2de6bfe105b0e10afe940c4733952d41c8e7e Mon Sep 17 00:00:00 2001 From: dmlb Date: Tue, 8 May 2001 23:57:32 +0000 Subject: Use enumeration types for CARD_SET_RES_FLAGS. Approved by: imp --- sys/dev/cnw/if_cnw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/cnw') 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 +#include #include "card_if.h" #include @@ -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); -- cgit v1.1