2016-08-14 22:07:17 -04:00
|
|
|
/* Copyright holders: Sarah Walker, Tenshi
|
|
|
|
|
see COPYING for more details
|
|
|
|
|
*/
|
2016-06-26 00:34:39 +02:00
|
|
|
typedef struct sdac_ramdac_t
|
|
|
|
|
{
|
|
|
|
|
int magic_count;
|
|
|
|
|
uint8_t command;
|
|
|
|
|
int windex, rindex;
|
|
|
|
|
uint16_t regs[256];
|
|
|
|
|
int reg_ff;
|
|
|
|
|
int rs2;
|
|
|
|
|
} sdac_ramdac_t;
|
|
|
|
|
|
2018-03-21 15:16:25 +01:00
|
|
|
void sdac_init(sdac_ramdac_t *ramdac);
|
|
|
|
|
|
2018-09-22 18:40:29 +02:00
|
|
|
void sdac_ramdac_out(uint16_t addr, int rs2, uint8_t val, sdac_ramdac_t *ramdac, svga_t *svga);
|
|
|
|
|
uint8_t sdac_ramdac_in(uint16_t addr, int rs2, sdac_ramdac_t *ramdac, svga_t *svga);
|
2016-06-26 00:34:39 +02:00
|
|
|
|
|
|
|
|
float sdac_getclock(int clock, void *p);
|