Chameleon

Chameleon Svn Source Tree

Root/tags/2.1/i386/libsaio/dram_controllers.h

Source at commit 2381 created 10 years 21 days ago.
By ifabio, Apply patch: (Credits to Thomas Jansen aka tja) - Reading options from all devices during boot. The options for the boot menu are only read from the devices rd(0,0) or bt(0,0). Consequently, boot menu options (e.g. "Quiet Boot", "Timeout", etc.) in plists on other devices (like most users have) are ignored. This patch extends the list of paths to search for the options plist on all devices that can be found.
1/*
2 * dram controller access and scan from the pci host controller
3 * Integrated and adapted for chameleon 2.0 RC5 by Rekursor from bs0d work
4 * original source comes from:
5 *
6 * memtest86
7 *
8 * Released under version 2 of the Gnu Public License.
9 * By Chris Brady, cbrady@sgi.com
10 * ----------------------------------------------------
11 * MemTest86+ V4.00 Specific code (GPL V2.0)
12 * By Samuel DEMEULEMEESTER, sdemeule@memtest.org
13 * http://www.canardpc.com - http://www.memtest.org
14 */
15
16#ifndef __LIBSAIO_DRAM_CONTROLLERS_H
17#define __LIBSAIO_DRAM_CONTROLLERS_H
18
19#include "libsaio.h"
20
21void scan_dram_controller();
22
23struct mem_controller_t {
24uint16_t vendor;
25uint16_t device;
26char *name;
27void (*initialise)(pci_dt_t *dram_dev);
28void (*poll_speed)(pci_dt_t *dram_dev);
29void (*poll_timings)(pci_dt_t *dram_dev);
30};
31
32#endif /* !__LIBSAIO_DRAM_CONTROLLERS_H */
33

Archive Download this file

Revision: 2381