Tizen 2.1 base
[sdk/emulator/qemu.git] / hw / 3D.h
1 #include "hw.h"
2 #include "pc.h"
3 #include "pci.h"
4
5 #if defined (DEBUG_ACCEL)
6 #  define DEBUG_PRINT(x) do { printf x ; } while (0)
7 #else
8 #  define DEBUG_PRINT(x)
9 #endif
10
11 #define PCI_VENDOR_ID_SAMSUNG 0x144d
12 #define PCI_DEVICE_ID_VIRTIO_OPENGL 0x1004
13
14 #define FUNC 0x00
15 #define PID 0x01
16 #define TRS 0x02
17 #define IA  0x03
18 #define IAS 0x04
19
20 #define RUN_OPENGL 0x10
21
22 typedef struct AccelState {
23     PCIDevice dev;
24     int ret;
25     int Accel_mmio_io_addr;
26     uint32_t function_number;
27     uint32_t pid;
28     uint32_t target_ret_string;
29     uint32_t in_args;
30     uint32_t in_args_size;
31 } AccelState;
32
33 uint32_t fn;
34 uint32_t p;
35 uint32_t trs;
36 uint32_t ia;
37 uint32_t ias;