#ifndef VX800_H
#define VX800_H 1
-#ifndef __ROMCC__
-static void vx800_noop()
+#ifndef __PRE_RAM__
+#include <device/device.h>
+static inline void vx800_noop(device_t dev)
{
}
#endif
+
+#ifdef __PRE_RAM__
+/* vx800_early_smbus.c */
+struct mem_controller;
+void enable_smbus(void);
+void smbus_fixup(const struct mem_controller *mem_ctrl);
+
+/* vx800_early_serial.c */
+void enable_vx800_serial(void);
+#endif
+
//#define REV_B0 0x10
#define REV_B1 0x11
//#define REV_B2 0x12
#define SB_EHCI_REG 0,0x10, 4,
#define VX800SB_APIC_ID 0x4
-#define VX800SB_APIC_BASE 0xfec00000ULL
#define VX800SB_APIC_DATA_OFFSET 0x10
#define VX800SB_APIC_ENTRY_NUMBER 0x40