summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcicvar.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-05-21 07:32:46 +0000
committerimp <imp@FreeBSD.org>2001-05-21 07:32:46 +0000
commitc65c10ec83e1ab12358a1571f7f75953c4dfe8ee (patch)
tree0fb53887ca5deed42ecae227e3b0ffafc6f33b0c /sys/pccard/pcicvar.h
parentf7d282ea3828a1ca17113361093844bed305303c (diff)
downloadFreeBSD-src-c65c10ec83e1ab12358a1571f7f75953c4dfe8ee.zip
FreeBSD-src-c65c10ec83e1ab12358a1571f7f75953c4dfe8ee.tar.gz
Move allocation of ExCA registers from the base driver into the bus
attachment code.
Diffstat (limited to 'sys/pccard/pcicvar.h')
-rw-r--r--sys/pccard/pcicvar.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/pccard/pcicvar.h b/sys/pccard/pcicvar.h
index 1f2329d..3d66040 100644
--- a/sys/pccard/pcicvar.h
+++ b/sys/pccard/pcicvar.h
@@ -44,13 +44,11 @@ struct pcic_softc
{
u_int32_t slotmask; /* Mask of valid slots */
u_int32_t flags; /* Interesting flags */
-#define PCIC_IO_MAPPED 0x00000001 /* ExCA registers are io mapped */
-#define PCIC_MEM_MAPPED 0x00000002 /* ExCA registers mem mapped */
-#define PCIC_VG_POWER 0x00000004 /* Uses VG power regs */
-#define PCIC_DF_POWER 0x00000008 /* Uses DF step regs */
-#define PCIC_PD_POWER 0x00000010 /* Uses CL-PD regs */
-#define PCIC_KING_POWER 0x00000020 /* Uses IBM KING regs */
-#define PCIC_AB_POWER 0x00000040 /* Use old A/B step power */
+#define PCIC_AB_POWER 0x00000001 /* Use old A/B step power */
+#define PCIC_DF_POWER 0x00000002 /* Uses DF step regs */
+#define PCIC_PD_POWER 0x00000004 /* Uses CL-PD regs */
+#define PCIC_VG_POWER 0x00000008 /* Uses VG power regs */
+#define PCIC_KING_POWER 0x00000010 /* Uses IBM KING regs */
int iorid; /* Rid of I/O region */
struct resource *iores; /* resource for I/O region */
int memrid;
@@ -84,3 +82,4 @@ int pcic_set_memory_offset(device_t bus, device_t child, int rid,
u_int32_t offset, u_int32_t *deltap);
void pcic_clrb(struct pcic_slot *sp, int reg, unsigned char mask);
void pcic_setb(struct pcic_slot *sp, int reg, unsigned char mask);
+void pcic_dealloc(device_t dev);
OpenPOWER on IntegriCloud