summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-09-13 17:49:47 +0000
committerimp <imp@FreeBSD.org>2005-09-13 17:49:47 +0000
commit18f70966e16b283c5de2a153845883df65c57db5 (patch)
treeea5abe135a8bc0342ea28f1ed7dba0efb7e5210e /sys/dev/pccard
parent0e4f08263aa58ebb5a7c3ecc8a5633998e397594 (diff)
downloadFreeBSD-src-18f70966e16b283c5de2a153845883df65c57db5.zip
FreeBSD-src-18f70966e16b283c5de2a153845883df65c57db5.tar.gz
Define and use PCCARD_MEM_PAGE_SIZE.
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r--sys/dev/pccard/pccard.c2
-rw-r--r--sys/dev/pccard/pccardvar.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c
index 406dc57..6bd7d7d 100644
--- a/sys/dev/pccard/pccard.c
+++ b/sys/dev/pccard/pccard.c
@@ -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",
diff --git a/sys/dev/pccard/pccardvar.h b/sys/dev/pccard/pccardvar.h
index c36d5af..ee385cd 100644
--- a/sys/dev/pccard/pccardvar.h
+++ b/sys/dev/pccard/pccardvar.h
@@ -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
OpenPOWER on IntegriCloud