summaryrefslogtreecommitdiff
path: root/sys/dev/ata/atascsi.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-11-26 15:59:54 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-11-26 15:59:54 +0000
commit4c8ec346c37b4e89be57a88234cc8f9aaee197b7 (patch)
treeb0678cd95ee5987dd23e570e92ffa2c55e827aaa /sys/dev/ata/atascsi.h
parent95771ee153fc60e2025cf02b022fc75928ce33ec (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/ata/atascsi.h')
-rw-r--r--sys/dev/ata/atascsi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/atascsi.h b/sys/dev/ata/atascsi.h
index 5245029ff23..37833225e43 100644
--- a/sys/dev/ata/atascsi.h
+++ b/sys/dev/ata/atascsi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.h,v 1.26 2007/11/23 18:21:55 dlg Exp $ */
+/* $OpenBSD: atascsi.h,v 1.27 2007/11/26 15:59:53 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -291,6 +291,7 @@ struct ata_xfer {
struct atascsi_methods {
int (*probe)(void *, int);
+ void (*free)(void *, int);
struct ata_xfer * (*ata_get_xfer)(void *, int );
int (*ata_cmd)(struct ata_xfer *);
};