aboutsummaryrefslogtreecommitdiff
path: root/src/superio/via/vt1211/vt1211.h
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-11-06 23:36:49 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-11-06 23:36:49 +0000
commit8c02368e2d2e0574cf3999939f7cd26407cdf93a (patch)
tree2996402213709670055760e58caa605474a76b44 /src/superio/via/vt1211/vt1211.h
parent9915944b18847b5e83b664a3e445645a2a4c8578 (diff)
Various Super I/O fixes and corrections.
- VIA VT1211: - Add missing LDNs and respective code to handle them. - Add some TODOs for other stuff that needs fixing. - Use VT1211_SP1 instead of hardcoding the LDN number (2). - Fixup pnp_dev_info[] as per datasheet, but some TODOs remain. - Various coding style fixes and changes to u8/u16/etc. - Serverengines Pilot: Various coding style fixes and changes to u8/u16/etc. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6030 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/superio/via/vt1211/vt1211.h')
-rw-r--r--src/superio/via/vt1211/vt1211.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/superio/via/vt1211/vt1211.h b/src/superio/via/vt1211/vt1211.h
index cbf5b77c97..eaffa2e993 100644
--- a/src/superio/via/vt1211/vt1211.h
+++ b/src/superio/via/vt1211/vt1211.h
@@ -18,17 +18,16 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-/* vt1211 PNP devices */
-
-#define VT1211_FDC 0 /* Floppy */
-#define VT1211_PP 1 /* Parallel Port */
-#define VT1211_SP1 2 /* COM1 */
-#define VT1211_SP2 3 /* COM2 */
-#define VT1211_MIDI 6 /* MIDI */
-#define VT1211_GAME 7 /* Game port */
-#define VT1211_GPIO 8 /* GPIO pins */
-#define VT1211_WATCHDOG 9 /* Watchdog timer */
-#define VT1211_WAKEUP 10 /* Wakeup control */
-#define VT1211_HWM 11 /* Hardware monitor */
-#define VT1211_FIR 12 /* Irda */
-#define VT1211_ROM 13 /* ROM control */
+/* Logical device numbers (LDNs). */
+#define VT1211_FDC 0x00 /* Floppy */
+#define VT1211_PP 0x01 /* Parallel port */
+#define VT1211_SP1 0x02 /* COM1 */
+#define VT1211_SP2 0x03 /* COM2 */
+#define VT1211_MIDI 0x06 /* MIDI */
+#define VT1211_GAME 0x07 /* Game port (GMP) */
+#define VT1211_GPIO 0x08 /* GPIO */
+#define VT1211_WDG 0x09 /* Watchdog timer (WDG) */
+#define VT1211_WUC 0x0a /* Wake-up control (WUC) */
+#define VT1211_HWM 0x0b /* Hardware monitor (HM) */
+#define VT1211_FIR 0x0c /* Very fast IR (VFIR/FIR) */
+#define VT1211_ROM 0x0d /* Flash ROM */