diff options
author | arbee <rb6502@users.noreply.github.com> | 2015-12-24 12:30:37 -0500 |
---|---|---|
committer | arbee <rb6502@users.noreply.github.com> | 2015-12-24 12:30:37 -0500 |
commit | a6cf2499567d4fd54e3679d046dc2831af824a9a (patch) | |
tree | 6de656a778ddb895a37c9f57a15811adb57b7152 /src/devices/bus/isa/omti8621.h | |
parent | adbeddccdef944fcc5afff026bcae9d0f4a136ff (diff) |
apollo: cleanups and enhancements [Hans Ostermeyer]
- Split OMTI8621 ISA device into PC and Apollo versions (Apollo doesn't have a BIOS extension ROM, PC does)
- Cleaned up OMTI8621 logging
- Forced slot # of OMTI board so we can look it up and auto-set the node ID
- Adjusted mouse sensitivity
Diffstat (limited to 'src/devices/bus/isa/omti8621.h')
-rw-r--r-- | src/devices/bus/isa/omti8621.h | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/src/devices/bus/isa/omti8621.h b/src/devices/bus/isa/omti8621.h index 4bc92a3a5de..3e6e951ca44 100644 --- a/src/devices/bus/isa/omti8621.h +++ b/src/devices/bus/isa/omti8621.h @@ -33,7 +33,7 @@ class omti_disk_image_device; class omti8621_device : public device_t, public device_isa16_card_interface { public: - omti8621_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + omti8621_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock); ~omti8621_device() {} DECLARE_READ16_MEMBER(read); @@ -41,9 +41,6 @@ public: static void set_verbose(int on_off); - // get sector diskaddr of logical unit lun into data_buffer - static UINT32 get_sector(INT32 diskaddr, UINT8 *data_buffer, UINT32 length, UINT8 lun); - required_device<pc_fdc_interface> m_fdc; required_ioport m_iobase; required_ioport m_biosopts; @@ -68,9 +65,9 @@ protected: void set_interrupt(enum line_state line_state); -private: omti_disk_image_device *our_disks[OMTI_MAX_LUN+1]; +private: UINT16 jumper; UINT8 omti_state; @@ -128,8 +125,31 @@ private: DECLARE_WRITE8_MEMBER(write8); }; +/* ----- omti8621 for PC device interface ----- */ + +class omti8621_pc_device : public omti8621_device +{ +public: + omti8621_pc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); +}; + extern const device_type ISA16_OMTI8621; +/* ----- omti8621 for apollo device interface ----- */ + +class omti8621_apollo_device : public omti8621_device +{ +public: + omti8621_apollo_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // get sector diskaddr of logical unit lun into data_buffer + UINT32 get_sector(INT32 diskaddr, UINT8 *data_buffer, UINT32 length, UINT8 lun); +protected: + virtual const rom_entry *device_rom_region() const; +}; + +extern const device_type ISA16_OMTI8621_APOLLO; + //############################################################### #endif /* OMTI8621_H_ */ |