mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Use enumeration types for CARD_SET_RES_FLAGS.
Approved by: imp
This commit is contained in:
parent
0a177c3dca
commit
1fcaa98da5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76388
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user