2017-09-25 04:31:20 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <wchar.h>
|
2017-10-17 01:59:09 -04:00
|
|
|
#include "../86box.h"
|
2017-09-04 01:52:29 -04:00
|
|
|
#include "../nmi.h"
|
|
|
|
|
#include "../pit.h"
|
|
|
|
|
#include "../mem.h"
|
2017-09-02 20:39:57 +02:00
|
|
|
#include "../device.h"
|
2018-01-17 18:43:36 +01:00
|
|
|
#include "../floppy/fdd.h"
|
|
|
|
|
#include "../floppy/fdc.h"
|
2017-10-01 17:30:02 -04:00
|
|
|
#include "../game/gameport.h"
|
2017-11-05 01:57:04 -05:00
|
|
|
#include "../keyboard.h"
|
2017-10-07 22:18:30 -04:00
|
|
|
#include "machine.h"
|
2017-09-02 20:39:57 +02:00
|
|
|
|
2017-09-04 01:52:29 -04:00
|
|
|
|
2018-09-15 16:15:39 +02:00
|
|
|
void
|
|
|
|
|
machine_pc_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
machine_common_init(model);
|
|
|
|
|
|
|
|
|
|
pit_set_out_func(&pit, 1, pit_refresh_timer_xt);
|
|
|
|
|
|
|
|
|
|
device_add(&keyboard_pc_device);
|
|
|
|
|
device_add(&fdc_xt_device);
|
|
|
|
|
nmi_init();
|
|
|
|
|
if (joystick_type != 7)
|
|
|
|
|
device_add(&gameport_device);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2017-10-07 22:18:30 -04:00
|
|
|
void
|
2018-03-19 01:02:04 +01:00
|
|
|
machine_xt_init(const machine_t *model)
|
2017-09-02 20:39:57 +02:00
|
|
|
{
|
2017-10-29 04:20:20 -05:00
|
|
|
machine_common_init(model);
|
2017-09-02 20:39:57 +02:00
|
|
|
|
2017-10-29 04:20:20 -05:00
|
|
|
pit_set_out_func(&pit, 1, pit_refresh_timer_xt);
|
2017-09-02 20:39:57 +02:00
|
|
|
|
2017-11-05 01:57:04 -05:00
|
|
|
device_add(&keyboard_xt_device);
|
2018-01-17 18:43:36 +01:00
|
|
|
device_add(&fdc_xt_device);
|
2017-10-29 04:20:20 -05:00
|
|
|
nmi_init();
|
|
|
|
|
if (joystick_type != 7)
|
|
|
|
|
device_add(&gameport_device);
|
2017-09-02 20:39:57 +02:00
|
|
|
}
|