[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 24/24] lsi53c895a: Rename 'sense' to 'status'
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 24/24] lsi53c895a: Rename 'sense' to 'status' |
Date: |
Sun, 8 May 2011 17:05:19 +0100 |
From: Hannes Reinecke <address@hidden>
The 'sense' field in the HBA status structure is misnamed, as it
actually carries the SCSI status. Rename it.
Signed-off-by: Hannes Reinecke <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Cc: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
hw/lsi53c895a.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index be4df58..2ce38a9 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -189,7 +189,7 @@ typedef struct {
uint32_t script_ram_base;
int carry; /* ??? Should this be an a visible register somewhere? */
- int sense;
+ int status;
/* Action to take at the end of a MSG IN phase.
0 = COMMAND, 1 = disconnect, 2 = DATA OUT, 3 = DATA IN. */
int msg_action;
@@ -695,8 +695,8 @@ static void lsi_command_complete(SCSIBus *bus, int reason,
uint32_t tag,
out = (s->sstat1 & PHASE_MASK) == PHASE_DO;
if (reason == SCSI_REASON_DONE) {
- DPRINTF("Command complete sense=%d\n", (int)arg);
- s->sense = arg;
+ DPRINTF("Command complete status=%d\n", (int)arg);
+ s->status = arg;
s->command_complete = 2;
if (s->waiting && s->dbc != 0) {
/* Raise phase mismatch for short transfers. */
@@ -783,14 +783,14 @@ static void lsi_do_command(LSIState *s)
static void lsi_do_status(LSIState *s)
{
- uint8_t sense;
- DPRINTF("Get status len=%d sense=%d\n", s->dbc, s->sense);
+ uint8_t status;
+ DPRINTF("Get status len=%d status=%d\n", s->dbc, s->status);
if (s->dbc != 1)
BADF("Bad Status move\n");
s->dbc = 1;
- sense = s->sense;
- s->sfbr = sense;
- cpu_physical_memory_write(s->dnad, &sense, 1);
+ status = s->status;
+ s->sfbr = status;
+ cpu_physical_memory_write(s->dnad, &status, 1);
lsi_set_phase(s, PHASE_MI);
s->msg_action = 1;
lsi_add_msg_byte(s, 0); /* COMMAND COMPLETE */
@@ -2122,7 +2122,7 @@ static const VMStateDescription vmstate_lsi_scsi = {
VMSTATE_PCI_DEVICE(dev, LSIState),
VMSTATE_INT32(carry, LSIState),
- VMSTATE_INT32(sense, LSIState),
+ VMSTATE_INT32(status, LSIState),
VMSTATE_INT32(msg_action, LSIState),
VMSTATE_INT32(msg_len, LSIState),
VMSTATE_BUFFER(msg, LSIState),
--
1.7.4.4
- [Qemu-devel] [PATCH 15/24] Fix typos in comments and code (occured -> occurred and related), (continued)
- [Qemu-devel] [PATCH 15/24] Fix typos in comments and code (occured -> occurred and related), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 17/24] Fix typo in comment (responsiblity -> responsibility), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 19/24] Fix typos in comment (threshhold -> threshold, mapp -> map), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 21/24] Fix spelling in comments (intruction -> instruction), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 12/24] Fix typos in comments (interupt -> interrupt), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 18/24] Fix typo in comment (truely -> truly), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 13/24] Fix typos in comments (instanciation -> instantiation), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 16/24] Fix typo in comment (relevent -> relevant), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 02/24] Fix typos in comments (dependancy -> dependency), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 10/24] Fix typos in comments (imediately -> immediately), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 24/24] lsi53c895a: Rename 'sense' to 'status',
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 23/24] libcacard: add correct subdirectory dependencies, Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 22/24] linux-user: Replace deprecated function, Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 01/24] Fix typo in code and comments, Stefan Hajnoczi, 2011/05/08
- Re: [Qemu-devel] [PULL] Trivial patches for April 26 to May 8 2011, Paolo Bonzini, 2011/05/12
- Re: [Qemu-devel] [PULL] Trivial patches for April 26 to May 8 2011, Anthony Liguori, 2011/05/12