Thoroughly clean up the code to vastly reduce the number of compiler warnings and found and fixed several bugs in the process; Applied all mainline PCem commits; Added SCSI hard disk emulation; Commented out all unfinished machines and graphics cards; Added the AOpen AP53 and ASUS P/I-P55T2 machines as well as another Tyan 440FX machine, all three with AMI WinBIOS (patch from TheCollector1995); Added the Diamond Stealth 3D 3000 (S3 ViRGE/VX) graphics card (patch from TheCollector1995); Added the PS/2 XT IDE (AccuLogic) HDD Controller (patch from TheCollector1995); Added Microsoft/Logitech Bus Mouse emulation (patch from waltje); Overhauled the makefiles (patch from waltje); Added the Adaptec AHA-1542CF SCSI controller (patch from waltje); Added preliminary (but still unfinished) Adaptec AHA-154x SCSI controller BIOS support (patch from waltje); Added an ISABugger debugging device (patch from waltje); Added sanity checks to the Direct3D code.
36 lines
823 B
C
36 lines
823 B
C
/* Copyright holders: Sarah Walker
|
|
see COPYING for more details
|
|
*/
|
|
void serial1_init(uint16_t addr, int irq);
|
|
void serial2_init(uint16_t addr, int irq);
|
|
void serial1_set(uint16_t addr, int irq);
|
|
void serial2_set(uint16_t addr, int irq);
|
|
void serial1_remove();
|
|
void serial2_remove();
|
|
void serial_reset();
|
|
|
|
struct SERIAL;
|
|
|
|
typedef struct
|
|
{
|
|
uint8_t lsr,thr,mctrl,rcr,iir,ier,lcr,msr;
|
|
uint8_t dlab1,dlab2;
|
|
uint8_t dat;
|
|
uint8_t int_status;
|
|
uint8_t scratch;
|
|
uint8_t fcr;
|
|
|
|
int irq;
|
|
|
|
void (*rcr_callback)(struct SERIAL *serial, void *p);
|
|
void *rcr_callback_p;
|
|
uint8_t fifo[256];
|
|
int fifo_read, fifo_write;
|
|
|
|
int recieve_delay;
|
|
} SERIAL;
|
|
|
|
extern SERIAL serial1, serial2;
|
|
|
|
void serial_write_fifo(SERIAL *serial, uint8_t dat);
|