Revision b6f6d0e2 hw/es1370.c
b/hw/es1370.c | ||
---|---|---|
909 | 909 |
static void es1370_map (PCIDevice *pci_dev, int region_num, |
910 | 910 |
uint32_t addr, uint32_t size, int type) |
911 | 911 |
{ |
912 |
ES1370State *s = DO_UPCAST(ES1370State, dev, pci_dev); |
|
912 |
ES1370State *s = DO_UPCAST (ES1370State, dev, pci_dev);
|
|
913 | 913 |
|
914 | 914 |
(void) region_num; |
915 | 915 |
(void) size; |
... | ... | |
998 | 998 |
es1370_reset (s); |
999 | 999 |
} |
1000 | 1000 |
|
1001 |
static void es1370_initfn(PCIDevice *dev) |
|
1001 |
static void es1370_initfn (PCIDevice *dev)
|
|
1002 | 1002 |
{ |
1003 |
ES1370State *s = DO_UPCAST(ES1370State, dev, dev); |
|
1003 |
ES1370State *s = DO_UPCAST (ES1370State, dev, dev);
|
|
1004 | 1004 |
uint8_t *c = s->dev.config; |
1005 | 1005 |
|
1006 | 1006 |
pci_config_set_vendor_id (c, PCI_VENDOR_ID_ENSONIQ); |
... | ... | |
1037 | 1037 |
|
1038 | 1038 |
int es1370_init (PCIBus *bus) |
1039 | 1039 |
{ |
1040 |
pci_create_simple(bus, -1, "ES1370"); |
|
1040 |
pci_create_simple (bus, -1, "ES1370");
|
|
1041 | 1041 |
return 0; |
1042 | 1042 |
} |
1043 | 1043 |
|
... | ... | |
1048 | 1048 |
.init = es1370_initfn, |
1049 | 1049 |
}; |
1050 | 1050 |
|
1051 |
static void es1370_register(void) |
|
1051 |
static void es1370_register (void)
|
|
1052 | 1052 |
{ |
1053 | 1053 |
pci_qdev_register (&es1370_info); |
1054 | 1054 |
} |
Also available in: Unified diff