diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-11-26 15:59:54 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-11-26 15:59:54 +0000 |
commit | 4c8ec346c37b4e89be57a88234cc8f9aaee197b7 (patch) | |
tree | b0678cd95ee5987dd23e570e92ffa2c55e827aaa /sys/dev/pci | |
parent | 95771ee153fc60e2025cf02b022fc75928ce33ec (diff) |
drive port probes from the scsi midlayer now that it will ask the adapter
if a device is there before doing any scsi commands. also implement a free
path for when devices are detached. software hotplug has been tested on
sili, and ahci is still working according to claudio@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/ahci.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c index 7b75c0ec7c8..c9aef7bd030 100644 --- a/sys/dev/pci/ahci.c +++ b/sys/dev/pci/ahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahci.c,v 1.133 2007/11/19 01:18:48 pascoe Exp $ */ +/* $OpenBSD: ahci.c,v 1.134 2007/11/26 15:59:53 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -508,12 +508,14 @@ int ahci_pwait_eq(struct ahci_port *, bus_size_t, /* provide methods for atascsi to call */ int ahci_ata_probe(void *, int); +void ahci_ata_free(void *, int); struct ata_xfer * ahci_ata_get_xfer(void *, int); void ahci_ata_put_xfer(struct ata_xfer *); int ahci_ata_cmd(struct ata_xfer *); struct atascsi_methods ahci_atascsi_methods = { ahci_ata_probe, + ahci_ata_free, ahci_ata_get_xfer, ahci_ata_cmd }; @@ -2195,6 +2197,12 @@ ahci_ata_probe(void *xsc, int port) return (ATA_PORT_T_DISK); } +void +ahci_ata_free(void *xsc, int port) +{ + +} + struct ata_xfer * ahci_ata_get_xfer(void *aaa_cookie, int port) { |