mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
scsi: rename arguments to the new callbacks
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Cc: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
c6df7102f5
commit
aba1f02363
4 changed files with 34 additions and 37 deletions
10
hw/esp.c
10
hw/esp.c
|
@ -395,7 +395,7 @@ static void esp_do_dma(ESPState *s)
|
|||
esp_dma_done(s);
|
||||
}
|
||||
|
||||
static void esp_command_complete(SCSIRequest *req, uint32_t arg)
|
||||
static void esp_command_complete(SCSIRequest *req, uint32_t status)
|
||||
{
|
||||
ESPState *s = DO_UPCAST(ESPState, busdev.qdev, req->bus->qbus.parent);
|
||||
|
||||
|
@ -406,10 +406,10 @@ static void esp_command_complete(SCSIRequest *req, uint32_t arg)
|
|||
s->ti_size = 0;
|
||||
s->dma_left = 0;
|
||||
s->async_len = 0;
|
||||
if (arg) {
|
||||
if (status) {
|
||||
DPRINTF("Command failed\n");
|
||||
}
|
||||
s->status = arg;
|
||||
s->status = status;
|
||||
s->rregs[ESP_RSTAT] = STAT_ST;
|
||||
esp_dma_done(s);
|
||||
if (s->current_req) {
|
||||
|
@ -419,12 +419,12 @@ static void esp_command_complete(SCSIRequest *req, uint32_t arg)
|
|||
}
|
||||
}
|
||||
|
||||
static void esp_transfer_data(SCSIRequest *req, uint32_t arg)
|
||||
static void esp_transfer_data(SCSIRequest *req, uint32_t len)
|
||||
{
|
||||
ESPState *s = DO_UPCAST(ESPState, busdev.qdev, req->bus->qbus.parent);
|
||||
|
||||
DPRINTF("transfer %d/%d\n", s->dma_left, s->ti_size);
|
||||
s->async_len = arg;
|
||||
s->async_len = len;
|
||||
s->async_buf = scsi_req_get_buf(req);
|
||||
if (s->dma_left) {
|
||||
esp_do_dma(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue