diff options
author | 2007-11-26 15:59:53 +0000 | |
---|---|---|
committer | 2007-11-26 15:59:53 +0000 | |
commit | 3969a3623a50f7de43a64ad8ff4ff1ea18ae556c (patch) | |
tree | 3255ddc85cce4bc259d53b1f88c9a337f89dbd3a /sys/dev/pci/ahci.c | |
parent | Avoid resetting PCS. Don't do loopback at the serial link. (diff) | |
download | wireguard-openbsd-3969a3623a50f7de43a64ad8ff4ff1ea18ae556c.tar.xz wireguard-openbsd-3969a3623a50f7de43a64ad8ff4ff1ea18ae556c.zip |
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/ahci.c')
-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) { |