Displaying 4 results from an estimated 4 matches for "scsi_command_complet".
Did you mean:
scsi_command_complete
2009 Oct 27
2
[PATCH 3/4] scsi-disk: Factor out SCSI command emulation
...if (!sense)
- return 0;
+ return 0;
sense_buf[0] = 0xf0; /* current, fixed format */
sense_buf[2] = (sense >> 16) & 0x0F;
@@ -154,15 +164,19 @@ int32_t scsi_build_sense(uint8_t *sense_buf, uint32_t sense)
}
/* Helper function for command completion. */
-static void scsi_command_complete(SCSIRequest *r, int status, int sense)
+static void scsi_command_complete(SCSIRequest *r, int status, uint32_t sense)
{
SCSIDiskState *s = r->dev;
uint32_t tag;
- DPRINTF("Command complete tag=0x%x status=%d sense=%d\n", r->tag, status, sense);
- s->sense = sens...
2009 Oct 27
2
[PATCH 3/4] scsi-disk: Factor out SCSI command emulation
...if (!sense)
- return 0;
+ return 0;
sense_buf[0] = 0xf0; /* current, fixed format */
sense_buf[2] = (sense >> 16) & 0x0F;
@@ -154,15 +164,19 @@ int32_t scsi_build_sense(uint8_t *sense_buf, uint32_t sense)
}
/* Helper function for command completion. */
-static void scsi_command_complete(SCSIRequest *r, int status, int sense)
+static void scsi_command_complete(SCSIRequest *r, int status, uint32_t sense)
{
SCSIDiskState *s = r->dev;
uint32_t tag;
- DPRINTF("Command complete tag=0x%x status=%d sense=%d\n", r->tag, status, sense);
- s->sense = sens...
2009 Oct 27
0
[PATCH 1/4] Add 'raid' interface class
...= 0xf0; /* current, fixed format */
+ sense_buf[2] = (sense >> 16) & 0x0F;
+ sense_buf[7] = 10;
+ sense_buf[12] = (sense >> 8 ) & 0xFF;
+ sense_buf[13] = sense & 0xFF;
+
+ return SCSI_SENSE_LEN;
+}
+
/* Helper function for command completion. */
static void scsi_command_complete(SCSIRequest *r, int status, int sense)
{
diff --git a/hw/scsi-disk.h b/hw/scsi-disk.h
index b6b6c12..5b54272 100644
--- a/hw/scsi-disk.h
+++ b/hw/scsi-disk.h
@@ -9,6 +9,23 @@ enum scsi_reason {
SCSI_REASON_DATA /* Transfer complete, more data required. */
};
+/* LUN not ready, Manual in...
2009 Oct 27
0
[PATCH 1/4] Add 'raid' interface class
...= 0xf0; /* current, fixed format */
+ sense_buf[2] = (sense >> 16) & 0x0F;
+ sense_buf[7] = 10;
+ sense_buf[12] = (sense >> 8 ) & 0xFF;
+ sense_buf[13] = sense & 0xFF;
+
+ return SCSI_SENSE_LEN;
+}
+
/* Helper function for command completion. */
static void scsi_command_complete(SCSIRequest *r, int status, int sense)
{
diff --git a/hw/scsi-disk.h b/hw/scsi-disk.h
index b6b6c12..5b54272 100644
--- a/hw/scsi-disk.h
+++ b/hw/scsi-disk.h
@@ -9,6 +9,23 @@ enum scsi_reason {
SCSI_REASON_DATA /* Transfer complete, more data required. */
};
+/* LUN not ready, Manual in...