printk_foo -> printk(BIOS_FOO, ...)
[coreboot.git] / src / northbridge / intel / i945 / rcven.c
index 846af4f080dbe967782e6292b2c45561193b68e3..a912b2695fd7037ec55c11cad478e7bfc082f5a6 100644 (file)
@@ -67,7 +67,7 @@ static void set_receive_enable(int channel_offset, u8 medium, u8 coarse)
 {
        u32 reg32;
 
-       printk_spew("    set_receive_enable() medium=0x%x, coarse=0x%x\n", medium, coarse);
+       printk(BIOS_SPEW, "    set_receive_enable() medium=0x%x, coarse=0x%x\n", medium, coarse);
 
        reg32 = MCHBAR32(C0DRT1 + channel_offset);
        reg32 &= 0xf0ffffff;
@@ -76,7 +76,7 @@ static void set_receive_enable(int channel_offset, u8 medium, u8 coarse)
 
        /* This should never happen: */
        if (coarse > 0x0f)
-               printk_debug("set_receive_enable: coarse overflow: 0x%02x.\n", coarse);
+               printk(BIOS_DEBUG, "set_receive_enable: coarse overflow: 0x%02x.\n", coarse);
 
        /* medium control
         *
@@ -102,7 +102,7 @@ static void set_receive_enable(int channel_offset, u8 medium, u8 coarse)
 
 static int normalize(int channel_offset, u8 * mediumcoarse, u8 * fine)
 {
-       printk_spew("  normalize()\n");
+       printk(BIOS_SPEW, "  normalize()\n");
 
        if (*fine < 0x80)
                return 0;
@@ -111,7 +111,7 @@ static int normalize(int channel_offset, u8 * mediumcoarse, u8 * fine)
        *mediumcoarse += 1;
 
        if (*mediumcoarse >= 0x40) {
-               printk_debug("Normalize Error\n");
+               printk(BIOS_DEBUG, "Normalize Error\n");
                return -1;
        }
 
@@ -129,11 +129,11 @@ static int find_preamble(int channel_offset, u8 * mediumcoarse,
        /* find start of the data phase */
        u32 reg32;
 
-       printk_spew("  find_preamble()\n");
+       printk(BIOS_SPEW, "  find_preamble()\n");
 
        do {
                if (*mediumcoarse < 4) {
-                       printk_debug("No Preamble found.\n");
+                       printk(BIOS_DEBUG, "No Preamble found.\n");
                        return -1;
                }
                *mediumcoarse -= 4;
@@ -146,7 +146,7 @@ static int find_preamble(int channel_offset, u8 * mediumcoarse,
        } while (reg32 & (1 << 19));
 
        if (!(reg32 & (1 << 18))) {
-               printk_debug("No Preamble found (neither high nor low).\n");
+               printk(BIOS_DEBUG, "No Preamble found (neither high nor low).\n");
                return -1;
        }
 
@@ -159,14 +159,14 @@ static int find_preamble(int channel_offset, u8 * mediumcoarse,
 
 static int add_quarter_clock(int channel_offset, u8 * mediumcoarse, u8 * fine)
 {
-       printk_spew("  add_quarter_clock() mediumcoarse=%02x fine=%02x\n",
+       printk(BIOS_SPEW, "  add_quarter_clock() mediumcoarse=%02x fine=%02x\n",
                        *mediumcoarse, *fine);
        if (*fine >= 0x80) {
                *fine -= 0x80;
 
                *mediumcoarse += 2;
                if (*mediumcoarse >= 0x40) {
-                       printk_debug("clocks at max.\n");
+                       printk(BIOS_DEBUG, "clocks at max.\n");
                        return -1;
                }
 
@@ -186,7 +186,7 @@ static int find_strobes_low(int channel_offset, u8 * mediumcoarse, u8 * fine,
 {
        u32 rcvenmt;
 
-       printk_spew("  find_strobes_low()\n");
+       printk(BIOS_SPEW, "  find_strobes_low()\n");
 
        for (;;) {
                MCHBAR8(C0WL0REOST + channel_offset) = *fine;
@@ -211,7 +211,7 @@ static int find_strobes_low(int channel_offset, u8 * mediumcoarse, u8 * fine,
 
        }
 
-       printk_debug("Could not find low strobe\n");
+       printk(BIOS_DEBUG, "Could not find low strobe\n");
        return 0;
 }
 
@@ -222,7 +222,7 @@ static int find_strobes_edge(int channel_offset, u8 * mediumcoarse, u8 * fine,
        int counter;
        u32 rcvenmt;
 
-       printk_spew("  find_strobes_edge()\n");
+       printk(BIOS_SPEW, "  find_strobes_edge()\n");
 
        counter = 8;
        set_receive_enable(channel_offset, *mediumcoarse & 3,
@@ -257,7 +257,7 @@ static int find_strobes_edge(int channel_offset, u8 * mediumcoarse, u8 * fine,
                        continue;
                }
 
-               printk_debug("Could not find rising edge.\n");
+               printk(BIOS_DEBUG, "Could not find rising edge.\n");
                return -1;
        }
 
@@ -286,7 +286,7 @@ static int receive_enable_autoconfig(int channel_offset,
        u8 mediumcoarse;
        u8 fine;
 
-       printk_spew("receive_enable_autoconfig() for channel %d\n",
+       printk(BIOS_SPEW, "receive_enable_autoconfig() for channel %d\n",
                    channel_offset ? 1 : 0);
 
        /* Set initial values */
@@ -315,7 +315,7 @@ static int receive_enable_autoconfig(int channel_offset,
         * It can be removed when the output message is not printed anymore
         */
        if (MCHBAR8(C0WL0REOST + channel_offset) == 0) {
-               printk_debug("Weird. No C%sWL0REOST\n", channel_offset?"1":"0");
+               printk(BIOS_DEBUG, "Weird. No C%sWL0REOST\n", channel_offset?"1":"0");
        }
 
        return 0;