Files
86Box/src/video/vid_icd2061.h
OBattler d1badde7df Added BT485A emulation to the BT485 code, in case it's ever needed, and a init function specifiying the RAM DAC's type;
A small change to the ICD2061 code and ability to use it as the ICS9161 which is functionally compatible.
2018-10-03 03:22:48 +02:00

40 lines
1.1 KiB
C

/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box distribution.
*
* ICD2061 clock generator emulation header.
* Also emulates the ICS9161 which is the same as the ICD2016,
* but without the need for tuning (which is irrelevant in
* emulation anyway).
*
* Used by ET4000w32/p (Diamond Stealth 32) and the S3
* Vision964 family.
*
* Version: @(#)vid_icd2061.h 1.0.2 2018/10/03
*
* Authors: Miran Grca, <mgrca8@gmail.com>
*
* Copyright 2018 Miran Grca.
*/
typedef struct icd2061_t
{
float freq[3];
int count, bit_count;
int unlocked, state;
uint32_t data, ctrl;
} icd2061_t;
void icd2061_write(icd2061_t *icd2061, int val);
void icd2061_init(icd2061_t *icd2061);
float icd2061_getclock(int clock, void *p);
/* The code is the same, the #define's are so that the correct name can be used. */
#define ics9161_write icd2061_write
#define ics9161_init icd2061_init
#define ics9161_getclock icd2061_getclock