summaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/atascsi.c14
-rw-r--r--sys/dev/ata/atascsi.h4
2 files changed, 15 insertions, 3 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c
index e37eeb71668..226ae07a3d0 100644
--- a/sys/dev/ata/atascsi.c
+++ b/sys/dev/ata/atascsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.c,v 1.48 2007/11/26 15:59:53 dlg Exp $ */
+/* $OpenBSD: atascsi.c,v 1.49 2007/11/26 20:13:53 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -155,6 +155,18 @@ atascsi_detach(struct atascsi *as, int flags)
}
int
+atascsi_probe_dev(struct atascsi *as, int port)
+{
+ return (scsi_probe_target(as->as_scsibus, port));
+}
+
+int
+atascsi_detach_dev(struct atascsi *as, int port, int flags)
+{
+ return (scsi_detach_target(as->as_scsibus, port, flags));
+}
+
+int
atascsi_probe(struct scsi_link *link)
{
struct atascsi *as = link->adapter_softc;
diff --git a/sys/dev/ata/atascsi.h b/sys/dev/ata/atascsi.h
index 37833225e43..5e2dccf405c 100644
--- a/sys/dev/ata/atascsi.h
+++ b/sys/dev/ata/atascsi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.h,v 1.27 2007/11/26 15:59:53 dlg Exp $ */
+/* $OpenBSD: atascsi.h,v 1.28 2007/11/26 20:13:53 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -312,4 +312,4 @@ struct atascsi *atascsi_attach(struct device *, struct atascsi_attach_args *);
int atascsi_detach(struct atascsi *, int);
int atascsi_probe_dev(struct atascsi *, int);
-int atascsi_detach_dev(struct atascsi *, int);
+int atascsi_detach_dev(struct atascsi *, int, int);