coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lpc.h File Reference

Go to the source code of this file.

Macros

#define PCH_LPC_DEV   PCI_DEV(0, LPC_DEV, LPC_FUNC)
 
#define SERIRQ_CNTL   0x64
 
#define LPC_IO_DEC   0x80 /* IO Decode Ranges Register */
 
#define FDD_LPC_SHIFT   12 /* LPC_IO_DEC[12] */
 
#define FDD_DEC_MASK   1
 
#define FDD_DEC_3F8   0 /* 3F0h - 3F5Fh, 3F7h (Primary) */
 
#define FDD_DEC_2F8   1 /* 370h - 375h, 377h (Secondary) */
 
#define LPT_LPC_SHIFT   8 /* LPC_IO_DEC[9:8] */
 
#define LPT_DEC_MASK   3
 
#define LPT_DEC_378   0 /* 378h - 37Fh and 778h - 77Fh */
 
#define LPT_DEC_278   1 /* 278h - 27Fh and 678h - 67Fh */
 
#define LPT_DEC_3BC   2 /* 3BCh - 3BEh and 7BCh - 7BEh */
 
#define COMB_LPC_SHIFT   4 /* LPC_IO_DEC[6:4] */
 
#define COMA_LPC_SHIFT   0 /* LPC_IO_DEC[2:0] */
 
#define COM_DEC_MASK   7
 
#define COM_DEC_3F8   0 /* 3F8h - 3FFh (COM1) */
 
#define COM_DEC_2F8   1 /* 2F8h - 2FFh (COM2) */
 
#define COM_DEC_220   2 /* 220h - 227h */
 
#define COM_DEC_228   3 /* 228h - 22Fh */
 
#define COM_DEC_238   4 /* 238h - 23Fh */
 
#define COM_DEC_2E8   5 /* 2E8h - 2EFh (COM4) */
 
#define COM_DEC_338   6 /* 338h - 33Fh */
 
#define COM_DEC_3E8   7 /* 3E8h - 3EFh (COM3) */
 
#define LPC_EN   0x82 /* LPC IF Enables Register */
 
#define CNF2_LPC_EN   (1 << 13) /* 0x4e/0x4f */
 
#define CNF1_LPC_EN   (1 << 12) /* 0x2e/0x2f */
 
#define MC_LPC_EN   (1 << 11) /* 0x62/0x66 */
 
#define KBC_LPC_EN   (1 << 10) /* 0x60/0x64 */
 
#define GAMEH_LPC_EN   (1 << 9) /* 0x208/0x20f */
 
#define GAMEL_LPC_EN   (1 << 8) /* 0x200/0x207 */
 
#define FDD_LPC_EN   (1 << 3) /* LPC_IO_DEC[12] */
 
#define LPT_LPC_EN   (1 << 2) /* LPC_IO_DEC[9:8] */
 
#define COMB_LPC_EN   (1 << 1) /* LPC_IO_DEC[6:4] */
 
#define COMA_LPC_EN   (1 << 0) /* LPC_IO_DEC[2:0] */
 
#define LPC_GEN1_DEC   0x84 /* LPC IF Generic Decode Range 1 */
 
#define LPC_GEN2_DEC   0x88 /* LPC IF Generic Decode Range 2 */
 
#define LPC_GEN3_DEC   0x8c /* LPC IF Generic Decode Range 3 */
 
#define LPC_GEN4_DEC   0x90 /* LPC IF Generic Decode Range 4 */
 

Macro Definition Documentation

◆ CNF1_LPC_EN

#define CNF1_LPC_EN   (1 << 12) /* 0x2e/0x2f */

Definition at line 33 of file lpc.h.

◆ CNF2_LPC_EN

#define CNF2_LPC_EN   (1 << 13) /* 0x4e/0x4f */

Definition at line 32 of file lpc.h.

◆ COM_DEC_220

#define COM_DEC_220   2 /* 220h - 227h */

Definition at line 25 of file lpc.h.

◆ COM_DEC_228

#define COM_DEC_228   3 /* 228h - 22Fh */

Definition at line 26 of file lpc.h.

◆ COM_DEC_238

#define COM_DEC_238   4 /* 238h - 23Fh */

Definition at line 27 of file lpc.h.

◆ COM_DEC_2E8

#define COM_DEC_2E8   5 /* 2E8h - 2EFh (COM4) */

Definition at line 28 of file lpc.h.

◆ COM_DEC_2F8

#define COM_DEC_2F8   1 /* 2F8h - 2FFh (COM2) */

Definition at line 24 of file lpc.h.

◆ COM_DEC_338

#define COM_DEC_338   6 /* 338h - 33Fh */

Definition at line 29 of file lpc.h.

◆ COM_DEC_3E8

#define COM_DEC_3E8   7 /* 3E8h - 3EFh (COM3) */

