We define IO_APIC_ADDR in <arch/ioapic.h>, let's use it.
[coreboot.git] / src / southbridge / via / vt8237r / vt8237r.h
index d6c50053a62813d88c7ffe5c9192ded60c096e1a..ba7089b414f1b1f7225aeb1c89f2541856bfa6ea 100644 (file)
@@ -35,7 +35,6 @@
 #define VT8237S_SPI_MEM_BASE           0xfed02000UL
 #endif
 #define VT8237R_HPET_ADDR              0xfed00000ULL
-#define VT8237R_APIC_BASE              0xfec00000ULL
 
 /* IDE */
 #define IDE_CS                         0x40
@@ -47,6 +46,7 @@
 #define IDE_UDMA                       0x50
 
 /* SMBus */
+#define VT8237R_PSON                   0x82
 #define VT8237R_POWER_WELL             0x94
 #define VT8237R_SMBUS_IO_BASE_REG      0xd0
 #define VT8237R_SMBUS_HOST_CONF                0xd2
@@ -103,7 +103,18 @@ __attribute__ ((packed))
 #endif
 ;
 
-#ifndef __PRE_RAM__
+#ifdef __PRE_RAM__
+#ifndef __ROMCC__
+u8 smbus_read_byte(u8 dimm, u8 offset);
+void enable_smbus(void);
+void smbus_fixup(const struct mem_controller *ctrl);
+// these are in vt8237_early_smbus.c - do they really belong there?
+void vt8237_sb_enable_fid_vid(void);
+void enable_rom_decode(void);
+void vt8237_early_spi_init(void);
+int vt8237_early_network_init(struct vt8237_network_rom *rom);
+#endif
+#else
 #include <device/device.h>
 void writeback(struct device *dev, u16 where, u8 what);
 void dump_south(device_t dev);