|
XenevaOS
|
#include <pcie.h>#include <Hal/AA64/aa64lowlevel.h>#include <Hal/AA64/gic.h>#include <Fs/Dev/devinput.h>#include <Drivers/virtio.h>#include <Drivers/uart.h>#include <Mm/pmmngr.h>#include <aucon.h>#include <Mm/vmmngr.h>#include <Hal/AA64/sched.h>
Macros | |
| #define | MOUSE_LEFT_CLICK 0x01 |
| #define | MOUSE_RIGHT_CLICK 0x02 |
| #define | MOUSE_MIDDLE_CLICK 0x04 |
| #define | MOUSE_MOUSE_SCROLL_UP 0x10 |
| #define | MOUSE_MOUSE_SCROLL_DOWN 0x20 |
Functions | |
| void | AuVirtioTabletHandler (int spiNum) |
| AuVirtioTabletHandler – interrupt handler for virtio tablet. | |
| void | AuVirtioTabletInitialize (uint64_t device) |
| AuVirtioKbdInitialize – initialize the virtio keyboard. | |
Variables | |
| struct VirtioQueue * | TabletQueue |
| uint16_t | tabletIndex |
| int | tabletQueueSz |
| int | mouseX |
| int | mouseY |
| int | resX |
| int | resY |
| int | maxX |
| int | maxY |
| int | buttonLeft |
| int | buttonMiddle |
| int | buttonRight |
| int | buttonScrollUp |
| int | buttonScrollDown |
| struct VirtioInputEvent * | TabletInput |
BSD 2-Clause License
Copyright (c) 2022-2025, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define MOUSE_LEFT_CLICK 0x01 |
| #define MOUSE_MIDDLE_CLICK 0x04 |
| #define MOUSE_MOUSE_SCROLL_DOWN 0x20 |
| #define MOUSE_MOUSE_SCROLL_UP 0x10 |
| #define MOUSE_RIGHT_CLICK 0x02 |
| void AuVirtioTabletHandler | ( | int | spiNum | ) |
AuVirtioTabletHandler – interrupt handler for virtio tablet.
| spiNum | – shared peripheral interrupt number passed by system |
| void AuVirtioTabletInitialize | ( | uint64_t | device | ) |
AuVirtioKbdInitialize – initialize the virtio keyboard.
AuVirtioTabletInitialize – initialize virtio tablet.
| int buttonLeft |
| int buttonMiddle |
| int buttonRight |
| int buttonScrollDown |
| int buttonScrollUp |
| int maxX |
| int maxY |
| int mouseX |
| int mouseY |
| int resX |
| int resY |
| uint16_t tabletIndex |
| struct VirtioInputEvent* TabletInput |
| struct VirtioQueue* TabletQueue |
| int tabletQueueSz |