We define IO_APIC_ADDR in <arch/ioapic.h>, let's use it.
[coreboot.git] / src / southbridge / via / vt8237r / vt8237r.h
index d451ee3acadb9c8fbe57de6e16c23a2446e80c8b..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
@@ -65,7 +65,7 @@
 #define I2C_TRANS_CMD                  0x40
 #define CLOCK_SLAVE_ADDRESS            0x69
 
-#if DEBUG_SMBUS == 1
+#if CONFIG_DEBUG_SMBUS
 #define PRINT_DEBUG(x)         print_debug(x)
 #define PRINT_DEBUG_HEX16(x)   print_debug_hex16(x)
 #else
@@ -103,4 +103,21 @@ __attribute__ ((packed))
 #endif
 ;
 
+#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);
+#endif
+
 #endif