Commit Graph

36 Commits

Author SHA1 Message Date
Oliver Stöneberg
5de49cb947 removed some obsolete legacy stuff from src/mess/machine/bebox.c (nw) 2013-08-02 11:16:12 +00:00
smf-
f89f73561b Added ata_interface_device, ide_controller_device is now only for pc register mapping. Renamed ide_mass_storage_device to ata_mass_storage_device. Changed ide_hdd_device so it only picks up it's image from the harddisk_image_device, which does a lookup to see if there is a region itself. (nw) 2013-06-19 10:35:43 +00:00
smf-
9eafc98ed9 First pass at tidying up ide interface. It no longer tries to force everything to act as a PC. A copy of the VIA VT83C461 datasheet would be useful to remove some of the hacks added to make the games using it work again. [smf] 2013-06-08 15:42:11 +00:00
smf-
eb943bed5a moved handlers into the ide_controller_device (nw) 2013-06-06 16:26:48 +00:00
Fabio Priuli
e098aab416 Modernized the PIT8253 device. [Fabio Priuli] 2013-06-03 11:39:54 +00:00
cracyc
a8836f3b65 8237dma: convert its remaining users and kill it (nw)
--
The apollo and bebox both boot but might need more thorough testing.
2013-05-30 03:20:36 +00:00
Andrew Gardner
6806269f61 A few less anonymous timers in the world. (nw) 2013-05-27 18:46:30 +00:00
Wilbert Pol
6f7dd684be pic8259.c: Switched to devcb2. (nw) 2013-05-15 21:57:33 +00:00
Wilbert Pol
34be6878ec pic8259.c: Continue modernization. (nw) 2013-05-14 20:48:27 +00:00
Miodrag Milanovic
4bf717996f Cleanups and version bump 2013-04-30 06:36:06 +00:00
Miodrag Milanovic
6de13d280a made BEEP and RAM devices initialize in constructor of driver classes (nw) 2013-04-23 07:11:57 +00:00
Miodrag Milanovic
3dff6ae3ad 8042kbdc is now device (nw) 2013-04-19 09:44:55 +00:00
Miodrag Milanovic
28cc0d1c7d various cpu lookup cleanup (nw) 2013-04-15 13:41:27 +00:00
Miodrag Milanovic
bd4514adde Removal of machine().root_device() where appropriate (nw) 2013-04-14 10:46:03 +00:00
Miodrag Milanovic
9ec92e573e removed devhelpr.h and trampolines in half modern devices,also southbridge also use am9517a device now (no whatsnew) 2013-03-20 12:04:38 +00:00
Miodrag Milanovic
0e19f641d3 Cleanups and version bump 2013-01-11 07:32:46 +00:00
smf-
029ef2cd18 cleaned up the ide controller enough to change the irq to a DEVCB2 [smf] 2012-10-26 01:12:21 +00:00
Olivier Galibert
9d1aaf97ae (mess) upd765: Modernize [O. Galibert]
Remaining TODO list:
- take WP into account

- test the amstrad, implement its observational format (edsk) using
  pasti as a start.  Or find the legendary amstrad IPFs.  Or both.

- correct read track, the implementation is completely wrong.  See
  previous for testing, it's only used in protections the check the
  inter-sector gaps.

- shake and bake on the amstrad, protections are the best to find bugs
  in a fdc

- add the scan id commands, but nothing seems to use them

- debug the 2.88M formatting which is unreliable.  Fix its IDAM/DAM
  gap size on formatting too (but that's not what's making it
  unreliable)

- test all the systems that were hit, and fix what needs to be fixed.
  Beware that multiple problems may happen:
  - upd765 may be wrong
  - the driver may not be working
  - the hookup may be wrong/incomplete (bitrate selection and floppy
    rpm in particular)
  - the driver may be too limited for the new implementation (the x68k
    dma device does not handle non-instant dma yet for instance)

- report invalid command when appropriate depending on the actual chip
  emulated

