printk_foo -> printk(BIOS_FOO, ...)
[coreboot.git] / src / southbridge / sis / sis966 / sis966_sata.c
index 8d831b975e009de71a3dbe2b4c3b4b98264c00ca..7fcee82f29eb2027d328170a4db4e45c1608945b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the LinuxBIOS project.
+ * This file is part of the coreboot project.
  *
  * Copyright (C) 2004 Tyan Computer
  * Written by Yinghai Lu <yhlu@tyan.com> for Tyan Computer.
@@ -111,13 +111,9 @@ uint8_t    SiS_SiS1183_init[68][3]={
 
 static void sata_init(struct device *dev)
 {
-       uint32_t dword;
        struct southbridge_sis_sis966_config *conf;
 
 
-struct resource *res;
-uint16_t base;
-uint8_t temp8;
 
        conf = dev->chip_info;
         print_debug("SATA_INIT:---------->\n");
@@ -145,7 +141,7 @@ for (i=0;i<10;i++){
    temp32=0;
    temp32= pci_read_config32(dev, 0xC0);
    for ( j=0;j<0xFFFF;j++);
-   printk_debug("status= %x\n",temp32);
+   printk(BIOS_DEBUG, "status= %x\n",temp32);
    if (((temp32&0xF) == 0x3) || ((temp32&0xF) == 0x0)) break;
 }
 
@@ -197,5 +193,5 @@ static struct device_operations sata_ops = {
 static const struct pci_driver sata0_driver __pci_driver = {
        .ops    = &sata_ops,
        .vendor = PCI_VENDOR_ID_SIS,
-       .device = PCI_DEVICE_ID_SIS_SIS966_SATA0,
+       .device = PCI_DEVICE_ID_SIS_SIS966_SATA,
 };