summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/mb86235 (follow)
Commit message (Expand)AuthorAgeFilesLines
* Make many device_execute_interface functions noexcept, including the "informa... AJR2019-11-091-3/+3
* -mb86235, sh7604, sharc: Removed MCFG macros, nw mooglyguy2018-12-091-14/+3
* (nw) fix lots of inadverently mutable static pointers Vas Crabb2018-09-202-22/+22
* emumem: Rename direct_read_handler to memory_access_cache. Parametrize the t... Olivier Galibert2018-05-113-4/+4
* Make MCFG_DEVICE_ADD and callable device types more flexible: Vas Crabb2018-05-042-0/+5
* srcclean (nw) Vas Crabb2018-04-221-1/+1
* maps: Finish devices/cpu (nw) Olivier Galibert2018-04-201-6/+8
* mb86233/4 rewrite [O. Galibert] Olivier Galibert2018-04-054-224/+142
* Reshuffle some stuff: Vas Crabb2018-03-281-2/+2
* srcclean and regenerate localisations (nw) Vas Crabb2018-03-254-128/+128
* don't pass so many naked pointers around (nw) Vas Crabb2018-03-253-272/+270
* tgpx4: misc fixing (floating point conversions, broken REP opcode, support fo... angelosa2018-03-223-51/+84
* Wrote a preliminary TGPx4 interpreter core [Angelo Salese] angelosa2018-03-205-33/+1422
* Blind faith fixed long names for almost all CPUs (nw) angelosa2018-03-154-11/+22
* Don't really need this printf (nw) angelosa2018-03-141-1/+1
* mb86235.cpp: ALU OR / XOR (nw) angelosa2018-03-141-0/+18
* mb86235.cpp: generate_ea fixes (nw) angelosa2018-03-141-0/+8
* mb86235.cpp: generate_reg_read fixes (nw) angelosa2018-03-141-0/+10
* Make TGPx4 to be debuggable even in non-DRC mode (nw) angelosa2018-03-111-0/+1
* API change: Memory maps are now methods of the owner class [O. Galibert] Olivier Galibert2018-02-122-4/+6
* emumem: API change [O. Galibert] Olivier Galibert2017-11-294-14/+3
* dvdisasm: Overhaul [O. Galibert] Olivier Galibert2017-11-264-39/+73
* make device_memory_interface slightly less of a special case, use a typedef t... Vas Crabb2017-07-102-3/+3
* dimemory: Lift the cap on the number of address spaces per device [O. Galibert] Olivier Galibert2017-07-032-1/+9
* Move static data out of devices into the device types. This is a significant... Vas Crabb2017-05-145-29/+40
* Self-registering devices prep: Vas Crabb2017-02-271-1/+1
* first srcclean pass (nw) Vas Crabb2016-12-254-341/+341
* mb86235: some more progress (nw) Ville Linde2016-12-214-23/+184
* mb86235: fix PR updates (nw) Ville Linde2016-12-183-39/+81
* mb86235: disable recompiler for now (nw) Ville Linde2016-12-181-0/+20
* fix mingw compile (nw) Ville Linde2016-12-173-29/+29
* Added preliminary MB86235 recompiler [Ville Linde] Ville Linde2016-12-175-61/+3035
* Merge pull request #1748 from ajrhacker/mb86235d_stream_format Vas Crabb2016-11-221-347/+237
|\
| * Eliminate internal buffers; further cleanups (nw) AJR2016-11-191-161/+85
| * Eliminate static char[] buffers in the mb86235 disassembler (nw) AJR2016-11-191-276/+242
* | Changed disassembler infrastructure to not use char buffers internally Nathan Woods2016-11-203-15/+4
|/
* Changed the mb86235 disassembler to use 'std::ostream &' internally Nathan Woods2016-11-151-15/+21
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-223-31/+31
* Make sure all cpu's export STATE_GENPCBASE and use safe_pcbase() for everythi... smf-2016-09-281-1/+2
* Revert "Make sure all cpu's export STATE_GENPCBASE and use safe_pcbase() for ... Lord-Nightmare2016-09-271-2/+1
* Make sure all cpu's export STATE_GENPCBASE and use safe_pcbase() for everythi... smf-2016-09-271-1/+2
* made constexprs lower case and used constexpr for returning input value as we... Miodrag Milanovic2016-07-311-1/+1
* Cleanup and version bumpmame0175 Miodrag Milanovic2016-06-291-29/+29
* Fixed 4 compile errors. Robbbert2016-06-131-4/+4
* finish the mb86235 disassembler (nw) Ville Linde2016-06-122-109/+804
* Replace strformat, strprintf and strcatprintf with type-safe steam_format and... Vas Crabb2016-02-281-1/+1
* reverting: Miodrag Milanovic2016-01-202-2/+2
* tags are now strings (nw) Miodrag Milanovic2016-01-162-2/+2
* Revert "remove const (nw)" Miodrag Milanovic2016-01-132-2/+2
* remove const (nw) Miodrag Milanovic2016-01-112-2/+2
lass="n">machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); virtual int read_sector(UINT32 lba, void *buffer) { return hard_disk_read(m_disk, lba, buffer); } virtual int write_sector(UINT32 lba, const void *buffer) { return hard_disk_write(m_disk, lba, buffer); } virtual void read_key(UINT8 key[]); protected: // device-level overrides virtual void device_start(); virtual void device_reset(); virtual void device_config_complete() { m_shortname = "hdd"; } void ide_build_features(); virtual bool is_ready() { return (m_disk != NULL); } protected: chd_file *m_handle; hard_disk_file *m_disk; }; // device type definition extern const device_type IDE_HARDDISK; // ======================> ide_hdd_image_device class ide_hdd_image_device : public ide_hdd_device { public: // construction/destruction ide_hdd_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); protected: // device-level overrides virtual void device_start(); virtual void device_reset(); virtual void device_config_complete() { m_shortname = "hdd_image"; } // optional information overrides virtual machine_config_constructor device_mconfig_additions() const; }; // device type definition extern const device_type IDE_HARDDISK_IMAGE; /*************************************************************************** TYPE DEFINITIONS ***************************************************************************/ struct ide_config { void (*interrupt)(device_t *device, int state); const char *bmcpu; /* name of bus master CPU */ UINT32 bmspace; /* address space of bus master transfer */ }; SLOT_INTERFACE_EXTERN(ide_devices); SLOT_INTERFACE_EXTERN(ide_image_devices); /*************************************************************************** DEVICE CONFIGURATION MACROS ***************************************************************************/ #define MCFG_IDE_CONTROLLER_ADD(_tag, _config, _slotintf, _master, _slave, _fixed) \ MCFG_DEVICE_ADD(_tag, IDE_CONTROLLER, 0) \ MCFG_DEVICE_CONFIG(_config) \ MCFG_IDE_SLOT_ADD("drive_0", _slotintf, _master, NULL, _fixed) \ MCFG_IDE_SLOT_ADD("drive_1", _slotintf, _slave, NULL, _fixed) \ #define MCFG_IDE_SLOT_ADD(_tag, _slot_intf, _def_slot, _def_inp, _fixed) \ MCFG_DEVICE_ADD(_tag, IDE_SLOT, 0) \ MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, _def_inp, _fixed) \ /*************************************************************************** FUNCTION PROTOTYPES ***************************************************************************/ UINT8 *ide_get_features(device_t *device, int drive); void ide_set_master_password(device_t *device, const UINT8 *password); void ide_set_user_password(device_t *device, const UINT8 *password); void ide_set_gnet_readlock(device_t *device, const UINT8 onoff); int ide_bus_r(device_t *config, int select, int offset); void ide_bus_w(device_t *config, int select, int offset, int data); UINT32 ide_controller_r(device_t *config, int reg, int size); void ide_controller_w(device_t *config, int reg, int size, UINT32 data); READ32_DEVICE_HANDLER( ide_controller32_r ); WRITE32_DEVICE_HANDLER( ide_controller32_w ); READ32_DEVICE_HANDLER( ide_controller32_pcmcia_r ); WRITE32_DEVICE_HANDLER( ide_controller32_pcmcia_w ); READ32_DEVICE_HANDLER( ide_bus_master32_r ); WRITE32_DEVICE_HANDLER( ide_bus_master32_w ); READ16_DEVICE_HANDLER( ide_controller16_r ); WRITE16_DEVICE_HANDLER( ide_controller16_w ); /* ----- device interface ----- */ class ide_controller_device : public device_t { public: ide_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); ~ide_controller_device() { global_free(m_token); } // access to legacy token void *token() const { assert(m_token != NULL); return m_token; } protected: // device-level overrides virtual void device_config_complete(); virtual void device_start(); virtual void device_reset(); private: // internal state void *m_token; }; extern const device_type IDE_CONTROLLER; #endif /* __IDECTRL_H__ */