summaryrefslogtreecommitdiffstats
path: root/src/drivers/block
diff options
context:
space:
mode:
authorMichael Brown2009-08-09 16:20:46 +0200
committerMichael Brown2009-08-10 20:29:40 +0200
commit976f12c50120637410f30c17f8fbfcd5a49ed8fd (patch)
tree5eb97a35b019f02defae361a6611deffc3413b76 /src/drivers/block
parent[process] Make it safe to call process_add() multiple times (diff)
downloadipxe-976f12c50120637410f30c17f8fbfcd5a49ed8fd.tar.gz
ipxe-976f12c50120637410f30c17f8fbfcd5a49ed8fd.tar.xz
ipxe-976f12c50120637410f30c17f8fbfcd5a49ed8fd.zip
[scsi] Generalise iscsi_detached_command() to scsi_detached_command()
Diffstat (limited to 'src/drivers/block')
-rw-r--r--src/drivers/block/scsi.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/drivers/block/scsi.c b/src/drivers/block/scsi.c
index fe6dcd8c..19f99f82 100644
--- a/src/drivers/block/scsi.c
+++ b/src/drivers/block/scsi.c
@@ -45,6 +45,18 @@ block_to_scsi ( struct block_device *blockdev ) {
}
/**
+ * Handle SCSI command with no backing device
+ *
+ * @v scsi SCSI device
+ * @v command SCSI command
+ * @ret rc Return status code
+ */
+int scsi_detached_command ( struct scsi_device *scsi __unused,
+ struct scsi_command *command __unused ) {
+ return -ENODEV;
+}
+
+/**
* Issue SCSI command
*
* @v scsi SCSI device