summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-pci.h
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-02-21 22:57:26 +0000
committermav <mav@FreeBSD.org>2009-02-21 22:57:26 +0000
commit96ec4168f2218b750f2e2abc983bf68587558543 (patch)
tree909b6034836014a4e73129dfe977ccd6e2eccf93 /sys/dev/ata/ata-pci.h
parent41927ea850d01215f1756c16d1bfa55f20e9fdbc (diff)
downloadFreeBSD-src-96ec4168f2218b750f2e2abc983bf68587558543.zip
FreeBSD-src-96ec4168f2218b750f2e2abc983bf68587558543.tar.gz
Improve ata_reinit():
- protect againtst recursions, - add new devices detection using ata_identify(). Improve ata_identify(): - do not add duplicate device if device already exist. Rework SATA hot-plug events handling. Instead of unsafe duplicate implementation use common ata_reinit() to handle all state changes. All together this gives quite stable and robust cold- and hot-plug operation, invariant to false, lost and duplicate events.
Diffstat (limited to 'sys/dev/ata/ata-pci.h')
-rw-r--r--sys/dev/ata/ata-pci.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/dev/ata/ata-pci.h b/sys/dev/ata/ata-pci.h
index 35de93a..27a341e 100644
--- a/sys/dev/ata/ata-pci.h
+++ b/sys/dev/ata/ata-pci.h
@@ -66,15 +66,6 @@ struct ata_pci_controller {
} interrupt[8]; /* XXX SOS max ch# for now */
};
-/* structure for SATA connection update hotplug/hotswap support */
-struct ata_connect_task {
- struct task task;
- device_t dev;
- int action;
-#define ATA_C_ATTACH 1
-#define ATA_C_DETACH 2
-};
-
/* defines for known chipset PCI id's */
#define ATA_ACARD_ID 0x1191
#define ATA_ATP850 0x00021191
@@ -451,7 +442,6 @@ int ata_check_80pin(device_t dev, int mode);
int ata_mode2idx(int mode);
/* global prototypes ata-sata.c */
-void ata_sata_phy_event(void *context, int dummy);
void ata_sata_phy_check_events(device_t dev);
int ata_sata_phy_reset(device_t dev);
void ata_sata_setmode(device_t dev, int mode);
OpenPOWER on IntegriCloud