1 | /*␊ |
2 | * dram controller access and scan from the pci host controller␊ |
3 | * Adapted for chameleon 2.0 RC5 by Rekursor from original :␊ |
4 | *␊ |
5 | * memtest86␊ |
6 | *␊ |
7 | * Released under version 2 of the Gnu Public License.␊ |
8 | * By Chris Brady, cbrady@sgi.com␊ |
9 | * ----------------------------------------------------␊ |
10 | * MemTest86+ V4.00 Specific code (GPL V2.0)␊ |
11 | * By Samuel DEMEULEMEESTER, sdemeule@memtest.org␊ |
12 | * http://www.canardpc.com - http://www.memtest.org␊ |
13 | */␊ |
14 | ␊ |
15 | #ifndef __LIBSAIO_DRAM_CONTROLLERS_H␊ |
16 | #define __LIBSAIO_DRAM_CONTROLLERS_H␊ |
17 | ␊ |
18 | #include "libsaio.h"␊ |
19 | ␊ |
20 | struct mem_controller_t {␊ |
21 | ␉uint16_t vendor;␊ |
22 | ␉uint16_t device;␊ |
23 | ␉char *name;␊ |
24 | ␉void (*initialise)(pci_dt_t *dram_dev);␊ |
25 | ␉void (*poll_speed)(pci_dt_t *dram_dev);␊ |
26 | ␉void (*poll_timings)(pci_dt_t *dram_dev);␊ |
27 | };␊ |
28 | ␊ |
29 | void scan_dram_controller(pci_dt_t *dram_dev);␊ |
30 | ␊ |
31 | #endif /* !__LIBSAIO_DRAM_CONTROLLERS_H */␊ |
32 | |