1 static void spd_set_nbxcfg(void)
4 * Effects: Uses serial presence detect to set the
5 * ECC support flags in the NBXCFG register
6 * FIXME: Check for illegal/unsupported ram configurations and abort
10 for(device = 0x50; device <= 0x53; device += 1) {
13 byte = 0; /* Disable ECC */
14 /* 0 == None, 1 == Parity, 2 == ECC */
15 if (byte != 2) continue;
17 /* set the device I'm talking too */
18 __builtin_outb(device, 0x1004);
20 /* poll for transaction completion */
21 byte = __builtin_inb(0x10);
23 byte = __builtin_inb(0x10);