mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
usb/ehci: Move capsbase and opregbase into SysBus EHCI class
This allows specific derived models to use different values. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
5aa3ca9f53
commit
4a4343671e
2 changed files with 26 additions and 2 deletions
|
@ -339,6 +339,10 @@ typedef struct EHCIPCIState {
|
|||
#define TYPE_SYS_BUS_EHCI "sysbus-ehci-usb"
|
||||
#define SYS_BUS_EHCI(obj) \
|
||||
OBJECT_CHECK(EHCISysBusState, (obj), TYPE_SYS_BUS_EHCI)
|
||||
#define SYS_BUS_EHCI_CLASS(class) \
|
||||
OBJECT_CLASS_CHECK(SysBusEHCIClass, (class), TYPE_SYS_BUS_EHCI)
|
||||
#define SYS_BUS_EHCI_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(SysBusEHCIClass, (obj), TYPE_SYS_BUS_EHCI)
|
||||
|
||||
typedef struct EHCISysBusState {
|
||||
/*< private >*/
|
||||
|
@ -348,4 +352,13 @@ typedef struct EHCISysBusState {
|
|||
EHCIState ehci;
|
||||
} EHCISysBusState;
|
||||
|
||||
typedef struct SysBusEHCIClass {
|
||||
/*< private >*/
|
||||
SysBusDeviceClass parent_class;
|
||||
/*< public >*/
|
||||
|
||||
uint16_t capsbase;
|
||||
uint16_t opregbase;
|
||||
} SysBusEHCIClass;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue