summaryrefslogtreecommitdiffstats
path: root/sys/pccard/i82365.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-05-21 04:44:14 +0000
committerimp <imp@FreeBSD.org>2001-05-21 04:44:14 +0000
commit39ce0c191f33005482c9f4adc3d7d6b886254fbd (patch)
tree55dac8fe4e7ef08d0c8d4e0dafb0af852a5390da /sys/pccard/i82365.h
parentc647eb3dd3a3fe40270d6f28f46bb14b0e82f03f (diff)
downloadFreeBSD-src-39ce0c191f33005482c9f4adc3d7d6b886254fbd.zip
FreeBSD-src-39ce0c191f33005482c9f4adc3d7d6b886254fbd.tar.gz
Next step on the road to pci: power taming.
Work through the various power commands and convert them from a "is this a foo controller or a foo' controller or a foo''' controller" to a cabability based scheme. We have bits in the softc that tell us what kind of power control scheme the controller uses, rather than relying on being able to enumerate them all. Cardbus bridges are numerous, but nearly all implement the i82365sl-DF scheme (well, a few implement cirrus CL-PD67xx, but those were made by Cirrus Logic!). Add a pointer back to the softc in each pcic_slot so we can access these flags. Add comments that talk about the issues here. Also note in passing that there are two differ Vpp schemes in use and that we may need to adjust the code to deal with both of them. Note why it usually works now. We have 5 power management modes right now: KING, AB, DF, PD and VG. AB is for the i82365 stpes A, B and C. DF is for step DF. PD is the cirrus logic extensions for 3.3V while VG is the VADEM extensions for 3.3V. KING is for the IBM KING controller found on some old cards. # I'm looking for one of those old cards or a laptop that has the KING # bridge in it. We have to still cheat and treat the AB parts like the DF parts because pci isn't here yet. As far as I can tell, this is harmless for actual old parts and necessary to work with 3.3V cards in some laptops. This almost eliminates all tests for controller in the code. There are still a few unrelated to power that need taming as well.
Diffstat (limited to 'sys/pccard/i82365.h')
-rw-r--r--sys/pccard/i82365.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pccard/i82365.h b/sys/pccard/i82365.h
index d53aa69..15cc7fb 100644
--- a/sys/pccard/i82365.h
+++ b/sys/pccard/i82365.h
@@ -122,6 +122,7 @@
#define PCIC_PCPWRE 0x10 /* PC Card Power Enable */
#define PCIC_VCC 0x18 /* Vcc control bits */
#define PCIC_VCC_5V 0x10 /* 5 volts */
+#define PCIC_VCC_ON 0x10 /* Turn on VCC on some chips. */
#define PCIC_VCC_3V 0x18 /* 3 volts */
#define PCIC_VCC_5V_KING 0x14 /* 5 volts for KING PCIC */
#define PCIC_VPP 0x03 /* Vpp control bits */
OpenPOWER on IntegriCloud