diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-11-26 20:13:54 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-11-26 20:13:54 +0000 |
commit | b20385d2f1c51e1f986e2bf3d315188f64a2527b (patch) | |
tree | 64e1889f9842247f870c71029ba6589444a9901d /sys | |
parent | b252b09cf2d3193465c7734ba49a5479db9ee060 (diff) |
implement atascsi_probe_dev and atascsi_detach_dev. they let a hba tell
the midlayer(s) what to do.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ata/atascsi.c | 14 | ||||
-rw-r--r-- | sys/dev/ata/atascsi.h | 4 |
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); |