Revision 5fafdf24 hw/vga_int.h
b/hw/vga_int.h | ||
---|---|---|
1 | 1 |
/* |
2 | 2 |
* QEMU internal VGA defines. |
3 |
*
|
|
3 |
* |
|
4 | 4 |
* Copyright (c) 2003-2004 Fabrice Bellard |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* Permission is hereby granted, free of charge, to any person obtaining a copy |
7 | 7 |
* of this software and associated documentation files (the "Software"), to deal |
8 | 8 |
* in the Software without restriction, including without limitation the rights |
... | ... | |
45 | 45 |
#define VBE_DISPI_INDEX_X_OFFSET 0x8 |
46 | 46 |
#define VBE_DISPI_INDEX_Y_OFFSET 0x9 |
47 | 47 |
#define VBE_DISPI_INDEX_NB 0xa |
48 |
|
|
48 |
|
|
49 | 49 |
#define VBE_DISPI_ID0 0xB0C0 |
50 | 50 |
#define VBE_DISPI_ID1 0xB0C1 |
51 | 51 |
#define VBE_DISPI_ID2 0xB0C2 |
52 | 52 |
#define VBE_DISPI_ID3 0xB0C3 |
53 | 53 |
#define VBE_DISPI_ID4 0xB0C4 |
54 |
|
|
54 |
|
|
55 | 55 |
#define VBE_DISPI_DISABLED 0x00 |
56 | 56 |
#define VBE_DISPI_ENABLED 0x01 |
57 | 57 |
#define VBE_DISPI_GETCAPS 0x02 |
58 | 58 |
#define VBE_DISPI_8BIT_DAC 0x20 |
59 | 59 |
#define VBE_DISPI_LFB_ENABLED 0x40 |
60 | 60 |
#define VBE_DISPI_NOCLEARMEM 0x80 |
61 |
|
|
61 |
|
|
62 | 62 |
#define VBE_DISPI_LFB_PHYSICAL_ADDRESS 0xE0000000 |
63 | 63 |
|
64 | 64 |
#ifdef CONFIG_BOCHS_VBE |
... | ... | |
160 | 160 |
return (v << 2) | (b << 1) | b; |
161 | 161 |
} |
162 | 162 |
|
163 |
void vga_common_init(VGAState *s, DisplayState *ds, uint8_t *vga_ram_base,
|
|
163 |
void vga_common_init(VGAState *s, DisplayState *ds, uint8_t *vga_ram_base, |
|
164 | 164 |
unsigned long vga_ram_offset, int vga_ram_size); |
165 | 165 |
void vga_init(VGAState *s); |
166 | 166 |
uint32_t vga_mem_readb(void *opaque, target_phys_addr_t addr); |
167 | 167 |
void vga_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val); |
168 | 168 |
void vga_invalidate_scanlines(VGAState *s, int y1, int y2); |
169 |
int ppm_save(const char *filename, uint8_t *data,
|
|
169 |
int ppm_save(const char *filename, uint8_t *data, |
|
170 | 170 |
int w, int h, int linesize); |
171 | 171 |
|
172 |
void vga_draw_cursor_line_8(uint8_t *d1, const uint8_t *src1,
|
|
173 |
int poffset, int w,
|
|
172 |
void vga_draw_cursor_line_8(uint8_t *d1, const uint8_t *src1, |
|
173 |
int poffset, int w, |
|
174 | 174 |
unsigned int color0, unsigned int color1, |
175 | 175 |
unsigned int color_xor); |
176 |
void vga_draw_cursor_line_16(uint8_t *d1, const uint8_t *src1,
|
|
177 |
int poffset, int w,
|
|
176 |
void vga_draw_cursor_line_16(uint8_t *d1, const uint8_t *src1, |
|
177 |
int poffset, int w, |
|
178 | 178 |
unsigned int color0, unsigned int color1, |
179 | 179 |
unsigned int color_xor); |
180 |
void vga_draw_cursor_line_32(uint8_t *d1, const uint8_t *src1,
|
|
181 |
int poffset, int w,
|
|
180 |
void vga_draw_cursor_line_32(uint8_t *d1, const uint8_t *src1, |
|
181 |
int poffset, int w, |
|
182 | 182 |
unsigned int color0, unsigned int color1, |
183 | 183 |
unsigned int color_xor); |
184 | 184 |
|
Also available in: Unified diff