--- sys/dev/disk/nata/ata-chipset.c.orig	2008-03-24 13:46:10 +0100
+++ sys/dev/disk/nata/ata-chipset.c	2008-03-24 13:46:24 +0100
@@ -462,7 +462,7 @@
     static struct ata_chip_id id = {0, 0, 0, 0x00, ATA_SA300, "AHCI"};
     char buffer[64];
 
-    if (pci_read_config(dev, PCIR_PROGIF, 1) != PCIP_STORAGE_SATA_AHCI_1_0)
+    if (pci_read_config(dev, PCIR_PROGIF, 1) != PCIP_STORAGE_SATA_AHCI)
 	return ENXIO;
 
     if (bootverbose)
@@ -1395,7 +1395,7 @@
     if (ctlr->chip->cfg1 & ATIAHCI) {
 	/* Check if the chip is configured as an AHCI part. */
 	if ((pci_get_subclass(dev) == PCIS_STORAGE_SATA) &&
-	    (pci_read_config(dev, PCIR_PROGIF, 1) == PCIP_STORAGE_SATA_AHCI_1_0)) {
+	    (pci_read_config(dev, PCIR_PROGIF, 1) == PCIP_STORAGE_SATA_AHCI)) {
 	    /* Check if the chip has PCI BAR 5 as memory resource. */
 	    ctlr->r_type2 = SYS_RES_MEMORY;
 	    ctlr->r_rid2 = PCIR_BAR(5);	/* 0x24 */


