From a0574bb47397fd9af67ab4cadd43f9194cc0b98c Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Wed, 13 Aug 2008 15:09:08 +0000 Subject: Moved several include files from mame/ to emu/, as they were included by generic components in emu/ and thus should have no dependencies on the MAME code. Added new target ldplayer, which is based on MAME but serves as a standalone laserdisc player for CHDs. Right now only the Pioneer LD-V1000 is connected, and limited commands are available. Each player type is a driver, so you specify the player type on the command-line. The driver then opens the first CHD it finds in your ROM path and uses that as the laserdisc. The intention is that you specify the -rompath each time on the command-line, so a typical approach might be: ldplayer ldv1000 -rompath j:\mach3 where it will pick up the mach3.chd lurking in your j:\mach3 folder. Several basic commands are supported: Space = play/pause Alt = toggle frame display Left = scan forward (when playing) or step forward (when paused) Right = scan backward (when playing) or step backward (when paused) 0-9 = enter numbers for search Enter = execute search to frame --- src/emu/machine/laserdsc.c | 2 +- src/emu/machine/pckeybrd.h | 35 +++++ src/emu/machine/pcshare.h | 13 ++ src/emu/machine/rescap.h | 11 ++ src/emu/romload.c | 15 ++ src/emu/romload.h | 1 + src/emu/sound/flt_rc.h | 2 +- src/emu/validity.c | 2 +- src/ldplayer/ldpdriv.c | 43 ++++++ src/ldplayer/ldplayer.c | 341 ++++++++++++++++++++++++++++++++++++++++++++ src/ldplayer/ldplayer.mak | 42 ++++++ src/mame/includes/rescap.h | 11 -- src/mame/machine/pckeybrd.h | 35 ----- src/mame/machine/pcshare.h | 13 -- 14 files changed, 504 insertions(+), 62 deletions(-) create mode 100644 src/emu/machine/pckeybrd.h create mode 100644 src/emu/machine/pcshare.h create mode 100644 src/emu/machine/rescap.h create mode 100644 src/ldplayer/ldpdriv.c create mode 100644 src/ldplayer/ldplayer.c create mode 100644 src/ldplayer/ldplayer.mak delete mode 100644 src/mame/includes/rescap.h delete mode 100644 src/mame/machine/pckeybrd.h delete mode 100644 src/mame/machine/pcshare.h (limited to 'src') diff --git a/src/emu/machine/laserdsc.c b/src/emu/machine/laserdsc.c index 42836c005f0..6c2c0e33bc0 100644 --- a/src/emu/machine/laserdsc.c +++ b/src/emu/machine/laserdsc.c @@ -1363,7 +1363,7 @@ static void process_track_data(const device_config *device) ld->last_chapter = chapter; /* render the display if present */ - if (ld->display) + if (ld->display && ld->avconfig.video != NULL) render_display((UINT16 *)ld->avconfig.video->base, ld->avconfig.video->rowpixels, ld->avconfig.video->width, ld->last_frame); /* update video field */ diff --git a/src/emu/machine/pckeybrd.h b/src/emu/machine/pckeybrd.h new file mode 100644 index 00000000000..5ca446e5c70 --- /dev/null +++ b/src/emu/machine/pckeybrd.h @@ -0,0 +1,35 @@ +/********************************************************************** + + pckeybrd.h + + PC-style keyboard emulation + + This emulation is decoupled from the AT 8042 emulation used in the + IBM ATs and above + +**********************************************************************/ + +#ifndef PCKEYBRD_H +#define PCKEYBRD_H + +typedef enum +{ + AT_KEYBOARD_TYPE_PC, + AT_KEYBOARD_TYPE_AT, + AT_KEYBOARD_TYPE_MF2 +} AT_KEYBOARD_TYPE; + +void at_keyboard_init(running_machine *machine, AT_KEYBOARD_TYPE type); + +void at_keyboard_polling(void); +int at_keyboard_read(void); +void at_keyboard_write(UINT8 data); +void at_keyboard_reset(void); +void at_keyboard_set_scan_code_set(int set); + +INPUT_PORTS_EXTERN( pc_keyboard ); +INPUT_PORTS_EXTERN( at_keyboard ); + +#endif /* PCKEYBRD_H */ + + diff --git a/src/emu/machine/pcshare.h b/src/emu/machine/pcshare.h new file mode 100644 index 00000000000..34c711d1e90 --- /dev/null +++ b/src/emu/machine/pcshare.h @@ -0,0 +1,13 @@ +#include "sound/custom.h" + +/* flags for init_pc_common */ +#define PCCOMMON_KEYBOARD_PC 0 +#define PCCOMMON_KEYBOARD_AT 1 + +void init_pc_common(running_machine *machine, UINT32 flags, void (*set_keyb_int_func)(int)); + +void pc_keyboard(void); +UINT8 pc_keyb_read(void); +void pc_keyb_set_clock(int on); +void pc_keyb_clear(void); + diff --git a/src/emu/machine/rescap.h b/src/emu/machine/rescap.h new file mode 100644 index 00000000000..c069761e345 --- /dev/null +++ b/src/emu/machine/rescap.h @@ -0,0 +1,11 @@ +#ifndef RC_MACROS_H +#define RC_MACROS_H + +/* Little helpers for magnitude conversions */ +#define RES_K(res) ((double)(res)*1e3) +#define RES_M(res) ((double)(res)*1e6) +#define CAP_U(cap) ((double)(cap)*1e-6) +#define CAP_N(cap) ((double)(cap)*1e-9) +#define CAP_P(cap) ((double)(cap)*1e-12) + +#endif diff --git a/src/emu/romload.c b/src/emu/romload.c index b53918c3866..54e4fe5f907 100644 --- a/src/emu/romload.c +++ b/src/emu/romload.c @@ -79,6 +79,21 @@ chd_file *get_disk_handle(const char *region) } +void set_disk_handle(const char *region, mame_file *file, chd_file *chdfile) +{ + open_chd chd = { 0 }; + + /* note the region we are in */ + chd.region = region; + chd.origchd = chdfile; + chd.origfile = file; + + /* we're okay, add to the list of disks */ + *chd_list_tailptr = auto_malloc(sizeof(**chd_list_tailptr)); + **chd_list_tailptr = chd; + chd_list_tailptr = &(*chd_list_tailptr)->next; +} + /*************************************************************************** ROM LOADING diff --git a/src/emu/romload.h b/src/emu/romload.h index 276b8288183..496284053b7 100644 --- a/src/emu/romload.h +++ b/src/emu/romload.h @@ -278,6 +278,7 @@ struct _rom_load_data chd_error open_disk_image(const game_driver *gamedrv, const rom_entry *romp, mame_file **image_file, chd_file **image_chd); chd_error open_disk_image_options(core_options *options, const game_driver *gamedrv, const rom_entry *romp, mame_file **image_file, chd_file **image_chd); chd_file *get_disk_handle(const char *region); +void set_disk_handle(const char *region, mame_file *file, chd_file *chd); /* ROM processing */ void rom_init(running_machine *machine, const rom_entry *romp); diff --git a/src/emu/sound/flt_rc.h b/src/emu/sound/flt_rc.h index 90bd4c919c5..b679e7441ac 100644 --- a/src/emu/sound/flt_rc.h +++ b/src/emu/sound/flt_rc.h @@ -3,7 +3,7 @@ #ifndef __FLT_RC_H__ #define FLT_RC_H -#include "rescap.h" +#include "machine/rescap.h" #define FLT_RC_LOWPASS 0 #define FLT_RC_HIGHPASS 1 diff --git a/src/emu/validity.c b/src/emu/validity.c index 77d254f1155..db4844c361f 100644 --- a/src/emu/validity.c +++ b/src/emu/validity.c @@ -527,7 +527,7 @@ static int validate_roms(int drivnum, const machine_config *config, region_info /* if we haven't seen any items since the last region, print a warning */ if (items_since_region == 0) mame_printf_warning("%s: %s has empty ROM region (warning)\n", driver->source_file, driver->name); - items_since_region = (ROMREGION_ISERASE(romp) || ROMREGION_ISDISPOSE(romp)) ? 1 : 0; + items_since_region = (ROMREGION_ISERASE(romp) || ROMREGION_ISDISPOSE(romp) || ROMREGION_ISDISKDATA(romp)) ? 1 : 0; currgn = NULL; /* check for an invalid tag */ diff --git a/src/ldplayer/ldpdriv.c b/src/ldplayer/ldpdriv.c new file mode 100644 index 00000000000..c25b3ad2343 --- /dev/null +++ b/src/ldplayer/ldpdriv.c @@ -0,0 +1,43 @@ +/****************************************************************************** + + ldpdriv.c + + mamedriv.c substitute file for "ldplayer" MAME builds. + + Copyright Nicola Salmoria and the MAME Team. + Visit http://mamedev.org for licensing and usage restrictions. + + The list of used drivers. Drivers have to be included here to be recognized + by the executable. + + To save some typing, we use a hack here. This file is recursively #included + twice, with different definitions of the DRIVER() macro. The first one + declares external references to the drivers; the second one builds an array + storing all the drivers. + +******************************************************************************/ + +#include "driver.h" + +#ifndef DRIVER_RECURSIVE + +#define DRIVER_RECURSIVE + +/* step 1: declare all external references */ +#define DRIVER(NAME) extern game_driver driver_##NAME; +#include "ldpdriv.c" + +/* step 2: define the drivers[] array */ +#undef DRIVER +#define DRIVER(NAME) &driver_##NAME, +const game_driver * const drivers[] = +{ +#include "ldpdriv.c" + 0 /* end of array */ +}; + +#else /* DRIVER_RECURSIVE */ + + DRIVER( ldv1000 ) /* Pioneer LD-V1000 */ + +#endif /* DRIVER_RECURSIVE */ diff --git a/src/ldplayer/ldplayer.c b/src/ldplayer/ldplayer.c new file mode 100644 index 00000000000..bf597fc2031 --- /dev/null +++ b/src/ldplayer/ldplayer.c @@ -0,0 +1,341 @@ +/************************************************************************* + + ldplayer.c + + Laserdisc player driver. + + Copyright Nicola Salmoria and the MAME Team. + Visit http://mamedev.org for licensing and usage restrictions. + +**************************************************************************/ + +#include "driver.h" +#include "uimenu.h" +#include "machine/laserdsc.h" +#include + + +static render_texture *video_texture; +static astring *filename; + +static input_port_value last_controls; +static UINT8 playing; +static UINT8 displaying; + + + +/************************************* + * + * Video update + * + *************************************/ + +static VIDEO_START( ldplayer ) +{ + /* allocate a video texture */ + video_texture = render_texture_alloc(NULL, NULL); + if (video_texture == NULL) + fatalerror("Out of memory allocating video texture"); +} + + +static VIDEO_UPDATE( ldplayer ) +{ + const device_config *laserdisc = device_list_first(screen->machine->config->devicelist, LASERDISC); + bitmap_t *video_bitmap; + + /* now talk to the laserdisc */ + laserdisc_get_video(laserdisc, &video_bitmap); + if (video_bitmap != NULL) + render_texture_set_bitmap(video_texture, video_bitmap, NULL, 0, TEXFORMAT_YUY16); + + /* add a quad to the screen */ + render_container_empty(render_container_get_screen(screen)); + render_screen_add_quad(screen, 0.0f, 0.0f, 1.0f, 1.0f, MAKE_ARGB(0xff,0xff,0xff,0xff), video_texture, PRIMFLAG_BLENDMODE(BLENDMODE_NONE) | PRIMFLAG_SCREENTEX(1)); + + return 0; +} + + + +/************************************* + * + * Timers and sync + * + *************************************/ + +static void process_commands(const device_config *laserdisc) +{ + static const UINT8 digits[10] = { 0x3f, 0x0f, 0x8f, 0x4f, 0x2f, 0xaf, 0x6f, 0x1f, 0x9f, 0x5f }; + input_port_value controls = input_port_read(laserdisc->machine, "controls"); + int number; + + /* scan/step backwards */ + if (!(last_controls & 0x01) && (controls & 0x01)) + { + if (playing) + laserdisc_data_w(laserdisc, 0xf8); + else + laserdisc_data_w(laserdisc, 0xfe); + } + else if ((last_controls & 0x01) && !(controls & 0x01)) + { + if (playing) + laserdisc_data_w(laserdisc, 0xfd); + } + + /* scan/step forwards */ + if (!(last_controls & 0x02) && (controls & 0x02)) + { + if (playing) + laserdisc_data_w(laserdisc, 0xf0); + else + laserdisc_data_w(laserdisc, 0xf6); + } + else if ((last_controls & 0x02) && !(controls & 0x02)) + { + if (playing) + laserdisc_data_w(laserdisc, 0xfd); + } + + /* play/pause */ + if (!(last_controls & 0x10) && (controls & 0x10)) + { + playing = !playing; + laserdisc_data_w(laserdisc, playing ? 0xfd : 0xa0); + } + + /* toggle display */ + if (!(last_controls & 0x20) && (controls & 0x20)) + { + displaying = !displaying; + laserdisc_data_w(laserdisc, digits[displaying]); + laserdisc_data_w(laserdisc, 0xf1); + } + + /* numbers */ + for (number = 0; number < 10; number++) + if (!(last_controls & (0x100 << number)) && (controls & (0x100 << number))) + laserdisc_data_w(laserdisc, digits[number]); + + /* enter */ + if (!(last_controls & 0x40000) && (controls & 0x40000)) + { + playing = FALSE; + laserdisc_data_w(laserdisc, 0xf7); + } + + last_controls = controls; +} + + +static TIMER_CALLBACK( vsync_update ) +{ + const device_config *laserdisc = device_list_first(machine->config->devicelist, LASERDISC); + int vblank_scanline; + attotime target; + + /* handle commands */ + if (!param) + process_commands(laserdisc); + + /* update the laserdisc */ + laserdisc_vsync(laserdisc); + + /* set a timer to go off on the next VBLANK */ + vblank_scanline = video_screen_get_visible_area(machine->primary_screen)->max_y + 1; + target = video_screen_get_time_until_pos(machine->primary_screen, vblank_scanline, 0); + timer_set(target, NULL, 0, vsync_update); +} + + +static MACHINE_START( ldplayer ) +{ + vsync_update(machine, NULL, 1); +} + + +static TIMER_CALLBACK( autoplay ) +{ + const device_config *laserdisc = device_list_first(machine->config->devicelist, LASERDISC); + + /* start playing */ + laserdisc_data_w(laserdisc, 0xfd); + playing = TRUE; + displaying = FALSE; +} + + +static MACHINE_RESET( ldplayer ) +{ + /* set up a timer to start playing immediately */ + timer_set(attotime_zero, NULL, 0, autoplay); + + /* indicate the name of the file we opened */ + popmessage("Opened %s\n", astring_c(filename)); +} + + + +/************************************* + * + * Port definitions + * + *************************************/ + +static INPUT_PORTS_START( ldplayer ) + PORT_START("controls") + PORT_BIT( 0x00001, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) + PORT_BIT( 0x00002, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) + PORT_BIT( 0x00004, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) + PORT_BIT( 0x00008, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) + PORT_BIT( 0x00010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CODE(KEYCODE_SPACE) + PORT_BIT( 0x00020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) + PORT_BIT( 0x00100, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_CODE(KEYCODE_0_PAD) PORT_CODE(KEYCODE_0) + PORT_BIT( 0x00200, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_CODE(KEYCODE_1_PAD) PORT_CODE(KEYCODE_1) + PORT_BIT( 0x00400, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_CODE(KEYCODE_2_PAD) PORT_CODE(KEYCODE_2) + PORT_BIT( 0x00800, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(2) PORT_CODE(KEYCODE_3_PAD) PORT_CODE(KEYCODE_3) + PORT_BIT( 0x01000, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_PLAYER(2) PORT_CODE(KEYCODE_4_PAD) PORT_CODE(KEYCODE_4) + PORT_BIT( 0x02000, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_PLAYER(2) PORT_CODE(KEYCODE_5_PAD) PORT_CODE(KEYCODE_5) + PORT_BIT( 0x04000, IP_ACTIVE_HIGH, IPT_BUTTON7 ) PORT_PLAYER(2) PORT_CODE(KEYCODE_6_PAD) PORT_CODE(KEYCODE_6) + PORT_BIT( 0x08000, IP_ACTIVE_HIGH, IPT_BUTTON8 ) PORT_PLAYER(2) PORT_CODE(KEYCODE_7_PAD) PORT_CODE(KEYCODE_7) + PORT_BIT( 0x10000, IP_ACTIVE_HIGH, IPT_BUTTON9 ) PORT_PLAYER(2) PORT_CODE(KEYCODE_8_PAD) PORT_CODE(KEYCODE_8) + PORT_BIT( 0x20000, IP_ACTIVE_HIGH, IPT_BUTTON10 ) PORT_PLAYER(2) PORT_CODE(KEYCODE_9_PAD) PORT_CODE(KEYCODE_9) + PORT_BIT( 0x40000, IP_ACTIVE_HIGH, IPT_BUTTON11 ) PORT_PLAYER(2) PORT_CODE(KEYCODE_ENTER_PAD) PORT_CODE(KEYCODE_ENTER) +INPUT_PORTS_END + + + +/************************************* + * + * Machine drivers + * + *************************************/ + +static MACHINE_DRIVER_START( ldplayer_core ) + + MDRV_MACHINE_START(ldplayer) + MDRV_MACHINE_RESET(ldplayer) + + /* video hardware */ + MDRV_VIDEO_ATTRIBUTES(VIDEO_SELF_RENDER) + + MDRV_SCREEN_ADD("main", RASTER) + MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) + + MDRV_VIDEO_START(ldplayer) + MDRV_VIDEO_UPDATE(ldplayer) + + /* audio hardware */ + MDRV_SPEAKER_STANDARD_STEREO("left", "right") + + MDRV_SOUND_ADD("laserdisc", CUSTOM, 0) + MDRV_SOUND_CONFIG(laserdisc_custom_interface) + MDRV_SOUND_ROUTE(0, "left", 1.0) + MDRV_SOUND_ROUTE(1, "right", 1.0) +MACHINE_DRIVER_END + + +static MACHINE_DRIVER_START( ldplayer_ntsc ) + MDRV_IMPORT_FROM(ldplayer_core) + + MDRV_SCREEN_MODIFY("main") + MDRV_SCREEN_RAW_PARAMS(XTAL_14_31818MHz, 910, 0, 720, 525.0/2, 0, 480/2) +MACHINE_DRIVER_END + + +static MACHINE_DRIVER_START( ldv1000 ) + MDRV_IMPORT_FROM(ldplayer_ntsc) + MDRV_LASERDISC_ADD("laserdisc", PIONEER_LDV1000) +MACHINE_DRIVER_END + + + +/************************************* + * + * ROM definitions + * + *************************************/ + +ROM_START( ldv1000 ) + DISK_REGION( "laserdisc" ) +ROM_END + + + +/************************************* + * + * Driver initialization + * + *************************************/ + +static void free_string(running_machine *machine) +{ + astring_free(filename); +} + + +static DRIVER_INIT( ldplayer ) +{ + mame_file *image_file = NULL; + chd_file *image_chd = NULL; + mame_path *path; + + /* open a path to the ROMs and find the first CHD file */ + path = mame_openpath(mame_options(), OPTION_ROMPATH); + if (path != NULL) + { + const osd_directory_entry *dir; + + /* iterate while we get new objects */ + while ((dir = mame_readpath(path)) != NULL) + { + int length = strlen(dir->name); + + /* look for files ending in .chd */ + if (length > 4 && + tolower(dir->name[length - 4] == '.') && + tolower(dir->name[length - 3] == 'c') && + tolower(dir->name[length - 2] == 'h') && + tolower(dir->name[length - 1] == 'd')) + { + file_error filerr; + chd_error chderr; + + /* open the file itself via our search path */ + filerr = mame_fopen(SEARCHPATH_IMAGE, dir->name, OPEN_FLAG_READ, &image_file); + if (filerr == FILERR_NONE) + { + /* try to open the CHD */ + chderr = chd_open_file(mame_core_file(image_file), CHD_OPEN_READ, NULL, &image_chd); + if (chderr == CHDERR_NONE) + { + set_disk_handle("laserdisc", image_file, image_chd); + filename = astring_dupc(dir->name); + add_exit_callback(machine, free_string); + break; + } + + /* close the file on failure */ + mame_fclose(image_file); + image_file = NULL; + } + } + } + mame_closepath(path); + } + + /* if we failed, pop a message and exit */ + if (image_file == NULL) + fatalerror("No valid image file found!\n"); +} + + + +/************************************* + * + * Game drivers + * + *************************************/ + +GAME( 2008, ldv1000, 0, ldv1000, ldplayer, ldplayer, ROT0, "MAME", "LDV-1000 Simulator", 0 ) diff --git a/src/ldplayer/ldplayer.mak b/src/ldplayer/ldplayer.mak new file mode 100644 index 00000000000..c95644e5f88 --- /dev/null +++ b/src/ldplayer/ldplayer.mak @@ -0,0 +1,42 @@ +########################################################################### +# +# ldplayer.mak +# +# Small makefile to build a standalone laserdisc player +# +# Copyright Nicola Salmoria and the MAME Team. +# Visit http://mamedev.org for licensing and usage restrictions. +# +########################################################################### + + +LDPSRC = $(SRC)/ldplayer +LDPOBJ = $(OBJ)/ldplayer + +OBJDIRS += \ + $(LDPOBJ) \ + + + +#------------------------------------------------- +# specify required CPU cores (none) +#------------------------------------------------- + + + +#------------------------------------------------- +# specify required sound cores +#------------------------------------------------- + +SOUNDS += CUSTOM + + +#------------------------------------------------- +# this is the list of driver libraries that +# comprise MAME plus mamedriv.o which contains +# the list of drivers +#------------------------------------------------- + +DRVLIBS = \ + $(LDPOBJ)/ldpdriv.o \ + $(LDPOBJ)/ldplayer.o \ diff --git a/src/mame/includes/rescap.h b/src/mame/includes/rescap.h deleted file mode 100644 index c069761e345..00000000000 --- a/src/mame/includes/rescap.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef RC_MACROS_H -#define RC_MACROS_H - -/* Little helpers for magnitude conversions */ -#define RES_K(res) ((double)(res)*1e3) -#define RES_M(res) ((double)(res)*1e6) -#define CAP_U(cap) ((double)(cap)*1e-6) -#define CAP_N(cap) ((double)(cap)*1e-9) -#define CAP_P(cap) ((double)(cap)*1e-12) - -#endif diff --git a/src/mame/machine/pckeybrd.h b/src/mame/machine/pckeybrd.h deleted file mode 100644 index 5ca446e5c70..00000000000 --- a/src/mame/machine/pckeybrd.h +++ /dev/null @@ -1,35 +0,0 @@ -/********************************************************************** - - pckeybrd.h - - PC-style keyboard emulation - - This emulation is decoupled from the AT 8042 emulation used in the - IBM ATs and above - -**********************************************************************/ - -#ifndef PCKEYBRD_H -#define PCKEYBRD_H - -typedef enum -{ - AT_KEYBOARD_TYPE_PC, - AT_KEYBOARD_TYPE_AT, - AT_KEYBOARD_TYPE_MF2 -} AT_KEYBOARD_TYPE; - -void at_keyboard_init(running_machine *machine, AT_KEYBOARD_TYPE type); - -void at_keyboard_polling(void); -int at_keyboard_read(void); -void at_keyboard_write(UINT8 data); -void at_keyboard_reset(void); -void at_keyboard_set_scan_code_set(int set); - -INPUT_PORTS_EXTERN( pc_keyboard ); -INPUT_PORTS_EXTERN( at_keyboard ); - -#endif /* PCKEYBRD_H */ - - diff --git a/src/mame/machine/pcshare.h b/src/mame/machine/pcshare.h deleted file mode 100644 index 34c711d1e90..00000000000 --- a/src/mame/machine/pcshare.h +++ /dev/null @@ -1,13 +0,0 @@ -#include "sound/custom.h" - -/* flags for init_pc_common */ -#define PCCOMMON_KEYBOARD_PC 0 -#define PCCOMMON_KEYBOARD_AT 1 - -void init_pc_common(running_machine *machine, UINT32 flags, void (*set_keyb_int_func)(int)); - -void pc_keyboard(void); -UINT8 pc_keyb_read(void); -void pc_keyb_set_clock(int on); -void pc_keyb_clear(void); - -- cgit v1.2.3