summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-pci.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-05-14 14:57:13 +0000
committerjhb <jhb@FreeBSD.org>2009-05-14 14:57:13 +0000
commit08bc6ecab59dc0715f783f030f594a33401d527e (patch)
treec232043f6fe6090530acb8ced3f8f8d3b8b6c898 /sys/dev/ata/ata-pci.h
parent3d01a23aa92809ccebaeb94d1e91f41b47f7789e (diff)
downloadFreeBSD-src-08bc6ecab59dc0715f783f030f594a33401d527e.zip
FreeBSD-src-08bc6ecab59dc0715f783f030f594a33401d527e.tar.gz
- Add a void pointer to the ata-pci controller softc to allow
chipset-specific code to attach chipset-specific data. - Use chipset-specific data in the acard and promise chipsets rather than changing the ivars of ATA PCI devices. ivars are reserved for use by the parent bus driver and are _not_ available for use by devices directly. This fixes a panic during sysctl -a with certain Promise controllers with ACPI enabled. Reviewed by: mav Tested by: Magnus Kling (kingfon @ gmail) (on 7) MFC after: 3 days
Diffstat (limited to 'sys/dev/ata/ata-pci.h')
-rw-r--r--sys/dev/ata/ata-pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-pci.h b/sys/dev/ata/ata-pci.h
index b1f3eb7..b6c1fd8 100644
--- a/sys/dev/ata/ata-pci.h
+++ b/sys/dev/ata/ata-pci.h
@@ -66,6 +66,7 @@ struct ata_pci_controller {
void (*function)(void *);
void *argument;
} interrupt[8]; /* XXX SOS max ch# for now */
+ void *chipset_data;
};
/* defines for known chipset PCI id's */
OpenPOWER on IntegriCloud