summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/8042kbdc.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-12-11 03:39:20 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-12-11 03:39:20 +0000
commit506da3c4321292afd7c635aff2c1310c6d78d5f9 (patch)
tree73e6fdcb47a2a4438dcc9141e4d48761f9eec53a /src/emu/machine/8042kbdc.c
parent4c0948ce0032ecb1e8c82175b9361aa1b9c17878 (diff)
From: Atari Ace [atari_ace@verizon.net]
Sent: Wednesday, December 10, 2008 9:27 AM To: submit@mamedev.org Cc: atariace@hotmail.com Subject: [patch] Add machine to some emu/machine init methods Hi mamedev, This patch widens some machine init interfaces to pass the machine parameter, allowing more Machine global references to be eliminated. Eventually most of these need to be converted to devices, but this change reduces the deprecation surface in the meantime. I also attached the script I used to do the initial changes to the drivers, which handled about 90% of the cases without further editing. ~aa
Diffstat (limited to 'src/emu/machine/8042kbdc.c')
-rw-r--r--src/emu/machine/8042kbdc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/emu/machine/8042kbdc.c b/src/emu/machine/8042kbdc.c
index a5fd3643f3d..0ea49f64d21 100644
--- a/src/emu/machine/8042kbdc.c
+++ b/src/emu/machine/8042kbdc.c
@@ -174,7 +174,6 @@
#include "driver.h"
-#include "deprecat.h"
#include "memconv.h"
#include "machine/pckeybrd.h"
@@ -267,7 +266,7 @@ static TIMER_CALLBACK( kbdc8042_time )
-void kbdc8042_init(const struct kbdc8042_interface *intf)
+void kbdc8042_init(running_machine *machine, const struct kbdc8042_interface *intf)
{
poll_delay = 10;
memset(&kbdc8042, 0, sizeof(kbdc8042));
@@ -280,7 +279,7 @@ void kbdc8042_init(const struct kbdc8042_interface *intf)
kbdc8042.inport = 0xa0;
at_8042_set_outport(0xfe, 1);
- timer_pulse(Machine, ATTOTIME_IN_HZ(60), NULL, 0, kbdc8042_time);
+ timer_pulse(machine, ATTOTIME_IN_HZ(60), NULL, 0, kbdc8042_time);
}
static void at_8042_receive(UINT8 data)