mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-23 18:12:00 -06:00
hw/usb/xhci-nec: Declare QOM macros for NEC_XHCI
NEC_XHCI is a QOM object type. Declare its macros / typedefs using OBJECT_DECLARE_SIMPLE_TYPE(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230220150515.32549-7-philmd@linaro.org>
This commit is contained in:
parent
ce6ffeaed0
commit
67d58d1949
1 changed files with 4 additions and 2 deletions
|
@ -27,14 +27,16 @@
|
||||||
|
|
||||||
#include "hcd-xhci-pci.h"
|
#include "hcd-xhci-pci.h"
|
||||||
|
|
||||||
typedef struct XHCINecState {
|
OBJECT_DECLARE_SIMPLE_TYPE(XHCINecState, NEC_XHCI)
|
||||||
|
|
||||||
|
struct XHCINecState {
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
XHCIPciState parent_obj;
|
XHCIPciState parent_obj;
|
||||||
/*< public >*/
|
/*< public >*/
|
||||||
uint32_t flags;
|
uint32_t flags;
|
||||||
uint32_t intrs;
|
uint32_t intrs;
|
||||||
uint32_t slots;
|
uint32_t slots;
|
||||||
} XHCINecState;
|
};
|
||||||
|
|
||||||
static Property nec_xhci_properties[] = {
|
static Property nec_xhci_properties[] = {
|
||||||
DEFINE_PROP_ON_OFF_AUTO("msi", XHCIPciState, msi, ON_OFF_AUTO_AUTO),
|
DEFINE_PROP_ON_OFF_AUTO("msi", XHCIPciState, msi, ON_OFF_AUTO_AUTO),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue