aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pccard/pccardvarp.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2012-06-28 07:26:44 +0000
committerWarner Losh <imp@FreeBSD.org>2012-06-28 07:26:44 +0000
commit96eb909a847541f9b1e6d18c4a0768a118996ed8 (patch)
tree04f97b90ce4a03085f53a2e754a73961b272e589 /sys/dev/pccard/pccardvarp.h
parent6e45677ab74895d768008867df750725998b857c (diff)
Notes
Diffstat (limited to 'sys/dev/pccard/pccardvarp.h')
-rw-r--r--sys/dev/pccard/pccardvarp.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/sys/dev/pccard/pccardvarp.h b/sys/dev/pccard/pccardvarp.h
index 7996efb812020..54d7f7501aebd 100644
--- a/sys/dev/pccard/pccardvarp.h
+++ b/sys/dev/pccard/pccardvarp.h
@@ -47,29 +47,32 @@
#define PCCARD_CFE_READONLY 0x0400
#define PCCARD_CFE_AUDIO 0x0800
+struct pccard_ce_iospace {
+ u_long length;
+ u_long start;
+};
+
+struct pccard_ce_memspace {
+ u_long length;
+ u_long cardaddr;
+ u_long hostaddr;
+};
+
struct pccard_config_entry {
int number;
uint32_t flags;
int iftype;
int num_iospace;
-
/*
* The card will only decode this mask in any case, so we can
* do dynamic allocation with this in mind, in case the suggestions
* below are no good.
*/
u_long iomask;
- struct {
- u_long length;
- u_long start;
- } iospace[4]; /* XXX this could be as high as 16 */
+ struct pccard_ce_iospace iospace[4]; /* XXX up to 16 */
uint16_t irqmask;
int num_memspace;
- struct {
- u_long length;
- u_long cardaddr;
- u_long hostaddr;
- } memspace[2]; /* XXX this could be as high as 8 */
+ struct pccard_ce_memspace memspace[2]; /* XXX up to 8 */
int maxtwins;
STAILQ_ENTRY(pccard_config_entry) cfe_list;
};