diff options
author | jhb <jhb@FreeBSD.org> | 2009-05-14 14:57:13 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-05-14 14:57:13 +0000 |
commit | 08bc6ecab59dc0715f783f030f594a33401d527e (patch) | |
tree | c232043f6fe6090530acb8ced3f8f8d3b8b6c898 /sys/dev/ata/ata-pci.h | |
parent | 3d01a23aa92809ccebaeb94d1e91f41b47f7789e (diff) | |
download | FreeBSD-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.h | 1 |
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 */ |