Files
86Box/src/machine/m_at.c
waltje 7c67e867c8 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.
2017-11-05 02:00:50 -05:00

66 lines
1018 B
C

#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include "../86box.h"
#include "../pic.h"
#include "../pit.h"
#include "../dma.h"
#include "../mem.h"
#include "../device.h"
#include "../nvr.h"
#include "../game/gameport.h"
#include "../keyboard.h"
#include "../lpt.h"
#include "../disk/hdc.h"
#include "../disk/hdc_ide.h"
#include "machine.h"
void
machine_at_init(machine_t *model)
{
machine_common_init(model);
pit_set_out_func(&pit, 1, pit_refresh_timer_at);
pic2_init();
dma16_init();
if (lpt_enabled)
lpt2_remove();
nvr_at_init(8);
device_add(&keyboard_at_device);
if (joystick_type != 7)
device_add(&gameport_device);
}
void
machine_at_ide_init(machine_t *model)
{
machine_at_init(model);
ide_init();
}
void
machine_at_top_remap_init(machine_t *model)
{
machine_at_init(model);
mem_remap_top_384k();
}
void
machine_at_ide_top_remap_init(machine_t *model)
{
machine_at_ide_init(model);
mem_remap_top_384k();
}