Add SVGA multi-monitor support

Cirrus Logic CL-GD5436/CL-GD5446 works as secondary video adapters
This commit is contained in:
Cacodemon345
2023-01-22 16:50:21 +06:00
parent b875e8518d
commit 7898109b66
10 changed files with 174 additions and 151 deletions

View File

@@ -33,6 +33,8 @@
# define FLAG_RAMDAC_SHIFT 64
# define FLAG_128K_MASK 128
struct monitor_t;
typedef struct {
int ena,
x, y, xoff, yoff, cur_xsize, cur_ysize,
@@ -170,6 +172,12 @@ typedef struct svga_t {
uint32_t (*remap_func)(struct svga_t *svga, uint32_t in_addr);
void *ramdac, *clock_gen;
/* Monitor Index */
uint8_t monitor_index;
/* Pointer to monitor */
monitor_t* monitor;
} svga_t;
extern int vga_on, ibm8514_on;

View File

@@ -506,6 +506,7 @@ typedef struct voodoo_t {
uint8_t *vram, *changedvram;
void *p;
uint8_t monitor_index;
} voodoo_t;
typedef struct voodoo_set_t {