quic/qbox
Loading...
Searching...
No Matches
qemu_kbd.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_KBD_H
9#define _LIBQBOX_COMPONENTS_USB_KBD_H
10
11#include <module_factory_registery.h>
12
13#include <qemu_xhci.h>
14
16{
17public:
18 qemu_kbd(const sc_core::sc_module_name& name, sc_core::sc_object* o, sc_core::sc_object* t)
19 : qemu_kbd(name, *(dynamic_cast<QemuInstance*>(o)), (dynamic_cast<qemu_xhci*>(t)))
20 {
21 }
22 qemu_kbd(const sc_core::sc_module_name& n, QemuInstance& inst, qemu_xhci* xhci): qemu_xhci::Device(n, inst, "usb-kbd")
23 {
24 xhci->add_device(*this);
25 }
26};
27
28extern "C" void module_register();
29#endif
This class encapsulates a libqemu-cxx qemu::LibQemu instance. It handles QEMU parameters and instance...
Definition qemu-instance.h:89
Definition target.h:160
Definition qemu_kbd.h:16
Definition qemu_xhci.h:20
This class wraps the qemu's XHCI USB controller: eXtensible Host Controller Interface.
Definition qemu_xhci.h:17