[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/5] scsi: add lsi53c8xx_handle_legac
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/5] scsi: add lsi53c8xx_handle_legacy_cmdline() function |
Date: |
Wed, 19 Sep 2018 23:32:51 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
On 9/19/18 7:20 PM, Mark Cave-Ayland wrote:
> This is the function that will soon be used to replace lsi53c895a_create() and
> lsi53c810_create().
>
> Signed-off-by: Mark Cave-Ayland <address@hidden>
> Reviewed-by: Thomas Huth <address@hidden>
This could be squashed in the next patch (2/5).
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> hw/scsi/lsi53c895a.c | 7 +++++++
> include/hw/pci/pci.h | 1 +
> 2 files changed, 8 insertions(+)
>
> diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c
> index 955ba94800..8f5ab82d57 100644
> --- a/hw/scsi/lsi53c895a.c
> +++ b/hw/scsi/lsi53c895a.c
> @@ -2290,3 +2290,10 @@ void lsi53c810_create(PCIBus *bus, int devfn)
>
> scsi_bus_legacy_handle_cmdline(&s->bus);
> }
> +
> +void lsi53c8xx_handle_legacy_cmdline(DeviceState *lsi_dev)
> +{
> + LSIState *s = LSI53C895A(lsi_dev);
> +
> + scsi_bus_legacy_handle_cmdline(&s->bus);
> +}
> diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
> index 990d6fcbde..0d907dc084 100644
> --- a/include/hw/pci/pci.h
> +++ b/include/hw/pci/pci.h
> @@ -709,6 +709,7 @@ PCIDevice *pci_create_simple(PCIBus *bus, int devfn,
> const char *name);
>
> void lsi53c895a_create(PCIBus *bus);
> void lsi53c810_create(PCIBus *bus, int devfn);
> +void lsi53c8xx_handle_legacy_cmdline(DeviceState *lsi_dev);
>
> qemu_irq pci_allocate_irq(PCIDevice *pci_dev);
> void pci_set_irq(PCIDevice *pci_dev, int level);
>
- [Qemu-ppc] [PATCH 0/5] 40p: LSI SCSI IRQ routing patch roll-up, Mark Cave-Ayland, 2018/09/19
- [Qemu-ppc] [PATCH 1/5] scsi: add lsi53c8xx_handle_legacy_cmdline() function, Mark Cave-Ayland, 2018/09/19
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/5] scsi: add lsi53c8xx_handle_legacy_cmdline() function,
Philippe Mathieu-Daudé <=
- [Qemu-ppc] [PATCH 3/5] scsi: remove unused lsi53c895a_create() and lsi53c810_create() functions, Mark Cave-Ayland, 2018/09/19
- [Qemu-ppc] [PATCH 4/5] lsi53c895a: add optional external IRQ via qdev, Mark Cave-Ayland, 2018/09/19
- [Qemu-ppc] [PATCH 2/5] scsi: move lsi53c8xx_create() callers to lsi53c8xx_handle_legacy_cmdline(), Mark Cave-Ayland, 2018/09/19
- [Qemu-ppc] [PATCH 5/5] 40p: add fixed IRQ routing for LSI SCSI device, Mark Cave-Ayland, 2018/09/19
- Re: [Qemu-ppc] [PATCH 0/5] 40p: LSI SCSI IRQ routing patch roll-up, David Gibson, 2018/09/19