Major commit, cleaning a lot of old stuff.
IBM.H is gone, video stuff re-organized. Keyboard stuff reorganized. Machines that have their own video, mouse and/or keyboard now have all this in their machine file. Fixed and other cleanups here and there.
This commit is contained in:
35
src/machine/m_common.c
Normal file
35
src/machine/m_common.c
Normal file
@@ -0,0 +1,35 @@
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <wchar.h>
|
||||
#include "../86box.h"
|
||||
#include "../dma.h"
|
||||
#include "../pic.h"
|
||||
#include "../pit.h"
|
||||
#include "../lpt.h"
|
||||
#include "../serial.h"
|
||||
#include "../floppy/floppy.h"
|
||||
#include "../floppy/fdd.h"
|
||||
#include "../floppy/fdc.h"
|
||||
#include "machine.h"
|
||||
|
||||
|
||||
void
|
||||
machine_common_init(machine_t *model)
|
||||
{
|
||||
/* System devices first. */
|
||||
dma_init();
|
||||
pic_init();
|
||||
pit_init();
|
||||
|
||||
if (lpt_enabled)
|
||||
lpt_init();
|
||||
|
||||
if (serial_enabled[0])
|
||||
serial_setup(1, SERIAL1_ADDR, SERIAL1_IRQ);
|
||||
|
||||
if (serial_enabled[1])
|
||||
serial_setup(2, SERIAL2_ADDR, SERIAL2_IRQ);
|
||||
|
||||
fdc_add();
|
||||
}
|
||||
Reference in New Issue
Block a user