8897ee71fa82b868a6fb76a4607239a518d019af
[coreboot.git] / src / northbridge / amd / amdk8 / raminit.h
1 #ifndef RAMINIT_H
2 #define RAMINIT_H
3
4 #define NODE_NUMS 8
5
6 #define DIMM_SOCKETS 4
7 struct mem_controller {
8         unsigned node_id;
9         device_t f0, f1, f2, f3;
10         uint16_t channel0[DIMM_SOCKETS];
11         uint16_t channel1[DIMM_SOCKETS];
12 };
13
14 struct sys_info;
15 void exit_from_self(int controllers, const struct mem_controller *ctrl, struct sys_info *sysinfo);
16
17 #if defined(__PRE_RAM__) && defined(RAMINIT_SYSINFO) && RAMINIT_SYSINFO == 1
18 void sdram_initialize(int controllers, const struct mem_controller *ctrl, void *sysinfo);
19 #else
20 void sdram_initialize(int controllers, const struct mem_controller *ctrl);
21 #endif
22
23 #endif /* RAMINIT_H */