Define and use PCCARD_MEM_PAGE_SIZE.
This commit is contained in:
parent
447bbaa2cf
commit
395fee2331
@ -631,7 +631,7 @@ pccard_function_enable(struct pccard_function *pf)
|
||||
if (tmp == NULL) {
|
||||
pf->ccr_rid = 0;
|
||||
pf->ccr_res = bus_alloc_resource(dev, SYS_RES_MEMORY,
|
||||
&pf->ccr_rid, 0, ~0, 1 << 10, RF_ACTIVE);
|
||||
&pf->ccr_rid, 0, ~0, PCCARD_MEM_PAGE_SIZE, RF_ACTIVE);
|
||||
if (!pf->ccr_res)
|
||||
goto bad;
|
||||
DEVPRINTF((dev, "ccr_res == %lx-%lx, base=%x\n",
|
||||
|
@ -73,6 +73,8 @@ struct pccard_mem_handle {
|
||||
|
||||
/* pccard itself */
|
||||
|
||||
#define PCCARD_MEM_PAGE_SIZE 4096
|
||||
|
||||
#define PCCARD_CFE_MWAIT_REQUIRED 0x0001
|
||||
#define PCCARD_CFE_RDYBSY_ACTIVE 0x0002
|
||||
#define PCCARD_CFE_WP_ACTIVE 0x0004
|
||||
|
Loading…
Reference in New Issue
Block a user