summaryrefslogtreecommitdiffstats
path: root/sys/pccard/cardinfo.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-03-26 08:05:20 +0000
committerimp <imp@FreeBSD.org>2001-03-26 08:05:20 +0000
commitf828dc3f2f7d66be243c4e79988d6260b9544d9d (patch)
tree86ab5515ce3ff44d7daf3df5cf334ff8a557fc76 /sys/pccard/cardinfo.h
parent67e856d53e2fe31a60ac85723ca9aceb19995186 (diff)
downloadFreeBSD-src-f828dc3f2f7d66be243c4e79988d6260b9544d9d.zip
FreeBSD-src-f828dc3f2f7d66be243c4e79988d6260b9544d9d.tar.gz
First step towards plugging the "pccard is trying to map into a BIOS
region for CIS reading" problem: Use bus_alloc_resource to get the memory that we'll be using. Also has the benefit of doing usage checking as well. This gets rid of the ugly kludge that we had before for mapping pmem to vmem. Second, move PIOCSRESOURCE to its own routine and make it conform more to style(9) in the process.
Diffstat (limited to 'sys/pccard/cardinfo.h')
-rw-r--r--sys/pccard/cardinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pccard/cardinfo.h b/sys/pccard/cardinfo.h
index ff5d7fc..4224d48 100644
--- a/sys/pccard/cardinfo.h
+++ b/sys/pccard/cardinfo.h
@@ -156,5 +156,6 @@ struct pccard_resource {
#define NUM_MEM_WINDOWS 10
#define NUM_IO_WINDOWS 6
#define CARD_DEVICE "/dev/card%d" /* String for snprintf */
+#define PCCARD_MEMSIZE (4*1024)
#endif /* !_PCCARD_CARDINFO_H_ */
OpenPOWER on IntegriCloud