Definition at line 30 of file lpc.h.

◆ COM_DEC_3F8

#define COM_DEC_3F8   0 /* 3F8h - 3FFh (COM1) */

Definition at line 23 of file lpc.h.

◆ COM_DEC_MASK

#define COM_DEC_MASK   7

Definition at line 22 of file lpc.h.

◆ COMA_LPC_EN

#define COMA_LPC_EN   (1 << 0) /* LPC_IO_DEC[2:0] */

Definition at line 41 of file lpc.h.

◆ COMA_LPC_SHIFT

#define COMA_LPC_SHIFT   0 /* LPC_IO_DEC[2:0] */

Definition at line 21 of file lpc.h.

◆ COMB_LPC_EN

#define COMB_LPC_EN   (1 << 1) /* LPC_IO_DEC[6:4] */

Definition at line 40 of file lpc.h.

◆ COMB_LPC_SHIFT

#define COMB_LPC_SHIFT   4 /* LPC_IO_DEC[6:4] */

Definition at line 20 of file lpc.h.

◆ FDD_DEC_2F8

#define FDD_DEC_2F8   1 /* 370h - 375h, 377h (Secondary) */

Definition at line 14 of file lpc.h.

◆ FDD_DEC_3F8

#define FDD_DEC_3F8   0 /* 3F0h - 3F5Fh, 3F7h (Primary) */

Definition at line 13 of file lpc.h.

◆ FDD_DEC_MASK

#define FDD_DEC_MASK   1

Definition at line 12 of file lpc.h.

◆ FDD_LPC_EN

#define FDD_LPC_EN   (1 << 3) /* LPC_IO_DEC[12] */

Definition at line 38 of file lpc.h.

◆ FDD_LPC_SHIFT

#define FDD_LPC_SHIFT   12 /* LPC_IO_DEC[12] */

Definition at line 11 of file lpc.h.

◆ GAMEH_LPC_EN

#define GAMEH_LPC_EN   (1 << 9) /* 0x208/0x20f */

Definition at line 36 of file lpc.h.

◆ GAMEL_LPC_EN

#define GAMEL_LPC_EN   (1 << 8) /* 0x200/0x207 */

Definition at line 37 of file lpc.h.

◆ KBC_LPC_EN

#define KBC_LPC_EN   (1 << 10) /* 0x60/0x64 */

Definition at line 35 of file lpc.h.

◆ LPC_EN

#define LPC_EN   0x82 /* LPC IF Enables Register */

Definition at line 31 of file lpc.h.

◆ LPC_GEN1_DEC

#define LPC_GEN1_DEC   0x84 /* LPC IF Generic Decode Range 1 */

Definition at line 42 of file lpc.h.

◆ LPC_GEN2_DEC

#define LPC_GEN2_DEC   0x88 /* LPC IF Generic Decode Range 2 */

Definition at line 43 of file lpc.h.

◆ LPC_GEN3_DEC

#define LPC_GEN3_DEC   0x8c /* LPC IF Generic Decode Range 3 */

Definition at line 44 of file lpc.h.

◆ LPC_GEN4_DEC

#define LPC_GEN4_DEC   0x90 /* LPC IF Generic Decode Range 4 */

Definition at line 45 of file lpc.h.

◆ LPC_IO_DEC

#define LPC_IO_DEC   0x80 /* IO Decode Ranges Register */

Definition at line 10 of file lpc.h.

◆ LPT_DEC_278

#define LPT_DEC_278   1 /* 278h - 27Fh and 678h - 67Fh */

Definition at line 18 of file lpc.h.

◆ LPT_DEC_378

#define LPT_DEC_378   0 /* 378h - 37Fh and 778h - 77Fh */

Definition at line 17 of file lpc.h.

◆ LPT_DEC_3BC

#define LPT_DEC_3BC   2 /* 3BCh - 3BEh and 7BCh - 7BEh */

Definition at line 19 of file lpc.h.

◆ LPT_DEC_MASK

#define LPT_DEC_MASK   3

Definition at line 16 of file lpc.h.

◆ LPT_LPC_EN

#define LPT_LPC_EN   (1 << 2) /* LPC_IO_DEC[9:8] */

Definition at line 39 of file lpc.h.

◆ LPT_LPC_SHIFT

#define LPT_LPC_SHIFT   8 /* LPC_IO_DEC[9:8] */

Definition at line 15 of file lpc.h.

◆ MC_LPC_EN

#define MC_LPC_EN   (1 << 11) /* 0x62/0x66 */

Definition at line 34 of file lpc.h.

◆ PCH_LPC_DEV

#define PCH_LPC_DEV   PCI_DEV(0, LPC_DEV, LPC_FUNC)

Definition at line 7 of file lpc.h.

◆ SERIRQ_CNTL

#define SERIRQ_CNTL   0x64

Definition at line 9 of file lpc.h.