2020-12-08 18:33:20 +01:00
|
|
|
/*
|
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.
|
2020-12-08 18:33:20 +01:00
|
|
|
*
|
2023-01-06 15:36:05 -05:00
|
|
|
* This file is part of the 86Box distribution.
|
2020-12-08 18:33:20 +01:00
|
|
|
*
|
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.
|
2020-12-08 18:33:20 +01:00
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
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>
|
2020-12-08 18:33:20 +01:00
|
|
|
*
|
2023-01-06 15:36:05 -05:00
|
|
|
* Copyright 2016-2019 Miran Grca.
|
|
|
|
|
* Copyright 2020 EngiNerd.
|
2020-12-08 18:33:20 +01:00
|
|
|
*/
|
|
|
|
|
|
2022-02-18 19:42:21 -05:00
|
|
|
#ifndef VIDEO_NGA_H
|
2022-07-27 17:00:34 -04:00
|
|
|
#define VIDEO_NGA_H
|
2022-02-18 19:42:21 -05:00
|
|
|
|
2020-12-08 18:33:20 +01:00
|
|
|
typedef struct nga_t {
|
|
|
|
|
cga_t cga;
|
2022-07-27 17:00:34 -04:00
|
|
|
/* unused in OGC, required for M19 video card structure idiom */
|
|
|
|
|
uint32_t base;
|
|
|
|
|
int lineff;
|
|
|
|
|
int page;
|
|
|
|
|
uint8_t *vram_64k;
|
2020-12-08 18:33:20 +01:00
|
|
|
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);
|
2022-11-17 22:44:06 +01:00
|
|
|
void nga_mdaattr_rebuild(void);
|
2020-12-08 18:33:20 +01:00
|
|
|
|
|
|
|
|
#ifdef EMU_DEVICE_H
|
|
|
|
|
extern const device_config_t nga_config[];
|
2022-07-27 17:00:34 -04:00
|
|
|
extern const device_t nga_device;
|
2020-12-08 18:33:20 +01:00
|
|
|
#endif
|
2022-02-18 19:42:21 -05:00
|
|
|
|
|
|
|
|
#endif /*VIDEO_NGA_H*/
|