1 void outl(unsigned int value, unsigned short port)
3 __builtin_outl(value, port);
6 #define PIIX4_DEVFN 0x90
7 #define SMBUS_MEM_DEVICE_START 0x50
8 #define SMBUS_MEM_DEVICE_END 0x53
9 #define SMBUS_MEM_DEVICE_INC 1
12 static void spd_set_drb(void)
15 * Effects: Uses serial presence detect to set the
16 * DRB registers which holds the ending memory address assigned
19 unsigned end_of_memory;
22 end_of_memory = 0; /* in multiples of 8MiB */
23 device = SMBUS_MEM_DEVICE_START;
24 while (device <= SMBUS_MEM_DEVICE_END) {
29 /* Compute the end address for the DRB register */
30 /* Only process dimms < 2GB (2^8 * 8MB) */
32 end_of_memory += (1 << side1_bits);
34 outl(end_of_memory, 0x1234);