Fix all warnings in the tree
[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 void setup_resource_map(const unsigned int *register_values, int max);
17
18 #if defined(__PRE_RAM__) && defined(RAMINIT_SYSINFO) && RAMINIT_SYSINFO == 1
19 void sdram_initialize(int controllers, const struct mem_controller *ctrl, void *sysinfo);
20 #else
21 void sdram_initialize(int controllers, const struct mem_controller *ctrl);
22 #endif
23
24 #endif /* RAMINIT_H */