diff --git a/src/86box.h b/src/86box.h index 06975312f..b14a9477a 100644 --- a/src/86box.h +++ b/src/86box.h @@ -1,6 +1,19 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Main emulator include file. + * + * Version: @(#)86box.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + #define emulator_version "2.00" #define emulator_version_w L"2.00" diff --git a/src/CPU/386_common.h b/src/CPU/386_common.h index a091a817d..6042cc151 100644 --- a/src/CPU/386_common.h +++ b/src/CPU/386_common.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Common 386 CPU code. + * + * Version: @(#)386_common.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + extern uint16_t ea_rseg; #undef readmemb diff --git a/src/CPU/386_ops.h b/src/CPU/386_ops.h index 4e5d78125..0217c384d 100644 --- a/src/CPU/386_ops.h +++ b/src/CPU/386_ops.h @@ -1,6 +1,23 @@ -/* Copyright holders: Sarah Walker, Tenshi, leilei - see COPYING for more details -*/ +/* + * 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. + * + * 286/386+ instruction handlers list. + * + * Version: @(#)386_ops.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * leilei, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 leilei. + * Copyright 2016-2017 Miran Grca. + */ + #include "x86_ops.h" diff --git a/src/CPU/808x.c b/src/CPU/808x.c index 80af2c9be..c0e6dfa15 100644 --- a/src/CPU/808x.c +++ b/src/CPU/808x.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * 808x CPU emulation. + * + * Version: @(#)808x.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + /*SHR AX,1 4 clocks - fetch opcode diff --git a/src/CPU/cpu.c b/src/CPU/cpu.c index f6e8bb816..cbb7161fb 100644 --- a/src/CPU/cpu.c +++ b/src/CPU/cpu.c @@ -1,6 +1,23 @@ -/* Copyright holders: Sarah Walker, Tenshi, leilei - see COPYING for more details -*/ +/* + * 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. + * + * CPU type handler. + * + * Version: @(#)cpu.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * leilei, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 leilei. + * Copyright 2016-2017 Miran Grca. + */ + #include "../ibm.h" #include "cpu.h" #include "../model.h" diff --git a/src/CPU/cpu.h b/src/CPU/cpu.h index dd7fbff31..ce0955b7f 100644 --- a/src/CPU/cpu.h +++ b/src/CPU/cpu.h @@ -1,6 +1,23 @@ -/* Copyright holders: Sarah Walker, Tenshi, leilei - see COPYING for more details -*/ +/* + * 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. + * + * CPU type handler. + * + * Version: @(#)cpu.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * leilei, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 leilei. + * Copyright 2016-2017 Miran Grca. + */ + #ifndef _CPU_H_ #define _CPU_H_ diff --git a/src/CPU/x86_ops_i686.h b/src/CPU/x86_ops_i686.h index b684e1195..84a10c28b 100644 --- a/src/CPU/x86_ops_i686.h +++ b/src/CPU/x86_ops_i686.h @@ -1,6 +1,19 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * x86 i686 (Pentium Pro/Pentium II) CPU Instructions. + * + * Version: @(#)x86_ops_i686.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + static int internal_illegal(char *s) { cpu_state.pc = cpu_state.oldpc; diff --git a/src/CPU/x86_ops_misc.h b/src/CPU/x86_ops_misc.h index c47517c37..7734217eb 100644 --- a/src/CPU/x86_ops_misc.h +++ b/src/CPU/x86_ops_misc.h @@ -1,3 +1,21 @@ +/* + * 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. + * + * Miscellaneous x86 CPU Instructions. + * + * Version: @(#)x86_ops_misc.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + static int opCBW(uint32_t fetchdat) { AH = (AL & 0x80) ? 0xff : 0; diff --git a/src/CPU/x86seg.c b/src/CPU/x86seg.c index 10e79b7c9..4f43d8dc8 100644 --- a/src/CPU/x86seg.c +++ b/src/CPU/x86seg.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, SA1988 - see COPYING for more details -*/ +/* + * 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. + * + * x86 CPU segment emulation. + * + * Version: @(#)x86seg.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include #include diff --git a/src/CPU/x86seg.h b/src/CPU/x86seg.h index 4a36f360b..f4badadf4 100644 --- a/src/CPU/x86seg.h +++ b/src/CPU/x86seg.h @@ -1,4 +1,17 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * x86 CPU segment emulation. + * + * Version: @(#)x86seg.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + void do_seg_load(x86seg *s, uint16_t *segdat); diff --git a/src/CPU/x87_ops.h b/src/CPU/x87_ops.h index e212c6ccb..b9320081f 100644 --- a/src/CPU/x87_ops.h +++ b/src/CPU/x87_ops.h @@ -1,3 +1,23 @@ +/* + * 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. + * + * x87 FPU instructions core. + * + * Version: @(#)x87_ops.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * leilei, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 leilei. + * Copyright 2016-2017 Miran Grca. + */ + #include #include diff --git a/src/CPU/x87_ops_loadstore.h b/src/CPU/x87_ops_loadstore.h index ed083b921..39a14c4fb 100644 --- a/src/CPU/x87_ops_loadstore.h +++ b/src/CPU/x87_ops_loadstore.h @@ -1,3 +1,21 @@ +/* + * 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. + * + * x87 FPU instructions core. + * + * Version: @(#)x87_ops_loadstore.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + static int opFILDiw_a16(uint32_t fetchdat) { int16_t temp; diff --git a/src/SOUND/snd_mpu401.c b/src/SOUND/snd_mpu401.c index 474d717b9..c5c67611b 100644 --- a/src/SOUND/snd_mpu401.c +++ b/src/SOUND/snd_mpu401.c @@ -1,3 +1,25 @@ +/* + * 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. + * + * Roland MPU-401 emulation. + * + * Version: @(#)sound_mpu401.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * DOSBox Team, + * Miran Grca, + * TheCollector1995, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2008-2017 DOSBox Team. + * Copyright 2016-2017 Miran Grca. + * Copyright 2016-2017 TheCollector1995. + */ + #include "../ibm.h" #include "../io.h" #include "../pic.h" diff --git a/src/SOUND/snd_mpu401.h b/src/SOUND/snd_mpu401.h index 8cb721883..264f2ed97 100644 --- a/src/SOUND/snd_mpu401.h +++ b/src/SOUND/snd_mpu401.h @@ -1,3 +1,25 @@ +/* + * 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. + * + * Roland MPU-401 emulation. + * + * Version: @(#)sound_mpu401.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * DOSBox Team, + * Miran Grca, + * TheCollector1995, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2008-2017 DOSBox Team. + * Copyright 2016-2017 Miran Grca. + * Copyright 2016-2017 TheCollector1995. + */ + #define MPU401_VERSION 0x15 #define MPU401_REVISION 0x01 #define MPU401_QUEUE 32 diff --git a/src/SOUND/snd_sb.c b/src/SOUND/snd_sb.c index e94646fd3..d428c1a7d 100644 --- a/src/SOUND/snd_sb.c +++ b/src/SOUND/snd_sb.c @@ -1,3 +1,23 @@ +/* + * 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. + * + * Sound Blaster emulation. + * + * Version: @(#)sound_sb.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * TheCollector1995, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + * Copyright 2016-2017 TheCollector1995. + */ + #include #include "../ibm.h" #include "../io.h" diff --git a/src/SOUND/snd_sb.h b/src/SOUND/snd_sb.h index 4a0b974b8..de5b5af93 100644 --- a/src/SOUND/snd_sb.h +++ b/src/SOUND/snd_sb.h @@ -1,3 +1,23 @@ +/* + * 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. + * + * Sound Blaster emulation. + * + * Version: @(#)sound_sb.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * TheCollector1995, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + * Copyright 2016-2017 TheCollector1995. + */ + extern device_t sb_1_device; extern device_t sb_15_device; extern device_t sb_mcv_device; diff --git a/src/SOUND/sound.c b/src/SOUND/sound.c index 24cf2c1c1..6a6deafc7 100644 --- a/src/SOUND/sound.c +++ b/src/SOUND/sound.c @@ -1,3 +1,21 @@ +/* + * 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. + * + * Sound emulation core. + * + * Version: @(#)sound.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include #include diff --git a/src/SOUND/sound.h b/src/SOUND/sound.h index ffa9d87af..22d2d2afa 100644 --- a/src/SOUND/sound.h +++ b/src/SOUND/sound.h @@ -1,3 +1,21 @@ +/* + * 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. + * + * Sound emulation core. + * + * Version: @(#)sound.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void sound_add_handler(void (*get_buffer)(int32_t *buffer, int len, void *p), void *p); extern int sound_card_current; diff --git a/src/VIDEO/vid_ati_mach64.c b/src/VIDEO/vid_ati_mach64.c index 12bbf2383..261d6681f 100644 --- a/src/VIDEO/vid_ati_mach64.c +++ b/src/VIDEO/vid_ati_mach64.c @@ -1,4 +1,21 @@ -/*ATI Mach64 emulation*/ +/* + * 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. + * + * ATi Mach64 graphics card emulation. + * + * Version: @(#)vid_ati_mach64.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "../ibm.h" #include "../io.h" diff --git a/src/VIDEO/vid_ati_mach64.h b/src/VIDEO/vid_ati_mach64.h index 2db76fa79..c159a6b57 100644 --- a/src/VIDEO/vid_ati_mach64.h +++ b/src/VIDEO/vid_ati_mach64.h @@ -1,2 +1,20 @@ +/* + * 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. + * + * ATi Mach64 graphics card emulation. + * + * Version: @(#)vid_ati_mach64.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + extern device_t mach64gx_device; extern device_t mach64vt2_device; diff --git a/src/VIDEO/vid_cga.c b/src/VIDEO/vid_cga.c index afae65439..7b3332f3f 100644 --- a/src/VIDEO/vid_cga.c +++ b/src/VIDEO/vid_cga.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the old and new IBM CGA graphics cards. + * + * Version: @(#)vid_cga.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + /*CGA emulation*/ #include #include diff --git a/src/VIDEO/vid_cga.h b/src/VIDEO/vid_cga.h index ca513785d..bd8d5dbc5 100644 --- a/src/VIDEO/vid_cga.h +++ b/src/VIDEO/vid_cga.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the old and new IBM CGA graphics cards. + * + * Version: @(#)vid_cga.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + typedef struct cga_t { mem_mapping_t mapping; diff --git a/src/VIDEO/vid_cga_comp.c b/src/VIDEO/vid_cga_comp.c index a63d69f2e..513788bec 100644 --- a/src/VIDEO/vid_cga_comp.c +++ b/src/VIDEO/vid_cga_comp.c @@ -1,5 +1,21 @@ -/* Code borrowed from DOSBox and adapted by OBattler. - Original author: reenigne. */ +/* + * 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. + * + * IBM CGA composite filter, borrowed from reenigne's DOSBox + * patch and ported to C. + * + * Version: @(#)vid_cga.c 1.0.0 2017/05/30 + * + * Author: reenigne, + * Miran Grca, + * Copyright 2015-2017 reenigne. + * Copyright 2015-2017 Miran Grca. + */ #include #include diff --git a/src/VIDEO/vid_cga_comp.h b/src/VIDEO/vid_cga_comp.h index 4640efd8f..fbea172e7 100644 --- a/src/VIDEO/vid_cga_comp.h +++ b/src/VIDEO/vid_cga_comp.h @@ -1,3 +1,22 @@ +/* + * 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. + * + * IBM CGA composite filter, borrowed from reenigne's DOSBox + * patch and ported to C. + * + * Version: @(#)vid_cga.h 1.0.0 2017/05/30 + * + * Author: reenigne, + * Miran Grca, + * Copyright 2015-2017 reenigne. + * Copyright 2015-2017 Miran Grca. + */ + #define Bit8u uint8_t #define Bit32u uint32_t #define Bitu unsigned int diff --git a/src/VIDEO/vid_ega.c b/src/VIDEO/vid_ega.c index 7fe76ddaa..f0db448b6 100644 --- a/src/VIDEO/vid_ega.c +++ b/src/VIDEO/vid_ega.c @@ -1,4 +1,25 @@ -/*EGA emulation*/ +/* + * 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. + * + * Emulation of the EGA, Chips & Technologies SuperEGA, and + * AX JEGA graphics cards. + * + * Version: @(#)vid_ega.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * akm, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + * Copyright 2017-2017 akm. + */ + +#include #include #include "../ibm.h" #include "../io.h" @@ -23,11 +44,111 @@ static int old_overscan_color = 0; int update_overscan = 0; +#define SBCS 0 +#define DBCS 1 +#define ID_LEN 6 +#define NAME_LEN 8 +#define SBCS19_LEN 256 * 19 +#define DBCS16_LEN 65536 * 32 + +uint8_t jfont_sbcs_19[SBCS19_LEN];//256 * 19( * 8) +uint8_t jfont_dbcs_16[DBCS16_LEN];//65536 * 16 * 2 (* 8) + +typedef struct { + char id[ID_LEN]; + char name[NAME_LEN]; + unsigned char width; + unsigned char height; + unsigned char type; +} fontx_h; + +typedef struct { + uint16_t start; + uint16_t end; +} fontxTbl; + +void ega_jega_write_font(ega_t *ega) +{ + unsigned int chr = ega->RDFFB; + unsigned int chr_2 = ega->RDFSB; + + ega->RSTAT &= ~0x02; + + /* Check if the character code is in the Wide character set of Shift-JIS */ + if (((chr >= 0x40) && (chr <= 0x7e)) || ((chr >= 0x80) && (chr <= 0xfc))) + { + if (ega->font_index >= 32) + { + ega->font_index = 0; + } + chr <<= 8; + /* Fix vertical character position */ + chr |= chr_2; + if (ega->font_index < 16) + { + jfont_dbcs_16[(chr * 32) + (ega->font_index * 2)] = ega->RDFAP; /* 16x16 font */ + } + else + { + jfont_dbcs_16[(chr * 32) + ((ega->font_index - 16) * 2) + 1] = ega->RDFAP; /* 16x16 font */ + } + } + else + { + if (ega->font_index >= 19) + { + ega->font_index = 0; + } + jfont_sbcs_19[(chr * 19) + ega->font_index] = ega->RDFAP; /* 8x19 font */ + } + ega->font_index++; + ega->RSTAT |= 0x02; +} + +void ega_jega_read_font(ega_t *ega) +{ + unsigned int chr = ega->RDFFB; + unsigned int chr_2 = ega->RDFSB; + + ega->RSTAT &= ~0x02; + + /* Check if the character code is in the Wide character set of Shift-JIS */ + if (((chr >= 0x40) && (chr <= 0x7e)) || ((chr >= 0x80) && (chr <= 0xfc))) + { + if (ega->font_index >= 32) + { + ega->font_index = 0; + } + chr <<= 8; + /* Fix vertical character position */ + chr |= chr_2; + if (ega->font_index < 16) + { + ega->RDFAP = jfont_dbcs_16[(chr * 32) + (ega->font_index * 2)]; /* 16x16 font */ + } + else + { + ega->RDFAP = jfont_dbcs_16[(chr * 32) + ((ega->font_index - 16) * 2) + 1]; /* 16x16 font */ + } + } + else + { + if (ega->font_index >= 19) + { + ega->font_index = 0; + } + ega->RDFAP = jfont_sbcs_19[(chr * 19) + ega->font_index]; /* 8x19 font */ + } + ega->font_index++; + ega->RSTAT |= 0x02; +} + void ega_out(uint16_t addr, uint8_t val, void *p) { ega_t *ega = (ega_t *)p; int c; uint8_t o, old; + uint8_t crtcreg; if (((addr & 0xfff0) == 0x3d0 || (addr & 0xfff0) == 0x3b0) && !(ega->miscout & 1)) addr ^= 0x60; @@ -130,21 +251,82 @@ void ega_out(uint16_t addr, uint8_t val, void *p) break; case 0x3d0: case 0x3d4: - ega->crtcreg = val & 31; + ega->crtcreg = val; return; case 0x3d1: case 0x3d5: - if (ega->crtcreg <= 7 && ega->crtc[0x11] & 0x80) return; - old = ega->crtc[ega->crtcreg]; - ega->crtc[ega->crtcreg] = val; - if (old != val) - { - if (ega->crtcreg < 0xe || ega->crtcreg > 0x10) - { - fullchange = changeframecount; - ega_recalctimings(ega); - } - } + if ((ega->crtcreg < 0xb9) || !ega->is_jega) + { + crtcreg = ega->crtcreg & 0x1f; + if (crtcreg <= 7 && ega->crtc[0x11] & 0x80) return; + old = ega->crtc[crtcreg]; + ega->crtc[crtcreg] = val; + if (old != val) + { + if (crtcreg < 0xe || crtcreg > 0x10) + { + fullchange = changeframecount; + ega_recalctimings(ega); + } + } + } + else + { + switch(ega->crtcreg) + { + case 0xb9: /* Mode register 1 */ + ega->RMOD1 = val; + break; + case 0xba: /* Mode register 2 */ + ega->RMOD2 = val; + break; + case 0xbb: /* ANK Group sel */ + ega->RDAGS = val; + break; + case 0xbc: /* Font access first byte */ + if (ega->RDFFB != val) + { + ega->RDFFB = val; + ega->font_index = 0; + } + break; + case 0xbd: /* Font access Second Byte */ + if (ega->RDFSB != val) + { + ega->RDFSB = val; + ega->font_index = 0; + } + break; + case 0xbe: /* Font Access Pattern */ + ega->RDFAP = val; + ega_jega_write_font(ega); + break; + case 0xdb: + ega->RPSSC = val; + break; + case 0xd9: + ega->RPSSU = val; + break; + case 0xda: + ega->RPSSL = val; + break; + case 0xdc: /* Superimposed mode (only AX-2 system, not implemented) */ + ega->RPPAJ = val; + break; + case 0xdd: + ega->RCMOD = val; + break; + case 0xde: /* Cursor Skew control */ + ega->RCSKW = val; + break; + case 0xdf: /* Font R/W register */ + ega->RSTAT = val; + break; + default: + pclog("JEGA: Write to illegal index %02X\n", ega->crtcreg); + break; + } + } break; } } @@ -174,6 +356,7 @@ static uint8_t ega_get_input_status_0(ega_t *ega) uint8_t ega_in(uint16_t addr, void *p) { ega_t *ega = (ega_t *)p; + int crtcreg; if (((addr & 0xfff0) == 0x3d0 || (addr & 0xfff0) == 0x3b0) && !(ega->miscout & 1)) addr ^= 0x60; @@ -204,7 +387,49 @@ uint8_t ega_in(uint16_t addr, void *p) return ega->crtcreg; case 0x3d1: case 0x3d5: - return ega->crtc[ega->crtcreg]; + if ((ega->crtcreg < 0xb9) || !ega->is_jega) + { + crtcreg = ega->crtcreg & 0x1f; + return ega->crtc[crtcreg]; + } + else + { + switch(ega->crtcreg) + { + case 0xb9: + return ega->RMOD1; + case 0xba: + return ega->RMOD2; + case 0xbb: + return ega->RDAGS; + case 0xbc: /* BCh RDFFB Font access First Byte */ + return ega->RDFFB; + case 0xbd: /* BDh RDFFB Font access Second Byte */ + return ega->RDFSB; + case 0xbe: /* BEh RDFAP Font Access Pattern */ + ega_jega_read_font(ega); + return ega->RDFAP; + case 0xdb: + return ega->RPSSC; + case 0xd9: + return ega->RPSSU; + case 0xda: + return ega->RPSSL; + case 0xdc: + return ega->RPPAJ; + case 0xdd: + return ega->RCMOD; + case 0xde: + return ega->RCSKW; + case 0xdf: + return ega->ROMSL; + case 0xbf: + return 0x03; /* The font is always readable and writable */ + default: + pclog("JEGA: Read from illegal index %02X\n", ega->crtcreg); + return 0x00; + } + } case 0x3da: ega->attrff = 0; ega->stat ^= 0x30; /*Fools IBM EGA video BIOS self-test*/ @@ -936,6 +1161,8 @@ void ega_common_defaults(ega_t *ega) ega->extvram = 1; update_overscan = 0; + + ega->is_jega = 0; } void *ega_standalone_init() @@ -1048,6 +1275,112 @@ void *sega_standalone_init() return ega; } +uint16_t chrtosht(FILE *fp) +{ + uint16_t i, j; + i = (uint8_t) getc(fp); + j = (uint8_t) getc(fp) << 8; + return (i | j); +} + +unsigned int getfontx2header(FILE *fp, fontx_h *header) +{ + fread(header->id, ID_LEN, 1, fp); + if (strncmp(header->id, "FONTX2", ID_LEN) != 0) + { + return 1; + } + fread(header->name, NAME_LEN, 1, fp); + header->width = (uint8_t)getc(fp); + header->height = (uint8_t)getc(fp); + header->type = (uint8_t)getc(fp); + return 0; +} + +void readfontxtbl(fontxTbl *table, unsigned int size, FILE *fp) +{ + while (size > 0) + { + table->start = chrtosht(fp); + table->end = chrtosht(fp); + ++table; + --size; + } +} + +static void LoadFontxFile(wchar_t *fname) +{ + fontx_h head; + fontxTbl *table; + unsigned int code; + uint8_t size; + unsigned int i; + + if (!fname) return; + if(*fname=='\0') return; + FILE * mfile=romfopen(fname,L"rb"); + if (!mfile) + { + pclog("MSG: Can't open FONTX2 file: %s\n",fname); + return; + } + if (getfontx2header(mfile, &head) != 0) + { + fclose(mfile); + pclog("MSG: FONTX2 header is incorrect\n"); + return; + } + /* switch whether the font is DBCS or not */ + if (head.type == DBCS) + { + if (head.width == 16 && head.height == 16) + { + size = getc(mfile); + table = (fontxTbl *)calloc(size, sizeof(fontxTbl)); + readfontxtbl(table, size, mfile); + for (i = 0; i < size; i++) + { + for (code = table[i].start; code <= table[i].end; code++) + { + fread(&jfont_dbcs_16[(code * 32)], sizeof(uint8_t), 32, mfile); + } + } + } + else + { + fclose(mfile); + pclog("MSG: FONTX2 DBCS font size is not correct\n"); + return; + } + } + else + { + if (head.width == 8 && head.height == 19) + { + fread(jfont_sbcs_19, sizeof(uint8_t), SBCS19_LEN, mfile); + } + else + { + fclose(mfile); + pclog("MSG: FONTX2 SBCS font size is not correct\n"); + return; + } + } + fclose(mfile); +} + +void *jega_standalone_init() +{ + ega_t *ega = (ega_t *) sega_standalone_init(); + + LoadFontxFile(L"roms/JPNHN19X.FNT"); + LoadFontxFile(L"roms/JPNZN16X.FNT"); + + ega->is_jega = 1; + + return ega; +} + static int ega_standalone_available() { return rom_present(L"roms/ibm_6277356_ega_card_u44_27128.bin"); @@ -1113,3 +1446,15 @@ device_t sega_device = NULL, NULL }; + +device_t jega_device = +{ + "AX JEGA", + 0, + jega_standalone_init, + ega_close, + sega_standalone_available, + ega_speed_changed, + NULL, + NULL +}; diff --git a/src/VIDEO/vid_ega.h b/src/VIDEO/vid_ega.h index 9b0e215d8..2fef2c0ca 100644 --- a/src/VIDEO/vid_ega.h +++ b/src/VIDEO/vid_ega.h @@ -1,6 +1,26 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the EGA, Chips & Technologies SuperEGA, and + * AX JEGA graphics cards. + * + * Version: @(#)vid_ega.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * akm, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + * Copyright 2017-2017 akm. + */ + +#include + typedef struct ega_t { mem_mapping_t mapping; @@ -68,6 +88,12 @@ typedef struct ega_t int vrammask; int video_res_x, video_res_y, video_bpp; + + uint8_t RMOD1, RMOD2, RDAGS, RDFFB, RDFSB, RDFAP, RPESL, RPULP, RPSSC, RPSSU, RPSSL; + uint8_t RPPAJ; + uint8_t RCMOD, RCCLH, RCCLL, RCCSL, RCCEL, RCSKW, ROMSL, RSTAT; + int is_jega, font_index; + int chr_left, chr_wide; } ega_t; extern int update_overscan; diff --git a/src/VIDEO/vid_s3.c b/src/VIDEO/vid_s3.c index de67496d7..9f141668d 100644 --- a/src/VIDEO/vid_s3.c +++ b/src/VIDEO/vid_s3.c @@ -1,4 +1,22 @@ -/*S3 emulation*/ +/* + * 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. + * + * Emulation of the S3 Trio32, S3 Trio64, and S3 Vision864 + * graphics cards. + * + * Version: @(#)vid_s3.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "../ibm.h" #include "../io.h" diff --git a/src/VIDEO/vid_s3.h b/src/VIDEO/vid_s3.h index 396e6523b..8ace7397d 100644 --- a/src/VIDEO/vid_s3.h +++ b/src/VIDEO/vid_s3.h @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the S3 Trio32, S3 Trio64, and S3 Vision864 + * graphics cards. + * + * Version: @(#)vid_s3.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + device_t s3_bahamas64_device; device_t s3_9fx_device; device_t s3_phoenix_trio32_device; diff --git a/src/VIDEO/vid_svga.c b/src/VIDEO/vid_svga.c index c2af8a822..8684de91f 100644 --- a/src/VIDEO/vid_svga.c +++ b/src/VIDEO/vid_svga.c @@ -1,7 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ -/*Generic SVGA handling*/ +/* + * 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. + * + * Generic SVGA handling. + * + * Version: @(#)vid_svga.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + /*This is intended to be used by another SVGA driver, and not as a card in it's own right*/ #include #include diff --git a/src/VIDEO/vid_svga.h b/src/VIDEO/vid_svga.h index 54270a0cb..d4307dfde 100644 --- a/src/VIDEO/vid_svga.h +++ b/src/VIDEO/vid_svga.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Generic SVGA handling. + * + * Version: @(#)vid_svga.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + typedef struct svga_t { mem_mapping_t mapping; diff --git a/src/VIDEO/vid_svga_render.c b/src/VIDEO/vid_svga_render.c index eba7e0b43..0d09326e7 100644 --- a/src/VIDEO/vid_svga_render.c +++ b/src/VIDEO/vid_svga_render.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * SVGA renderers. + * + * Version: @(#)vid_svga_render.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "../ibm.h" #include "../mem.h" diff --git a/src/VIDEO/vid_svga_render.h b/src/VIDEO/vid_svga_render.h index f6611db57..eb3715fdd 100644 --- a/src/VIDEO/vid_svga_render.h +++ b/src/VIDEO/vid_svga_render.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * SVGA renderers. + * + * Version: @(#)vid_svga_render.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + extern int firstline_draw, lastline_draw; extern int displine; extern int sc; diff --git a/src/WIN/86Box.rc b/src/WIN/86Box.rc index 37c1a69e8..cbbea2b67 100644 --- a/src/WIN/86Box.rc +++ b/src/WIN/86Box.rc @@ -1,3 +1,19 @@ +/* + * 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. + * + * Windows resource script. + * + * Version: @(#)86Box.rc 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + #include //Microsoft Developer Studio generated resource script. @@ -240,7 +256,7 @@ FONT 9, "Segoe UI" BEGIN DEFPUSHBUTTON "OK",IDOK,129,94,71,12 ICON 100,IDC_ABOUT_ICON,7,7,20,20 - LTEXT "86Box v1.20 - A fork of PCem\n\nAuthors: Sarah Walker, Tohka, waltje, SA1988, MoochMcGee, reenigne, leilei, JohnElliott, greatpsycho, and others.\n\nReleased under the GNU General Public License version 2. See LICENSE for more information.", + LTEXT "86Box v1.20 - A fork of PCem\n\nAuthors: Sarah Walker, Miran Grca, waltje, SA1988, MoochMcGee, reenigne, leilei, JohnElliott, greatpsycho, and others.\n\nReleased under the GNU General Public License version 2. See LICENSE for more information.", IDC_ABOUT_ICON,54,7,146,73 CONTROL "",IDC_ABOUT_ICON,"Static",SS_BLACKFRAME | SS_SUNKEN,0, 86,208,1 diff --git a/src/WIN/resource.h b/src/WIN/resource.h index a9d14e0b4..17792a1e1 100644 --- a/src/WIN/resource.h +++ b/src/WIN/resource.h @@ -1,6 +1,21 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Windows resource defines. + * + * Version: @(#)resource.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + /* {{NO_DEPENDENCIES}} Microsoft Developer Studio generated include file. Used by 86Box.rc diff --git a/src/WIN/win.c b/src/WIN/win.c index 6c25ddfa3..292c446df 100644 --- a/src/WIN/win.c +++ b/src/WIN/win.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * The Emulator's Windows core. + * + * Version: @(#)win.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include #include diff --git a/src/WIN/win.h b/src/WIN/win.h index a5a8b9918..72bad6dcf 100644 --- a/src/WIN/win.h +++ b/src/WIN/win.h @@ -1,3 +1,21 @@ +/* + * 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. + * + * The Emulator's Windows core. + * + * Version: @(#)win.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + /* * This should be named 'plat.h' and then include any * Windows-specific header files needed, to keep them diff --git a/src/WIN/win_cgapal.h b/src/WIN/win_cgapal.h index d6ac7ffd8..0388cde27 100644 --- a/src/WIN/win_cgapal.h +++ b/src/WIN/win_cgapal.h @@ -1,3 +1,19 @@ +/* + * 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. + * + * The Windows CGA palette handler header. + * + * Version: @(#)win_cgapal.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + extern PALETTE cgapal; extern PALETTE cgapal_mono[6]; diff --git a/src/WIN/win_d3d.cc b/src/WIN/win_d3d.cc index ce2d9a3b5..04720448a 100644 --- a/src/WIN/win_d3d.cc +++ b/src/WIN/win_d3d.cc @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Direct3D 9 rendererer and screenshots taking. + * + * Version: @(#)win_d3d.cc 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "../video/video.h" #include "win.h" diff --git a/src/WIN/win_d3d.h b/src/WIN/win_d3d.h index 5994a87b1..11128d486 100644 --- a/src/WIN/win_d3d.h +++ b/src/WIN/win_d3d.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Direct3D 9 rendererer and screenshots taking. + * + * Version: @(#)win_d3d.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #ifndef WIN_D3D_H # define WIN_D3D_H # define UNICODE diff --git a/src/WIN/win_d3d_fs.cc b/src/WIN/win_d3d_fs.cc index 93b23da0b..91c420132 100644 --- a/src/WIN/win_d3d_fs.cc +++ b/src/WIN/win_d3d_fs.cc @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Direct3D 9 full screen rendererer and screenshots taking. + * + * Version: @(#)win_d3d_fs.cc 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include #include "../86box.h" diff --git a/src/WIN/win_ddraw_screenshot.cc b/src/WIN/win_ddraw_screenshot.cc index 717b94348..b98a207d1 100644 --- a/src/WIN/win_ddraw_screenshot.cc +++ b/src/WIN/win_ddraw_screenshot.cc @@ -1,6 +1,19 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * DirectDraw screenshot taking code. + * + * Version: @(#)win_ddraw_screenshot.cc 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + #include #include #define UNICODE diff --git a/src/WIN/win_deviceconfig.c b/src/WIN/win_deviceconfig.c index 1cfa026eb..1dc548278 100644 --- a/src/WIN/win_deviceconfig.c +++ b/src/WIN/win_deviceconfig.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Windows device configuration dialog implementation. + * + * Version: @(#)win_deviceconfig.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include "../ibm.h" #include "../config.h" #include "../device.h" diff --git a/src/WIN/win_iodev.c b/src/WIN/win_iodev.c index 465302c68..56d5d5df8 100644 --- a/src/WIN/win_iodev.c +++ b/src/WIN/win_iodev.c @@ -1,3 +1,19 @@ +/* + * 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. + * + * Windows IO device menu handler. + * + * Version: @(#)win_iodev.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + #define UNICODE #define _WIN32_WINNT 0x0501 #define BITMAP WINDOWS_BITMAP diff --git a/src/WIN/win_joystick.cc b/src/WIN/win_joystick.cc index 63d970eaa..91c2138b0 100644 --- a/src/WIN/win_joystick.cc +++ b/src/WIN/win_joystick.cc @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Joystick interface to host device. + * + * Version: @(#)win_joystick.cc 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #define DIRECTINPUT_VERSION 0x0800 #include #include diff --git a/src/WIN/win_keyboard.c b/src/WIN/win_keyboard.c index 89b4f6639..e7b847f7d 100644 --- a/src/WIN/win_keyboard.c +++ b/src/WIN/win_keyboard.c @@ -1,3 +1,19 @@ +/* + * 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. + * + * Windows raw keyboard input handler. + * + * Version: @(#)win_d3d.cc 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + #define UNICODE #define _WIN32_WINNT 0x0501 #define BITMAP WINDOWS_BITMAP diff --git a/src/WIN/win_language.c b/src/WIN/win_language.c index d7e78ac14..00cb70482 100644 --- a/src/WIN/win_language.c +++ b/src/WIN/win_language.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Windows localization core. + * + * Version: @(#)win_language.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #define UNICODE #define BITMAP WINDOWS_BITMAP diff --git a/src/WIN/win_language.h b/src/WIN/win_language.h index 5c4237249..bb7af81b7 100644 --- a/src/WIN/win_language.h +++ b/src/WIN/win_language.h @@ -1,3 +1,21 @@ +/* + * 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. + * + * Windows localization core. + * + * Version: @(#)win_language.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #ifdef __cplusplus extern "C" { #endif diff --git a/src/WIN/win_midi.c b/src/WIN/win_midi.c index 66f354857..3850201bf 100644 --- a/src/WIN/win_midi.c +++ b/src/WIN/win_midi.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * MIDI interface to host device. + * + * Version: @(#)win_midi.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include #include "../ibm.h" diff --git a/src/WIN/win_mouse.cc b/src/WIN/win_mouse.cc index 9a6f50e80..105575557 100644 --- a/src/WIN/win_mouse.cc +++ b/src/WIN/win_mouse.cc @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Mouse interface to host device. + * + * Version: @(#)win_mouse.cc 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #define DIRECTINPUT_VERSION 0x0800 #include #include diff --git a/src/WIN/win_settings.c b/src/WIN/win_settings.c index 76a4ebfb5..1d6c475d9 100644 --- a/src/WIN/win_settings.c +++ b/src/WIN/win_settings.c @@ -1,6 +1,19 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Windows 86Box Settings dialog handler. + * + * Version: @(#)win_midi.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + #define UNICODE #define BITMAP WINDOWS_BITMAP #include diff --git a/src/cdrom.c b/src/cdrom.c index 10c811f7d..2bac1e2e3 100644 --- a/src/cdrom.c +++ b/src/cdrom.c @@ -1,4 +1,19 @@ -/* CD-ROM emulation, used by both ATAPI and SCSI */ +/* + * 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. + * + * Implementation of the CD-ROM drive with SCSI(-like) + * commands, for both ATAPI and SCSI usage. + * + * Version: @(#)cdrom.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ #include #include diff --git a/src/cdrom.h b/src/cdrom.h index 5e167fe35..6f10756c0 100644 --- a/src/cdrom.h +++ b/src/cdrom.h @@ -1,3 +1,20 @@ +/* + * 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. + * + * Implementation of the CD-ROM drive with SCSI(-like) + * commands, for both ATAPI and SCSI usage. + * + * Version: @(#)cdrom.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + #ifndef __CDROM_H__ #define __CDROM_H__ diff --git a/src/cdrom_ioctl.c b/src/cdrom_ioctl.c index b0d416521..b5f827fa7 100644 --- a/src/cdrom_ioctl.c +++ b/src/cdrom_ioctl.c @@ -1,7 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ -/*Win32 CD-ROM support via IOCTL*/ +/* + * 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. + * + * Implementation of the CD-ROM host drive IOCTL interface for + * Windows using SCSI Passthrough Direct. + * + * Version: @(#)cdrom_ioctl.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2016 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ #define WINVER 0x0600 #include diff --git a/src/cdrom_ioctl.h b/src/cdrom_ioctl.h index e39f12ddf..a5c710230 100644 --- a/src/cdrom_ioctl.h +++ b/src/cdrom_ioctl.h @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the CD-ROM host drive IOCTL interface for + * Windows using SCSI Passthrough Direct. + * + * Version: @(#)cdrom_ioctl.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2016 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #ifndef CDROM_IOCTL_H #define CDROM_IOCTL_H diff --git a/src/cdrom_null.c b/src/cdrom_null.c index 2a0ce9da5..a2383b626 100644 --- a/src/cdrom_null.c +++ b/src/cdrom_null.c @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the CD-ROM null interface for unmounted + * guest CD-ROM drives. + * + * Version: @(#)cdrom_null.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2016 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include "ibm.h" #include "cdrom.h" #include "cdrom_ioctl.h" diff --git a/src/cdrom_null.h b/src/cdrom_null.h index 7217760ca..69117d43f 100644 --- a/src/cdrom_null.h +++ b/src/cdrom_null.h @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the CD-ROM null interface for unmounted + * guest CD-ROM drives. + * + * Version: @(#)cdrom_null.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2016 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #ifndef CDROM_NULL_H #define CDROM_NULL_H diff --git a/src/device.c b/src/device.c index b706f99b9..1f7e5b577 100644 --- a/src/device.c +++ b/src/device.c @@ -1,3 +1,22 @@ +/* + * 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. + * + * Implementation of the generic device interface to handle + * all devices attached to the emulator. + * + * Version: @(#)device.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2016 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include "ibm.h" #include "cpu/cpu.h" #include "config.h" diff --git a/src/device.h b/src/device.h index 7ad34630e..acb875dcc 100644 --- a/src/device.h +++ b/src/device.h @@ -1,3 +1,22 @@ +/* + * 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. + * + * Implementation of the generic device interface to handle + * all devices attached to the emulator. + * + * Version: @(#)device.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2016 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #define CONFIG_STRING 0 #define CONFIG_INT 1 #define CONFIG_BINARY 2 diff --git a/src/disc.c b/src/disc.c index 6bd93cb59..e7af927bd 100644 --- a/src/disc.c +++ b/src/disc.c @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Generic floppy disk interface that communicates with the + * other handlers. + * + * Version: @(#)disc.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #define UNICODE #include diff --git a/src/disc.h b/src/disc.h index 4bf7a96cb..62ba83d83 100644 --- a/src/disc.h +++ b/src/disc.h @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Generic floppy disk interface that communicates with the + * other handlers. + * + * Version: @(#)disc.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #define FDD_NUM 4 typedef struct diff --git a/src/disc_86f.c b/src/disc_86f.c index bca91ca74..9eb713365 100644 --- a/src/disc_86f.c +++ b/src/disc_86f.c @@ -1,3 +1,21 @@ +/* + * 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. + * + * Implementation of the 86F floppy image format (stores the + * data in the form of FM/MFM-encoded transitions) which also + * forms the core of the emulator's floppy disk emulation. + * + * Version: @(#)disc_86f.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + #include #include #include diff --git a/src/disc_86f.h b/src/disc_86f.h index 7efc9b3f5..ec7e83c1e 100644 --- a/src/disc_86f.h +++ b/src/disc_86f.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the 86F floppy image format (stores the + * data in the form of FM/MFM-encoded transitions) which also + * forms the core of the emulator's floppy disk emulation. + * + * Version: @(#)disc_86f.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + void d86f_init(); void d86f_load(int drive, wchar_t *fn); void d86f_close(int drive); diff --git a/src/disc_fdi.c b/src/disc_fdi.c index 62875d8e4..af192b76f 100644 --- a/src/disc_fdi.c +++ b/src/disc_fdi.c @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the FDI floppy stream image format + * interface to the FDI2RAW module. + * + * Version: @(#)disc_fdi.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include #include diff --git a/src/disc_fdi.h b/src/disc_fdi.h index 781efac23..ae77e0279 100644 --- a/src/disc_fdi.h +++ b/src/disc_fdi.h @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the FDI floppy stream image format + * interface to the FDI2RAW module. + * + * Version: @(#)disc_fdi.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void fdi_init(); void fdi_load(int drive, wchar_t *fn); void fdi_close(int drive); diff --git a/src/disc_imd.c b/src/disc_imd.c index f932f4fd4..b0a8b0016 100644 --- a/src/disc_imd.c +++ b/src/disc_imd.c @@ -1,6 +1,19 @@ -/* Copyright holders: Kiririn - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the IMD floppy image format. + * + * Version: @(#)disc_imd.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + #include "ibm.h" #include "disc.h" #include "disc_imd.h" diff --git a/src/disc_imd.h b/src/disc_imd.h index a132605d9..f017cebf0 100644 --- a/src/disc_imd.h +++ b/src/disc_imd.h @@ -1,6 +1,19 @@ -/* Copyright holders: Kiririn - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the IMD floppy image format. + * + * Version: @(#)disc_imd.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + void imd_init(); void imd_load(int drive, wchar_t *fn); void imd_close(int drive); diff --git a/src/disc_img.c b/src/disc_img.c index d529db045..f9016be4b 100644 --- a/src/disc_img.c +++ b/src/disc_img.c @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the raw sector-based floppy image format, + * as well as the Japanese FDI, CopyQM, and FDF formats. + * + * Version: @(#)disc_img.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include diff --git a/src/disc_img.h b/src/disc_img.h index 4cb82ea1f..94c4780cf 100644 --- a/src/disc_img.h +++ b/src/disc_img.h @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker, Kiririn - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the raw sector-based floppy image format, + * as well as the Japanese FDI, CopyQM, and FDF formats. + * + * Version: @(#)disc_img.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void img_init(); void img_load(int drive, wchar_t *fn); void img_close(int drive); diff --git a/src/disc_random.c b/src/disc_random.c index 1712193e4..17b28c2e5 100644 --- a/src/disc_random.c +++ b/src/disc_random.c @@ -1,4 +1,19 @@ -/* Better random number generator by Battler. */ +/* + * 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. + * + * A better random number generation, used for floppy weak bits + * and network MAC address generation. + * + * Version: @(#)disc_random.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ #include #include diff --git a/src/disc_random.h b/src/disc_random.h index 25dc87326..601e9d84f 100644 --- a/src/disc_random.h +++ b/src/disc_random.h @@ -1,2 +1,19 @@ +/* + * 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. + * + * A better random number generation, used for floppy weak bits + * and network MAC address generation. + * + * Version: @(#)disc_random.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + uint8_t disc_random_generate(); void disc_random_init(); diff --git a/src/disc_td0.c b/src/disc_td0.c index e20020fcc..ac2cd9a6b 100644 --- a/src/disc_td0.c +++ b/src/disc_td0.c @@ -1,5 +1,29 @@ +/* + * 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. + * +* Implementation of the Teledisk floppy image format. + * + * Version: @(#)disc_td0.c 1.0.0 2017/05/30 + * + * Author: Milodrag Milanovic, + * Haruhiko OKUMURA, + * Haruyasu YOSHIZAKI, + * Kenji RIKITAKE, + * Miran Grca, + * Copyright 1988-2017 Haruhiko OKUMURA. + * Copyright 1988-2017 Haruyasu YOSHIZAKI. + * Copyright 1988-2017 Kenji RIKITAKE. + * Copyright 2013-2017 Milodrag Milanovic. + * Copyright 2016-2017 Miran Grca. + */ + /* license:BSD-3-Clause - copyright-holders:Miodrag Milanovic,Kiririn (translation to C and port to 86Box) */ + copyright-holders:Miodrag Milanovic, Miran Grca (translation to C and port to 86Box) */ /********************************************************************* formats/td0_dsk.c diff --git a/src/disc_td0.h b/src/disc_td0.h index 306c7be20..e28f2dc7d 100644 --- a/src/disc_td0.h +++ b/src/disc_td0.h @@ -1,6 +1,27 @@ -/* Copyright holders: Kiririn - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Teledisk floppy image format. + * + * Version: @(#)disc_td0.h 1.0.0 2017/05/30 + * + * Author: Milodrag Milanovic, + * Haruhiko OKUMURA, + * Haruyasu YOSHIZAKI, + * Kenji RIKITAKE, + * Miran Grca, + * Copyright 1988-2017 Haruhiko OKUMURA. + * Copyright 1988-2017 Haruyasu YOSHIZAKI. + * Copyright 1988-2017 Kenji RIKITAKE. + * Copyright 2013-2017 Milodrag Milanovic. + * Copyright 2016-2017 Miran Grca. + */ + void td0_init(); void td0_load(int drive, wchar_t *fn); void td0_close(int drive); diff --git a/src/dma.c b/src/dma.c index 29804cd82..a90156a6d 100644 --- a/src/dma.c +++ b/src/dma.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel DMA controllers. + * + * Version: @(#)dma.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include "ibm.h" #include "cpu/x86.h" #include "mem.h" diff --git a/src/dma.h b/src/dma.h index 515f02f87..947d80425 100644 --- a/src/dma.h +++ b/src/dma.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, SA1988 - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel DMA controllers. + * + * Version: @(#)dma.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void dma_init(void); void dma16_init(void); void ps2_dma_init(void); diff --git a/src/fdc.c b/src/fdc.c index 60c2b44d3..eed50ca13 100644 --- a/src/fdc.c +++ b/src/fdc.c @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the NEC uPD-765 and compatible floppy disk + * controller. + * + * Version: @(#)fdc.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include #include diff --git a/src/fdc.h b/src/fdc.h index 5bdb7d00e..0e8c42654 100644 --- a/src/fdc.h +++ b/src/fdc.h @@ -1,6 +1,22 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the NEC uPD-765 and compatible floppy disk + * controller. + * + * Version: @(#)fdc.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void fdc_init(); void fdc_add(); void fdc_add_for_superio(); diff --git a/src/fdc37c665.c b/src/fdc37c665.c index bbcf157b5..7cc5889ce 100644 --- a/src/fdc37c665.c +++ b/src/fdc37c665.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the SMC FDC37C665 Super I/O Chip. + * + * Version: @(#)fdc37c665.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include "ibm.h" #include "disc.h" diff --git a/src/fdc37c665.h b/src/fdc37c665.h index 8f906807d..cbe28216f 100644 --- a/src/fdc37c665.h +++ b/src/fdc37c665.h @@ -1,4 +1,19 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the SMC FDC37C665 Super I/O Chip. + * + * Version: @(#)fdc37c665.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + extern void fdc37c665_init(); diff --git a/src/fdc37c669.c b/src/fdc37c669.c index 605b79e17..33d19b8ba 100644 --- a/src/fdc37c669.c +++ b/src/fdc37c669.c @@ -1,7 +1,18 @@ /* - SMSC SMC FDC37C669 Super I/O Chip - Used by the 430TX -*/ + * 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. + * + * Implementation of the SMC FDC37C669 Super I/O Chip. + * + * Version: @(#)fdc37c669.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ #include "ibm.h" diff --git a/src/fdc37c669.h b/src/fdc37c669.h index f3fa420d7..31189524a 100644 --- a/src/fdc37c669.h +++ b/src/fdc37c669.h @@ -1 +1,17 @@ +/* + * 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. + * + * Implementation of the SMC FDC37C669 Super I/O Chip. + * + * Version: @(#)fdc37c669.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + extern void fdc37c669_init(); diff --git a/src/fdc37c932fr.c b/src/fdc37c932fr.c index 5b4057d1e..d5faf988e 100644 --- a/src/fdc37c932fr.c +++ b/src/fdc37c932fr.c @@ -1,10 +1,18 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ /* - SMSC SMC fdc37c932fr Super I/O Chip - Used by all some Acer boards, and by the Epox P55-VA -*/ + * 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. + * + * Implementation of the SMC FDC37C932FR Super I/O Chip. + * + * Version: @(#)fdc37c932fr.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ #include "ibm.h" diff --git a/src/fdc37c932fr.h b/src/fdc37c932fr.h index ef83f5d01..1e48bb0e9 100644 --- a/src/fdc37c932fr.h +++ b/src/fdc37c932fr.h @@ -1,4 +1,17 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the SMC FDC37C932FR Super I/O Chip. + * + * Version: @(#)fdc37c932fr.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + extern void fdc37c932fr_init(); diff --git a/src/fdd.c b/src/fdd.c index 35a2b6865..449bf02bd 100644 --- a/src/fdd.c +++ b/src/fdd.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the floppy drive emulation. + * + * Version: @(#)fdd.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include "ibm.h" #include "disc.h" #include "fdc.h" diff --git a/src/fdd.h b/src/fdd.h index c4a18afbe..7b34c4a1a 100644 --- a/src/fdd.h +++ b/src/fdd.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the floppy drive emulation. + * + * Version: @(#)fdd.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #define SEEK_RECALIBRATE -999 void fdd_forced_seek(int drive, int track_diff); void fdd_seek(int drive, int track_diff); diff --git a/src/i430fx.c b/src/i430fx.c index a0324c3ce..bfc635fed 100644 --- a/src/i430fx.c +++ b/src/i430fx.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 430FX PCISet chip. + * + * Version: @(#)i430fx.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "ibm.h" diff --git a/src/i430fx.h b/src/i430fx.h index 9ed0f355e..1904ea0f5 100644 --- a/src/i430fx.h +++ b/src/i430fx.h @@ -1,4 +1,19 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 430FX PCISet chip. + * + * Version: @(#)i430fx.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void i430fx_init(); diff --git a/src/i430hx.c b/src/i430hx.c index 80c52c02f..dc2b75b02 100644 --- a/src/i430hx.c +++ b/src/i430hx.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 430HX PCISet chip. + * + * Version: @(#)i430hx.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "ibm.h" diff --git a/src/i430hx.h b/src/i430hx.h index a6899ca24..4ef96e6ae 100644 --- a/src/i430hx.h +++ b/src/i430hx.h @@ -1,4 +1,19 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 430HX PCISet chip. + * + * Version: @(#)i430hx.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void i430hx_init(); diff --git a/src/i430lx.c b/src/i430lx.c index 7494b6c76..ccb44ebff 100644 --- a/src/i430lx.c +++ b/src/i430lx.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 430LX PCISet chip. + * + * Version: @(#)i430lx.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "ibm.h" diff --git a/src/i430lx.h b/src/i430lx.h index 60c061df4..23153f7f4 100644 --- a/src/i430lx.h +++ b/src/i430lx.h @@ -1,4 +1,19 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 430LX PCISet chip. + * + * Version: @(#)i430lx.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void i430lx_init(); diff --git a/src/i430nx.c b/src/i430nx.c index da7b1a5fe..487aa48bd 100644 --- a/src/i430nx.c +++ b/src/i430nx.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 430NX PCISet chip. + * + * Version: @(#)i430nx.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "ibm.h" diff --git a/src/i430nx.h b/src/i430nx.h index 3c759a205..93d1466bb 100644 --- a/src/i430nx.h +++ b/src/i430nx.h @@ -1,4 +1,19 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 430NX PCISet chip. + * + * Version: @(#)i430nx.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void i430nx_init(); diff --git a/src/i430vx.c b/src/i430vx.c index 2eef17d33..e9ff1f42b 100644 --- a/src/i430vx.c +++ b/src/i430vx.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 430VX PCISet chip. + * + * Version: @(#)i430vx.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "ibm.h" diff --git a/src/i430vx.h b/src/i430vx.h index af7e5337e..8ed77f3fe 100644 --- a/src/i430vx.h +++ b/src/i430vx.h @@ -1,4 +1,19 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 430VX PCISet chip. + * + * Version: @(#)i430vx.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void i430vx_init(); diff --git a/src/i440fx.c b/src/i440fx.c index 9074e2e7a..a315801c9 100644 --- a/src/i440fx.c +++ b/src/i440fx.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 440FX PCISet chip. + * + * Version: @(#)i440fx.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "ibm.h" diff --git a/src/i440fx.h b/src/i440fx.h index 72cf59458..3ce8b744f 100644 --- a/src/i440fx.h +++ b/src/i440fx.h @@ -1,4 +1,19 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the Intel 440FX PCISet chip. + * + * Version: @(#)i440fx.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void i440fx_init(); diff --git a/src/ibm.h b/src/ibm.h index e9c00c15c..b210b07a0 100644 --- a/src/ibm.h +++ b/src/ibm.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * General include file. + * + * Version: @(#)ibm.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include #include diff --git a/src/ide.c b/src/ide.c index dbea750bd..f9c28ffdc 100644 --- a/src/ide.c +++ b/src/ide.c @@ -1,6 +1,24 @@ -/* Copyright holders: Sarah Walker, Tenshi, SA1988 - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the IDE emulation for hard disks and ATAPI + * CD-ROM devices. + * + * Version: @(#)ide.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * TheCollector1995, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + * Copyright 2016-2017 TheCollector1995. + */ + #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE #define _GNU_SOURCE diff --git a/src/ide.h b/src/ide.h index de63c9372..85462b67e 100644 --- a/src/ide.h +++ b/src/ide.h @@ -1,6 +1,24 @@ -/* Copyright holders: Sarah Walker, Tenshi, SA1988 - see COPYING for more details -*/ +/* + * 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. + * + * Implementation of the IDE emulation for hard disks and ATAPI + * CD-ROM devices. + * + * Version: @(#)ide.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * TheCollector1995, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + * Copyright 2016-2017 TheCollector1995. + */ + #ifndef __IDE__ #define __IDE__ diff --git a/src/intel_flash.c b/src/intel_flash.c index 1ccb225a9..6ded787ef 100644 --- a/src/intel_flash.c +++ b/src/intel_flash.c @@ -1,3 +1,21 @@ +/* + * 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. + * + * Implementation of the Intel 2 Mbit 8-bit flash devices. + * + * Version: @(#)intel_flash.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "ibm.h" #include "device.h" diff --git a/src/intel_flash.h b/src/intel_flash.h index 242480961..d63b48c18 100644 --- a/src/intel_flash.h +++ b/src/intel_flash.h @@ -1,3 +1,21 @@ +/* + * 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. + * + * Implementation of the Intel 2 Mbit 8-bit flash devices. + * + * Version: @(#)intel_flash.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + extern device_t intel_flash_bxt_ami_device; extern device_t intel_flash_bxb_ami_device; extern device_t intel_flash_bxt_device; diff --git a/src/keyboard.c b/src/keyboard.c index 0ea442618..7a60c5a62 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Host to guest keyboard interface and keyboard scan code sets. + * + * Version: @(#)keyboard.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include "ibm.h" #include "plat_keyboard.h" #include "keyboard.h" diff --git a/src/keyboard.h b/src/keyboard.h index b53b3a8d5..217f1cee1 100644 --- a/src/keyboard.h +++ b/src/keyboard.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Host to guest keyboard interface and keyboard scan code sets. + * + * Version: @(#)keyboard.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + extern void (*keyboard_send)(uint8_t val); extern void (*keyboard_poll)(); extern int keyboard_scan; diff --git a/src/keyboard_at.c b/src/keyboard_at.c index 4e6c7f7e9..06fba2399 100644 --- a/src/keyboard_at.c +++ b/src/keyboard_at.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Intel 8042 (AT keyboard controller) emulation. + * + * Version: @(#)keyboard_at.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "ibm.h" #include "io.h" diff --git a/src/keyboard_at.h b/src/keyboard_at.h index 2fdfb5ee8..d92101543 100644 --- a/src/keyboard_at.h +++ b/src/keyboard_at.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Intel 8042 (AT keyboard controller) emulation. + * + * Version: @(#)keyboard_at.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void keyboard_at_init(); void keyboard_at_init_ps2(); void keyboard_at_reset(); diff --git a/src/memregs.c b/src/memregs.c index ec832225a..6d002f512 100644 --- a/src/memregs.c +++ b/src/memregs.c @@ -1,10 +1,19 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ /* - 0xE1 and 0xE2 Memory Registers - Used by just about any emulated machine -*/ + * 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. + * + * Emulation of the memory I/O scratch registers on ports 0xE1 + * and 0xE2, used by just about any emulated machine. + * + * Version: @(#)memregs.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ #include "ibm.h" diff --git a/src/memregs.h b/src/memregs.h index 590aa2af2..cb8d626b7 100644 --- a/src/memregs.h +++ b/src/memregs.h @@ -1,5 +1,19 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the memory I/O scratch registers on ports 0xE1 + * and 0xE2, used by just about any emulated machine. + * + * Version: @(#)memregs.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + extern void memregs_init(); void powermate_memregs_init(); diff --git a/src/model.c b/src/model.c index 2c88624f2..7eb73479f 100644 --- a/src/model.c +++ b/src/model.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Handling of the emulated machines. + * + * Version: @(#)model.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include #include "ibm.h" diff --git a/src/model.h b/src/model.h index bfdc19077..a337b122b 100644 --- a/src/model.h +++ b/src/model.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tohka - see COPYING for more details -*/ +/* + * 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. + * + * Handling of the emulated machines. + * + * Version: @(#)model.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #define MODEL_AT 1 #define MODEL_PS2 2 #define MODEL_AMSTRAD 4 diff --git a/src/nvr.c b/src/nvr.c index 56a1d7e20..5888c1005 100644 --- a/src/nvr.c +++ b/src/nvr.c @@ -1,3 +1,23 @@ +/* + * 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. + * + * CMOS NVRAM emulation. + * + * Version: @(#)nvr.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Mahod, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + * Copyright 2016-2017 Mahod. + */ + #include #include "ibm.h" #include "io.h" diff --git a/src/nvr.h b/src/nvr.h index 069a476a7..46eaa07ec 100644 --- a/src/nvr.h +++ b/src/nvr.h @@ -1,6 +1,23 @@ -/* Copyright holders: Mahod, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * CMOS NVRAM emulation. + * + * Version: @(#)nvr.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Mahod, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + * Copyright 2016-2017 Mahod. + */ + void nvr_init(); extern int enable_sync; diff --git a/src/pc.c b/src/pc.c index 6537c8733..dc7b3a5de 100644 --- a/src/pc.c +++ b/src/pc.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation core dispatcher. + * + * Version: @(#)pc.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include #include diff --git a/src/pc87306.c b/src/pc87306.c index c0a6bb7d1..c0887451b 100644 --- a/src/pc87306.c +++ b/src/pc87306.c @@ -1,10 +1,19 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ /* - National Semiconductors PC87306 Super I/O Chip - Used by Intel Advanced/EV -*/ + * 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. + * + * Emulation of the National Semiconductors PC87306 Super I/O + * chip. + * + * Version: @(#)pc87306.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ #include "ibm.h" diff --git a/src/pc87306.h b/src/pc87306.h index 0f48f3d97..d1891fdd8 100644 --- a/src/pc87306.h +++ b/src/pc87306.h @@ -1,4 +1,18 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the National Semiconductors PC87306 Super I/O + * chip. + * + * Version: @(#)pc87306.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + extern void pc87306_init(); diff --git a/src/piix.c b/src/piix.c index 04cf62418..8e7378dbd 100644 --- a/src/piix.c +++ b/src/piix.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the Intel PIIX and PIIX3 Xcelerators. + * + * Emulation core dispatcher. + * + * Version: @(#)piix.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + /*PRD format : word 0 - base address diff --git a/src/piix.h b/src/piix.h index c86a680ce..00000138c 100644 --- a/src/piix.h +++ b/src/piix.h @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker, Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the Intel PIIX and PIIX3 Xcelerators. + * + * Emulation core dispatcher. + * + * Version: @(#)piix.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + void piix_init(int card); void piix3_init(int card); diff --git a/src/scsi_aha154x.c b/src/scsi_aha154x.c index 2a80b626a..72f615843 100644 --- a/src/scsi_aha154x.c +++ b/src/scsi_aha154x.c @@ -15,7 +15,7 @@ * Version: @(#)scsi_aha154x.c 1.0.6 2017/05/06 * * Authors: Fred N. van Kempen, - * Original Buslogic version by SA1988. + * Original Buslogic version by SA1988 and Miran Grca. * Copyright 2017 Fred N. van Kempen. */ #include diff --git a/src/scsi_buslogic.c b/src/scsi_buslogic.c index a691fa699..e9d2ca48a 100644 --- a/src/scsi_buslogic.c +++ b/src/scsi_buslogic.c @@ -1,6 +1,22 @@ -/* Copyright holders: SA1988 - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of BusLogic BT-542B ISA and BT-958D PCI SCSI + * controllers. + * + * Version: @(#)scsi_buslogic.c 1.0.0 2017/05/30 + * + * Author: TheCollector1995, + * Miran Grca, + * Fred N. van Kempen, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + * Copyright 2017-2017 Fred N. van Kempen. + */ + /*Buslogic SCSI emulation*/ /* Emulated SCSI controllers: diff --git a/src/scsi_buslogic.h b/src/scsi_buslogic.h index c2d5dccc5..c952e06d1 100644 --- a/src/scsi_buslogic.h +++ b/src/scsi_buslogic.h @@ -1,3 +1,22 @@ +/* + * 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. + * + * Emulation of BusLogic BT-542B ISA and BT-958D PCI SCSI + * controllers. + * + * Version: @(#)scsi_buslogic.h 1.0.0 2017/05/30 + * + * Author: TheCollector1995, + * Miran Grca, + * Fred N. van Kempen, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + * Copyright 2017-2017 Fred N. van Kempen. + */ + #ifndef SCSI_BUSLOGIC_H # define SCSI_BUSLOGIC_H diff --git a/src/scsi_disk.c b/src/scsi_disk.c index 67975d6fa..33b88a4bb 100644 --- a/src/scsi_disk.c +++ b/src/scsi_disk.c @@ -1,4 +1,16 @@ -/* SCSI hard disk emulation */ +/* + * 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. + * + * Emulation of SCSI fixed and removable disks. + * + * Version: @(#)scsi_disk.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2017-2017 Miran Grca. + */ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE diff --git a/src/scsi_disk.h b/src/scsi_disk.h index 233c04fd1..95fdd9316 100644 --- a/src/scsi_disk.h +++ b/src/scsi_disk.h @@ -1,3 +1,17 @@ +/* + * 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. + * + * Emulation of SCSI fixed and removable disks. + * + * Version: @(#)scsi_disk.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2017-2017 Miran Grca. + */ + #pragma pack(push,1) typedef struct { /* Stuff for SCSI hard disks. */ diff --git a/src/sio.c b/src/sio.c index 9ad476e38..3250ba2f0 100644 --- a/src/sio.c +++ b/src/sio.c @@ -1,6 +1,17 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of Intel System I/O PCI chip. + * + * Version: @(#)sio.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2017-2017 Miran Grca. + */ + /*PRD format : word 0 - base address diff --git a/src/sio.h b/src/sio.h index 38b0ff468..9aacd3e6b 100644 --- a/src/sio.h +++ b/src/sio.h @@ -1,5 +1,16 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of Intel System I/O PCI chip. + * + * Version: @(#)sio.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2017-2017 Miran Grca. + */ + void trc_init(void); void sio_init(int card); diff --git a/src/sis50x.c b/src/sis50x.c index ad4be95c6..59e887d78 100644 --- a/src/sis50x.c +++ b/src/sis50x.c @@ -1,6 +1,17 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the SiS 50x PCI chips. + * + * Version: @(#)sis50x.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2017-2017 Miran Grca. + */ + #include #include "ibm.h" #include "device.h" diff --git a/src/sis50x.h b/src/sis50x.h index d2028dc2b..df5565043 100644 --- a/src/sis50x.h +++ b/src/sis50x.h @@ -1,6 +1,17 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the SiS 50x PCI chips. + * + * Version: @(#)sis50x.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2017-2017 Miran Grca. + */ + extern device_t sis501_device; extern device_t sis503_device; extern device_t sis50x_device; diff --git a/src/sis85c471.c b/src/sis85c471.c index e7d5af86c..f56716f43 100644 --- a/src/sis85c471.c +++ b/src/sis85c471.c @@ -1,6 +1,17 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the SiS 85c471 chip. + * + * Version: @(#)sis85c471.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2017-2017 Miran Grca. + */ + /* SiS sis85c471 Super I/O Chip Used by Batman's Revenge diff --git a/src/sis85c471.h b/src/sis85c471.h index 5ccd63ab5..5a69fdf65 100644 --- a/src/sis85c471.h +++ b/src/sis85c471.h @@ -1,3 +1,17 @@ +/* + * 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. + * + * Emulation of the SiS 85c471 chip. + * + * Version: @(#)sis85c471.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2017-2017 Miran Grca. + */ + /* Copyright holders: Tenshi see COPYING for more details */ diff --git a/src/um8669f.c b/src/um8669f.c index 00433f24c..964f2613a 100644 --- a/src/um8669f.c +++ b/src/um8669f.c @@ -1,6 +1,21 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the UMC UM8669F Super I/O Chip. + * + * Version: @(#)um8669f.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + /*um8669f : aa to 108 unlocks diff --git a/src/um8669f.h b/src/um8669f.h index 19a56ba02..92052a151 100644 --- a/src/um8669f.h +++ b/src/um8669f.h @@ -1,4 +1,19 @@ -/* Copyright holders: Sarah Walker - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the UMC UM8669F Super I/O Chip. + * + * Version: @(#)um8669f.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + extern void um8669f_init(); diff --git a/src/w83877f.c b/src/w83877f.c index cb980df09..6a6dd0552 100644 --- a/src/w83877f.c +++ b/src/w83877f.c @@ -1,6 +1,19 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the Winbond W83877F Super I/O Chip. + * + * Version: @(#)w83877f.c 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + /* Winbond W83877F Super I/O Chip Used by the Award 430HX diff --git a/src/w83877f.h b/src/w83877f.h index 33120fbde..f4a103c94 100644 --- a/src/w83877f.h +++ b/src/w83877f.h @@ -1,4 +1,17 @@ -/* Copyright holders: Tenshi - see COPYING for more details -*/ +/* + * 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. + * + * Emulation of the Winbond W83877F Super I/O Chip. + * + * Version: @(#)w83877f.h 1.0.0 2017/05/30 + * + * Author: Miran Grca, + * Copyright 2016-2017 Miran Grca. + */ + extern void w83877f_init(); diff --git a/src/xtide.c b/src/xtide.c index 78ca248fa..aaa1b8294 100644 --- a/src/xtide.c +++ b/src/xtide.c @@ -1,3 +1,21 @@ +/* + * 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. + * + * XT IDE controller emulation. + * + * Version: @(#)xtide.c 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + #include #include "ibm.h" #include "io.h" diff --git a/src/xtide.h b/src/xtide.h index 666783629..925d96568 100644 --- a/src/xtide.h +++ b/src/xtide.h @@ -1,3 +1,21 @@ +/* + * 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. + * + * XT IDE controller emulation. + * + * Version: @(#)xtide.h 1.0.0 2017/05/30 + * + * Author: Sarah Walker, + * Miran Grca, + * Copyright 2008-2017 Sarah Walker. + * Copyright 2016-2017 Miran Grca. + */ + extern device_t xtide_device; extern device_t xtide_at_device; extern device_t xtide_ps2_device;