Files
86Box/src/include/86box/vid_nga.h

49 lines
1.4 KiB
C
Raw Normal View History

/*
2023-01-06 15:36:05 -05:00
* 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.
*
2023-01-06 15:36:05 -05:00
* This file is part of the 86Box distribution.
*
2023-01-06 15:36:05 -05:00
* Emulation of the Olivetti OGC 8-bit ISA (GO708) and
* M21/M24/M28 16-bit bus (GO317/318/380/709) video cards.
*
*
*
2023-08-14 21:51:47 +02:00
* Authors: Miran Grca, <mgrca8@gmail.com>
2023-01-06 15:36:05 -05:00
* EngiNerd, <webmaster.crrc@yahoo.it>
*
2023-01-06 15:36:05 -05:00
* Copyright 2016-2019 Miran Grca.
* Copyright 2020 EngiNerd.
*/
2022-02-18 19:42:21 -05:00
#ifndef VIDEO_NGA_H
#define VIDEO_NGA_H
2022-02-18 19:42:21 -05:00
typedef struct nga_t {
cga_t cga;
/* unused in OGC, required for M19 video card structure idiom */
uint32_t base;
int lineff;
int page;
uint8_t *vram_64k;
mem_mapping_t mapping_64k;
} nga_t;
void nga_recalctimings(nga_t *ogc);
void nga_out(uint16_t addr, uint8_t val, void *priv);
uint8_t nga_in(uint16_t addr, void *priv);
void nga_write(uint32_t addr, uint8_t val, void *priv);
uint8_t nga_read(uint32_t addr, void *priv);
void nga_poll(void *priv);
void nga_close(void *priv);
void nga_mdaattr_rebuild(void);
#ifdef EMU_DEVICE_H
extern const device_config_t nga_config[];
extern const device_t nga_device;
#endif
2022-02-18 19:42:21 -05:00
#endif /*VIDEO_NGA_H*/