aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2024-01-12 12:54:17 +0000
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2024-02-13 19:37:28 +0000
commit6dec7c0d9ff8db7c626b2d1dc55404d8f12ddc74 (patch)
treec85c24e87b1907075860d347d9bad843b307eed6
parenta6cad7cd39f57b334f7cf1138a9e657455bb09ef (diff)
downloadqemu-6dec7c0d9ff8db7c626b2d1dc55404d8f12ddc74.zip
qemu-6dec7c0d9ff8db7c626b2d1dc55404d8f12ddc74.tar.gz
qemu-6dec7c0d9ff8db7c626b2d1dc55404d8f12ddc74.tar.bz2
esp.c: rename irq_data IRQ to drq_irq
The IRQ represented by irq_data is actually the DRQ (DMA request) line so rename it accordingly. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Tested-by: Helge Deller <deller@gmx.de> Tested-by: Thomas Huth <thuth@redhat.com> Message-Id: <20240112125420.514425-86-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r--hw/scsi/esp.c8
-rw-r--r--include/hw/scsi/esp.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c
index 5583b3e..fb68606 100644
--- a/hw/scsi/esp.c
+++ b/hw/scsi/esp.c
@@ -62,13 +62,13 @@ static void esp_lower_irq(ESPState *s)
static void esp_raise_drq(ESPState *s)
{
- qemu_irq_raise(s->irq_data);
+ qemu_irq_raise(s->drq_irq);
trace_esp_raise_drq();
}
static void esp_lower_drq(ESPState *s)
{
- qemu_irq_lower(s->irq_data);
+ qemu_irq_lower(s->drq_irq);
trace_esp_lower_drq();
}
@@ -1062,7 +1062,7 @@ void esp_hard_reset(ESPState *s)
static void esp_soft_reset(ESPState *s)
{
qemu_irq_lower(s->irq);
- qemu_irq_lower(s->irq_data);
+ qemu_irq_lower(s->drq_irq);
esp_hard_reset(s);
}
@@ -1489,7 +1489,7 @@ static void sysbus_esp_realize(DeviceState *dev, Error **errp)
}
sysbus_init_irq(sbd, &s->irq);
- sysbus_init_irq(sbd, &s->irq_data);
+ sysbus_init_irq(sbd, &s->drq_irq);
assert(sysbus->it_shift != -1);
s->chip_id = TCHI_FAS100A;
diff --git a/include/hw/scsi/esp.h b/include/hw/scsi/esp.h
index 39b416f..c6e8b64 100644
--- a/include/hw/scsi/esp.h
+++ b/include/hw/scsi/esp.h
@@ -25,7 +25,7 @@ struct ESPState {
uint8_t rregs[ESP_REGS];
uint8_t wregs[ESP_REGS];
qemu_irq irq;
- qemu_irq irq_data;
+ qemu_irq drq_irq;
uint8_t chip_id;
bool tchi_written;
int32_t ti_size;