amdfam10: add phenom II as known cpu
[coreboot.git] / src / northbridge / amd / amdfam10 / setup_resource_map.c
index b91c9222c1b84e4e5a05077631d8e736f38ee30f..4a1da02f5a5e30cfbed2d3f979f259e045f24af7 100644 (file)
@@ -41,9 +41,7 @@ static void setup_resource_map(const u32 *register_values, u32 max)
 }
 
 
-static void setup_resource_map_offset(const u32 *register_values,
-                                       u32 max, u32 offset_pci_dev,
-                                       u32 offset_io_base)
+void setup_resource_map_offset(const u32 *register_values, u32 max, u32 offset_pci_dev, u32 offset_io_base)
 {
        u32 i;
 //     print_debug("setting up resource map offset....");
@@ -66,8 +64,7 @@ static void setup_resource_map_offset(const u32 *register_values,
 #define RES_PORT_IO_32 0x20
 #define RES_MEM_IO 0x40
 
-static void setup_resource_map_x_offset(const u32 *register_values, u32 max,
-                                       u32 offset_pci_dev, u32 offset_io_base)
+void setup_resource_map_x_offset(const u32 *register_values, u32 max, u32 offset_pci_dev, u32 offset_io_base)
 {
        u32 i;
 
@@ -81,7 +78,7 @@ static void setup_resource_map_x_offset(const u32 *register_values, u32 max,
 #endif
        for(i = 0; i < max; i += 4) {
 #if RES_DEBUG
-               printk_debug("%04x: %02x %08x <- & %08x | %08x\n",
+               printk(BIOS_DEBUG, "%04x: %02x %08x <- & %08x | %08x\n",
                        i/4, register_values[i],
                        register_values[i+1] + ( (register_values[i]==RES_PCI_IO) ? offset_pci_dev : 0),
                        register_values[i+2],
@@ -133,7 +130,8 @@ static void setup_resource_map_x_offset(const u32 *register_values, u32 max,
        print_debug("done.\n");
 #endif
 }
-static void setup_resource_map_x(const u32 *register_values, u32 max)
+
+void setup_resource_map_x(const u32 *register_values, u32 max)
 {
        u32 i;
 
@@ -146,7 +144,7 @@ static void setup_resource_map_x(const u32 *register_values, u32 max)
 #endif
        for(i = 0; i < max; i += 4) {
 #if RES_DEBUG
-               printk_debug("%04x: %02x %08x <- & %08x | %08x\n",
+               printk(BIOS_DEBUG, "%04x: %02x %08x <- & %08x | %08x\n",
                i/4, register_values[i],register_values[i+1], register_values[i+2], register_values[i+3]);
 #endif
                switch (register_values[i]) {
@@ -195,6 +193,7 @@ static void setup_resource_map_x(const u32 *register_values, u32 max)
 #endif
 }
 
+#if 0
 static void setup_iob_resource_map(const u32 *register_values, u32 max)
 {
        u32 i;
@@ -227,5 +226,5 @@ static void setup_io_resource_map(const u32 *register_values, u32 max)
                outl(reg, where);
        }
 }
-
+#endif