Skip to content

Commit

Permalink
scsi: add lsi53c8xx_handle_legacy_cmdline() function
Browse files Browse the repository at this point in the history
This is the function that will soon be used to replace lsi53c895a_create() and
lsi53c810_create().

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
  • Loading branch information
mcayland authored and dgibson committed Sep 25, 2018
1 parent f3a6005 commit f74a4f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hw/scsi/lsi53c895a.c
Expand Up @@ -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);
}
1 change: 1 addition & 0 deletions include/hw/pci/pci.h
Expand Up @@ -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);
Expand Down

0 comments on commit f74a4f3

Please sign in to comment.