]>
git.proxmox.com Git - mirror_qemu.git/blob - hw/display/ati_int.h
2 * QEMU ATI SVGA emulation
4 * Copyright (c) 2019 BALATON Zoltan
6 * This work is licensed under the GNU GPL license version 2 or later.
12 #include "hw/pci/pci.h"
18 #define DPRINTF(fmt, ...) printf("%s: " fmt, __func__, ## __VA_ARGS__)
20 #define DPRINTF(fmt, ...) do {} while (0)
23 #define PCI_VENDOR_ID_ATI 0x1002
25 #define PCI_DEVICE_ID_ATI_RAGE128_PF 0x5046
26 /* Radeon RV100 (VE) */
27 #define PCI_DEVICE_ID_ATI_RADEON_QY 0x5159
29 #define TYPE_ATI_VGA "ati-vga"
30 #define ATI_VGA(obj) OBJECT_CHECK(ATIVGAState, (obj), TYPE_ATI_VGA)
32 typedef struct ATIVGARegs
{
34 uint32_t bios_scratch
[8];
35 uint32_t crtc_gen_cntl
;
36 uint32_t crtc_ext_cntl
;
38 uint32_t crtc_h_total_disp
;
39 uint32_t crtc_h_sync_strt_wid
;
40 uint32_t crtc_v_total_disp
;
41 uint32_t crtc_v_sync_strt_wid
;
43 uint32_t crtc_offset_cntl
;
62 uint32_t dp_gui_master_cntl
;
63 uint32_t dp_brush_bkgd_clr
;
64 uint32_t dp_brush_frgd_clr
;
65 uint32_t dp_src_frgd_clr
;
66 uint32_t dp_src_bkgd_clr
;
70 uint32_t dp_write_mask
;
71 uint32_t default_offset
;
72 uint32_t default_pitch
;
73 uint32_t default_sc_bottom_right
;
76 typedef struct ATIVGAState
{
82 bool cursor_guest_mode
;
84 uint32_t cursor_offset
;
91 const char *ati_reg_name(int num
);
93 void ati_2d_blt(ATIVGAState
*s
);
95 #endif /* ATI_INT_H */