XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Enumerations | Functions
main.cpp File Reference
#include <_xeneva.h>
#include <stdio.h>
#include <string.h>
#include <sys/_kefile.h>
#include <sys/_keproc.h>
#include <sys/_ketime.h>
#include <hwdev.h>
#include <inputsrv.h>
Include dependency graph for main.cpp:

Classes

struct  VqDesc
 
struct  VqAvail
 
struct  VqUsed
 
struct  InEvent
 
struct  Dev
 

Macros

#define INPUT_VENDOR   0x1AF4
 
#define INPUT_DEVICE   0x1052
 
#define MAX_DEV   2
 
#define VIRTIO_STATUS_ACK   1
 
#define VIRTIO_STATUS_DRIVER   2
 
#define VIRTIO_STATUS_DRIVER_OK   4
 
#define VIRTIO_STATUS_FEATURES_OK   8
 
#define VIRTQ_DESC_F_WRITE   2
 
#define C8(d, o)   (*(volatile uint8_t*)((d)->common + (o)))
 
#define C16(d, o)   (*(volatile uint16_t*)((d)->common + (o)))
 
#define C32(d, o)   (*(volatile uint32_t*)((d)->common + (o)))
 

Enumerations

enum  { KIND_NONE = 0 , KIND_KEYBOARD = 1 , KIND_TABLET = 2 }
 

Functions

int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ C16

#define C16 (   d,
  o 
)    (*(volatile uint16_t*)((d)->common + (o)))

◆ C32

#define C32 (   d,
  o 
)    (*(volatile uint32_t*)((d)->common + (o)))

◆ C8

#define C8 (   d,
  o 
)    (*(volatile uint8_t*)((d)->common + (o)))

◆ INPUT_DEVICE

#define INPUT_DEVICE   0x1052

◆ INPUT_VENDOR

#define INPUT_VENDOR   0x1AF4

◆ MAX_DEV

#define MAX_DEV   2

◆ VIRTIO_STATUS_ACK

#define VIRTIO_STATUS_ACK   1

◆ VIRTIO_STATUS_DRIVER

#define VIRTIO_STATUS_DRIVER   2

◆ VIRTIO_STATUS_DRIVER_OK

#define VIRTIO_STATUS_DRIVER_OK   4

◆ VIRTIO_STATUS_FEATURES_OK

#define VIRTIO_STATUS_FEATURES_OK   8

◆ VIRTQ_DESC_F_WRITE

#define VIRTQ_DESC_F_WRITE   2

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
KIND_NONE 
KIND_KEYBOARD 
KIND_TABLET 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)