src/mess/machine/isa_mpu401.c
| r0 | r14114 | |
| 1 | /*************************************************************************** |
| 2 | |
| 3 | MPU-401 MIDI device interface |
| 4 | |
| 5 | TODO: |
| 6 | - skeleton, doesn't do anything |
| 7 | |
| 8 | ***************************************************************************/ |
| 9 | |
| 10 | #include "emu.h" |
| 11 | #include "isa_mpu401.h" |
| 12 | |
| 13 | |
| 14 | |
| 15 | READ8_MEMBER( isa8_mpu401_device::mpu401_r ) |
| 16 | { |
| 17 | return 0xff; |
| 18 | } |
| 19 | |
| 20 | WRITE8_MEMBER( isa8_mpu401_device::mpu401_w ) |
| 21 | { |
| 22 | // ... |
| 23 | } |
| 24 | |
| 25 | //************************************************************************** |
| 26 | // GLOBAL VARIABLES |
| 27 | //************************************************************************** |
| 28 | |
| 29 | const device_type ISA8_MPU401 = &device_creator<isa8_mpu401_device>; |
| 30 | |
| 31 | |
| 32 | //************************************************************************** |
| 33 | // LIVE DEVICE |
| 34 | //************************************************************************** |
| 35 | |
| 36 | //------------------------------------------------- |
| 37 | // isa8_adlib_device - constructor |
| 38 | //------------------------------------------------- |
| 39 | |
| 40 | isa8_mpu401_device::isa8_mpu401_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 41 | : device_t(mconfig, ISA8_MPU401, "mpu401", tag, owner, clock), |
| 42 | device_isa8_card_interface( mconfig, *this ) |
| 43 | { |
| 44 | } |
| 45 | |
| 46 | //------------------------------------------------- |
| 47 | // device_start - device-specific startup |
| 48 | //------------------------------------------------- |
| 49 | |
| 50 | void isa8_mpu401_device::device_start() |
| 51 | { |
| 52 | set_isa_device(); |
| 53 | m_isa->install_device(0x330, 0x0331, 0, 0, read8_delegate(FUNC(isa8_mpu401_device::mpu401_r), this), write8_delegate(FUNC(isa8_mpu401_device::mpu401_w), this)); |
| 54 | } |
| 55 | |
| 56 | //------------------------------------------------- |
| 57 | // device_reset - device-specific reset |
| 58 | //------------------------------------------------- |
| 59 | |
| 60 | void isa8_mpu401_device::device_reset() |
| 61 | { |
| 62 | } |
src/mess/machine/isa_mpu401.h
| r0 | r14114 | |
| 1 | #pragma once |
| 2 | |
| 3 | #ifndef __ISA_MPU401_H__ |
| 4 | #define __ISA_MPU401_H__ |
| 5 | |
| 6 | #include "emu.h" |
| 7 | #include "machine/isa.h" |
| 8 | |
| 9 | //************************************************************************** |
| 10 | // TYPE DEFINITIONS |
| 11 | //************************************************************************** |
| 12 | |
| 13 | // ======================> isa8_mpu401_device |
| 14 | |
| 15 | class isa8_mpu401_device : |
| 16 | public device_t, |
| 17 | public device_isa8_card_interface |
| 18 | { |
| 19 | public: |
| 20 | // construction/destruction |
| 21 | isa8_mpu401_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | |
| 23 | DECLARE_READ8_MEMBER(mpu401_r); |
| 24 | DECLARE_WRITE8_MEMBER(mpu401_w); |
| 25 | // optional information overrides |
| 26 | protected: |
| 27 | // device-level overrides |
| 28 | virtual void device_start(); |
| 29 | virtual void device_reset(); |
| 30 | |
| 31 | private: |
| 32 | // internal state |
| 33 | }; |
| 34 | |
| 35 | |
| 36 | // device type definition |
| 37 | extern const device_type ISA8_MPU401; |
| 38 | |
| 39 | #endif /* __ISA_MPU401_H__ */ |
src/mess/drivers/genpc.c
| r14113 | r14114 | |
| 28 | 28 | #include "machine/isa_gblaster.h" |
| 29 | 29 | #include "machine/isa_hdc.h" |
| 30 | 30 | #include "machine/isa_sblaster.h" |
| 31 | #include "machine/isa_mpu401.h" |
| 31 | 32 | #include "machine/3c503.h" |
| 32 | 33 | #include "machine/ne1000.h" |
| 33 | 34 | |
| r14113 | r14114 | |
| 117 | 118 | SLOT_INTERFACE("gblaster", ISA8_GAME_BLASTER) |
| 118 | 119 | SLOT_INTERFACE("sblaster1_0", ISA8_SOUND_BLASTER_1_0) |
| 119 | 120 | SLOT_INTERFACE("sblaster1_5", ISA8_SOUND_BLASTER_1_5) |
| 121 | SLOT_INTERFACE("mpu401", ISA8_MPU401) |
| 120 | 122 | SLOT_INTERFACE("ne1000", NE1000) |
| 121 | 123 | SLOT_INTERFACE("3c503", EL2_3C503) |
| 122 | 124 | SLOT_INTERFACE_END |
src/mess/drivers/at.c
| r14113 | r14114 | |
| 356 | 356 | SLOT_INTERFACE("sblaster1_5", ISA8_SOUND_BLASTER_1_5) |
| 357 | 357 | SLOT_INTERFACE("ne1000", NE1000) |
| 358 | 358 | SLOT_INTERFACE("3c503", EL2_3C503) |
| 359 | SLOT_INTERFACE("mpu401", ISA8_MPU401) |
| 359 | 360 | // ISA 16 bit |
| 360 | 361 | SLOT_INTERFACE("ide", ISA16_IDE) |
| 361 | 362 | SLOT_INTERFACE("ne2000", NE2000) |
src/mess/drivers/ibmpc.c
| r14113 | r14114 | |
| 265 | 265 | #include "machine/isa_sblaster.h" |
| 266 | 266 | #include "machine/3c503.h" |
| 267 | 267 | #include "machine/ne1000.h" |
| 268 | #include "machine/isa_mpu401.h" |
| 268 | 269 | |
| 269 | 270 | #include "machine/kb_keytro.h" |
| 270 | 271 | #include "video/pc_cga.h" |
| r14113 | r14114 | |
| 327 | 328 | SLOT_INTERFACE("sblaster1_5", ISA8_SOUND_BLASTER_1_5) |
| 328 | 329 | SLOT_INTERFACE("ne1000", NE1000) |
| 329 | 330 | SLOT_INTERFACE("3c503", EL2_3C503) |
| 331 | SLOT_INTERFACE("mpu401", ISA8_MPU401) |
| 330 | 332 | SLOT_INTERFACE_END |
| 331 | 333 | |
| 332 | 334 | static MACHINE_CONFIG_START( ibm5150, ibmpc_state ) |