- add the russian clones with their real names
2012-10-10 15:33:51 +00:00
Curt Coder
31387945c8 srcclean (nw) 2012-10-07 09:12:56 +00:00
Miodrag Milanovic
99ffca1069 some cleanup (nw) 2012-10-03 14:36:54 +00:00
Miodrag Milanovic
e52d60b7f8 Replace some *_DEVICE_HANDLER with _MEMBER calls in MESS section (no whatsnew) 2012-10-03 09:27:22 +00:00
Miodrag Milanovic
c713a0578b Removed need for pc_vga_io_init also made accessors for linear access to VGA memory needed for some models (no whatsnew) 2012-09-30 14:04:32 +00:00
Miodrag Milanovic
acf55c87ef Removed devconv.h and memconv.h just moved used inlines for now (no whatsnew) 2012-09-26 09:30:47 +00:00
Miodrag Milanovic
3679f744c2 modernization or timer callbacks part 2 (no whatsnew) 2012-09-24 14:43:01 +00:00
Miodrag Milanovic
1f9d1cd620 change from device->machine() to space.machine() in device handlers in order to make next changes easier (no whatsnew) 2012-09-21 08:25:27 +00:00
Aaron Giles
621ac620ae Since nobody checks for NULLs anyway, make
device_memory_interface::space() assert against NULL and
return a reference, and pushed references throughout all 
address space usage in the system. Added a has_space() 
method to check for those rare case when it is ambiguous.
[Aaron Giles]

Also reinstated the generic space and added fatal error
handlers if anyone tries to actually read/write from it.
2012-09-19 19:48:09 +00:00
Aaron Giles
3cce7e019e Memory handler normalization, part 2. Change legacy
read/write handlers to take an address_space & instead
of an address_space *. Also update pretty much all other
functions to take a reference where appropriate.
[Aaron Giles]
2012-09-17 08:22:16 +00:00
Aaron Giles
cc16777cce Memory handler normalization, part 1.
READ/WRITE_DEVICE*_HANDLERs are now passed an
address_space &, and the 8-bit variants get a mem_mask
as well. This means they are now directly compatible
with the member function delegates. Added a generic
address space to the driver_device that can be used
when no specific address space is available. Also
added DECLARE_READ/WRITE_DEVICE*_HANDLER macros to
declare device callbacks with default mem_mask
parameters. [Aaron Giles]
2012-09-17 07:43:37 +00:00
Miodrag Milanovic
219e664785 Massive change, MACHINE_START\RESET, VIDEO_START\RESET and PALETTE_INIT changed to be members of state classes (no whatsnew) 2012-09-13 11:15:32 +00:00
Aaron Giles
0ef1e6deb4 Closeout on old macros. Retired cputag_set_input_line
and cputag_set_input_line_and_vector, replacing them
with machine.device("tag")->execute().set_input_line[_and_vector].
[Aaron Giles]
2012-09-12 03:35:06 +00:00
Aaron Giles
0aa418e85b In device_state_interface, rename state() to state_int()
and set_state() to set_state_int() for consistency.
Update all callers. Also add set_pc() helper and updated
all callers to use that instead of set_state_int(STATE_GENPC)
[Aaron Giles]

Added device_t::state() method to get the state interface.
Added redundant device_state_interface::state() method to
catch redundant use of it. [Aaron Giles]

Removed cpu_get_reg() and cpu_set_reg() macros in favor of
using the above methods. [Aaron Giles]
2012-09-11 15:58:04 +00:00
Aaron Giles
8669a28810 Add safe_pc() and safe_pcbase() methods to device_t.
Convert all cpu_get_pc() to safe_pc() and
cpu_getpreviouspc() to safe_basepc(). Removed the
old macros.
2012-09-11 05:50:50 +00:00
Oliver Stöneberg
8cf19f400c added missing \n to remaining fatalerror() calls (no whatsnew) 2012-09-09 07:08:47 +00:00
smf-
f4aea2a62c converted 53c810 to a c++ device. (nw) 2012-08-27 22:48:14 +00:00
smf-
45e9cc7826 glacial SCSI improvements towards NSCSI and beyond, moved the SCSI id onto the device (nw) 2012-08-23 17:53:10 +00:00
Miodrag Milanovic
7285b359d2 Merge of MESS sources (no whatsnew) 2012-08-21 10:41:19 +00:00