mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 09:35:32 -07:00
Extensively cleaned up and changed the CD-ROM code; Removed CD-ROM IOCTTL (it was causing performance and stability issues); Turned a lot of things into device_t's; Added the PS/1 Model 2011 XTA and standalone XTA hard disk controllers, ported from Varcem; Numerous FDC fixes for the PS/1 Model 2121; NVR changes ported from Varcem; The PCap code no longer requires libpcap to be compiled; Numerous fixes to various SCSI controllers; Updated NukedOPL to 1.8; Fixes to OpenAL initialization and closing, should give less Audio issues now; Revorked parts of the common (S)VGA code (also based on code from QEMU); Removed the Removable SCSI hard disks (they were a never finished experiment so there was no need to keep them there); Cleaned up the SCSI hard disk and Iomega ZIP code (but more cleanups of that are coming in the future); In some occasions (IDE hard disks in multiple sector mode and SCSI hard disks) the status bar icon is no longer updated, should improve performance a bit; Redid the way the tertiary and quaternary IDE controllers are configured (and they are now device_t's); Extensively reworked the IDE code and fixed quite a few bugs; Fixes to XT MFM, AT MFM, and AT ESDI code; Some changes to XTIDE and MCA ESDI code; Some fixes to the CD-ROM image handler.
95 lines
2.5 KiB
C
95 lines
2.5 KiB
C
/*
|
|
* VARCem Virtual ARchaeological Computer EMulator.
|
|
* An emulator of (mostly) x86-based PC systems and devices,
|
|
* using the ISA,EISA,VLB,MCA and PCI system buses, roughly
|
|
* spanning the era between 1981 and 1995.
|
|
*
|
|
* This file is part of the VARCem Project.
|
|
*
|
|
* Definitions for the Intel DMA controller.
|
|
*
|
|
* Version: @(#)dma.h 1.0.2 2018/03/12
|
|
*
|
|
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
|
|
* Miran Grca, <mgrca8@gmail.com>
|
|
* Sarah Walker, <tommowalker@tommowalker.co.uk>
|
|
*
|
|
* Copyright 2017,2018 Fred N. van Kempen.
|
|
* Copyright 2016-2018 Miran Grca.
|
|
* Copyright 2008-2018 Sarah Walker.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the:
|
|
*
|
|
* Free Software Foundation, Inc.
|
|
* 59 Temple Place - Suite 330
|
|
* Boston, MA 02111-1307
|
|
* USA.
|
|
*/
|
|
#ifndef EMU_DMA_H
|
|
# define EMU_DMA_H
|
|
|
|
|
|
#define DMA_NODATA -1
|
|
#define DMA_OVER 0x10000
|
|
#define DMA_VERIFY 0x20000
|
|
|
|
|
|
typedef struct {
|
|
uint32_t ab, ac;
|
|
uint16_t cb;
|
|
int cc;
|
|
int wp;
|
|
uint8_t m, mode;
|
|
uint8_t page;
|
|
uint8_t stat, stat_rq;
|
|
uint8_t command;
|
|
int size;
|
|
|
|
uint8_t ps2_mode;
|
|
uint8_t arb_level;
|
|
uint16_t io_addr;
|
|
} dma_t;
|
|
|
|
|
|
extern dma_t dma[8];
|
|
|
|
|
|
extern void dma_init(void);
|
|
extern void dma16_init(void);
|
|
extern void ps2_dma_init(void);
|
|
extern void dma_reset(void);
|
|
extern int dma_mode(int channel);
|
|
|
|
extern void readdma0(void);
|
|
extern int readdma1(void);
|
|
extern uint8_t readdma2(void);
|
|
extern int readdma3(void);
|
|
|
|
extern void writedma2(uint8_t temp);
|
|
|
|
extern int dma_channel_read(int channel);
|
|
extern int dma_channel_write(int channel, uint16_t val);
|
|
|
|
extern void dma_alias_set(void);
|
|
extern void dma_alias_remove(void);
|
|
extern void dma_alias_remove_piix(void);
|
|
|
|
extern void DMAPageRead(uint32_t PhysAddress, uint8_t *DataRead,
|
|
uint32_t TotalSize);
|
|
extern void DMAPageWrite(uint32_t PhysAddress, const uint8_t *DataWrite,
|
|
uint32_t TotalSize);
|
|
|
|
|
|
#endif /*EMU_DMA_H*/
|