From 08bc6ecab59dc0715f783f030f594a33401d527e Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 14 May 2009 14:57:13 +0000 Subject: - 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 --- sys/dev/ata/ata-pci.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/ata/ata-pci.h') 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 */ -- cgit v1.1