qualcomm/qbox
Loading...
Searching...
No Matches
qemu_tablet.h
1
/*
2
* This file is part of libqbox
3
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All Rights Reserved.
4
*
5
* SPDX-License-Identifier: BSD-3-Clause
6
*/
7
8
#ifndef _LIBQBOX_COMPONENTS_USB_TABLET_H
9
#define _LIBQBOX_COMPONENTS_USB_TABLET_H
10
11
#include <module_factory_registery.h>
12
13
#include <qemu_xhci.h>
14
16
class
qemu_tablet :
public
qemu_xhci::Device
17
{
18
public
:
19
qemu_tablet(
const
sc_core::sc_module_name& name, sc_core::sc_object* o, sc_core::sc_object* t)
20
: qemu_tablet(name, *(
dynamic_cast<
QemuInstance
*
>
(o)), (
dynamic_cast<
qemu_xhci*
>
(t)))
21
{
22
}
23
qemu_tablet(
const
sc_core::sc_module_name& n,
QemuInstance
& inst, qemu_xhci* xhci)
24
:
qemu_xhci::Device
(n, inst,
"usb-tablet"
)
25
{
26
xhci->add_device(*
this
);
27
}
28
};
29
30
extern
"C"
void
module_register();
31
#endif
QemuInstance
This class encapsulates a libqemu-cxx qemu::LibQemu instance. It handles QEMU parameters and instance...
Definition
qemu-instance.h:89
qemu_xhci::Device
Definition
qemu_xhci.h:20
qemu-components
usb
qemu_tablet
include
qemu_tablet.h
Generated by
1.15.0