16 #if !defined(__ASSEMBLER__)
26 #define DEBUG_PERIODIC_SMIS 0
28 #define MAINBOARD_POWER_OFF 0
29 #define MAINBOARD_POWER_ON 1
30 #define MAINBOARD_POWER_KEEP 2
43 #define IDE_TIM_PRI 0x40
44 #define IDE_TIM_SEC 0x42
47 #define IDE_DECODE_ENABLE (1 << 15)
49 #define PCI_DMA_CFG 0x90
50 #define SERIRQ_CNTL 0x64
54 #define GEN_PMCON_3 0xa4
58 #define PMBASE_ADDR 0x0400
59 #define DEFAULT_PMBASE PMBASE_ADDR
60 #define ACPI_CNTL 0x44
61 #define ACPI_EN (1 << 4)
62 #define BIOS_CNTL 0x4E
63 #define GPIO_BASE 0x58
64 #define GPIO_CNTL 0x5C
65 #define GPIOBASE_ADDR 0x0500
66 #define PIRQA_ROUT 0x60
67 #define PIRQB_ROUT 0x61
68 #define PIRQC_ROUT 0x62
69 #define PIRQD_ROUT 0x63
70 #define PIRQE_ROUT 0x68
71 #define PIRQF_ROUT 0x69
72 #define PIRQG_ROUT 0x6A
73 #define PIRQH_ROUT 0x6B
82 #define SUB_BUS_NUM 0x1A
90 #define PCI_MAST_STS 0x82
92 #define RTC_FAILED (1 <<2)
95 #define WAK_STS (1 << 15)
96 #define PCIEXPWAK_STS (1 << 14)
97 #define PRBTNOR_STS (1 << 11)
98 #define RTC_STS (1 << 10)
99 #define PWRBTN_STS (1 << 8)
100 #define GBL_STS (1 << 5)
101 #define BM_STS (1 << 4)
102 #define TMROF_STS (1 << 0)
104 #define PCIEXPWAK_DIS (1 << 14)
105 #define RTC_EN (1 << 10)
106 #define PWRBTN_EN (1 << 8)
107 #define GBL_EN (1 << 5)
108 #define TMROF_EN (1 << 0)
110 #define GBL_RLS (1 << 2)
111 #define BM_RLD (1 << 1)
112 #define SCI_EN (1 << 0)
114 #define PROC_CNT 0x10
119 #define GPE0_STS 0x28
120 #define PME_B0_STS (1 << 13)
121 #define USB3_STS (1 << 12)
122 #define PME_STS (1 << 11)
123 #define BATLOW_STS (1 << 10)
124 #define GST_STS (1 << 9)
125 #define RI_STS (1 << 8)
126 #define SMB_WAK_STS (1 << 7)
127 #define TCOSCI_STS (1 << 6)
128 #define AC97_STS (1 << 5)
129 #define USB2_STS (1 << 4)
130 #define USB1_STS (1 << 3)
131 #define SWGPE_STS (1 << 2)
132 #define HOT_PLUG_STS (1 << 1)
133 #define THRM_STS (1 << 0)
135 #define PME_B0_EN (1 << 13)
136 #define PME_EN (1 << 11)
138 #define EL_SMI_EN (1 << 25)
139 #define INTEL_USB2_EN (1 << 18)
140 #define LEGACY_USB2_EN (1 << 17)
141 #define PERIODIC_EN (1 << 14)
142 #define TCO_EN (1 << 13)
143 #define MCSMI_EN (1 << 11)
144 #define BIOS_RLS (1 << 7)
145 #define SWSMI_TMR_EN (1 << 6)
146 #define APMC_EN (1 << 5)
147 #define SLP_SMI_EN (1 << 4)
148 #define LEGACY_USB_EN (1 << 3)
149 #define BIOS_EN (1 << 2)
151 #define GBL_SMI_EN (1 << 0)
153 #define ALT_GP_SMI_EN 0x38
154 #define ALT_GP_SMI_STS 0x3a
155 #define GPE_CNTL 0x42
156 #define DEVACT_STS 0x44
161 #define TCO1_CNT 0x08
163 #define GEN_PMCON_1 0xa0
164 #define GEN_PMCON_2 0xa2
165 #define GEN_PMCON_3 0xa4
168 #define RTC_BATTERY_DEAD (1 << 2)
169 #define RTC_POWER_FAILED (1 << 1)
170 #define SLEEP_AFTER_POWER_FAIL (1 << 0)
void i82801dx_enable(struct device *dev)
void i82801dx_early_init(void)