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