mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
sabre: Rename SABRE_DEVICE to SABRE
Make the type checking macro name consistent with the TYPE_* constant. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20200902224311.1321159-49-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
5182f17593
commit
5b07883c2b
3 changed files with 6 additions and 6 deletions
|
@ -338,7 +338,7 @@ static void pci_sabre_set_irq(void *opaque, int irq_num, int level)
|
|||
|
||||
static void sabre_reset(DeviceState *d)
|
||||
{
|
||||
SabreState *s = SABRE_DEVICE(d);
|
||||
SabreState *s = SABRE(d);
|
||||
PCIDevice *pci_dev;
|
||||
unsigned int i;
|
||||
uint16_t cmd;
|
||||
|
@ -376,7 +376,7 @@ static const MemoryRegionOps pci_config_ops = {
|
|||
|
||||
static void sabre_realize(DeviceState *dev, Error **errp)
|
||||
{
|
||||
SabreState *s = SABRE_DEVICE(dev);
|
||||
SabreState *s = SABRE(dev);
|
||||
PCIHostState *phb = PCI_HOST_BRIDGE(dev);
|
||||
SysBusDevice *sbd = SYS_BUS_DEVICE(s);
|
||||
PCIDevice *pci_dev;
|
||||
|
@ -421,7 +421,7 @@ static void sabre_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
static void sabre_init(Object *obj)
|
||||
{
|
||||
SabreState *s = SABRE_DEVICE(obj);
|
||||
SabreState *s = SABRE(obj);
|
||||
SysBusDevice *sbd = SYS_BUS_DEVICE(obj);
|
||||
unsigned int i;
|
||||
|
||||
|
@ -502,7 +502,7 @@ static const TypeInfo sabre_pci_info = {
|
|||
|
||||
static char *sabre_ofw_unit_address(const SysBusDevice *dev)
|
||||
{
|
||||
SabreState *s = SABRE_DEVICE(dev);
|
||||
SabreState *s = SABRE(dev);
|
||||
|
||||
return g_strdup_printf("%x,%x",
|
||||
(uint32_t)((s->special_base >> 32) & 0xffffffff),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue