Define and use PCCARD_MEM_PAGE_SIZE.

This commit is contained in:
Warner Losh 2005-09-13 17:49:47 +00:00
parent 447bbaa2cf
commit 395fee2331
2 changed files with 3 additions and 1 deletions

View File

@ -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",

View File

@ -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