Previous 199869 Revisions Next

r33072 Thursday 30th October, 2014 at 18:56:43 UTC by smf
Fixed Mametesters 05769 by reducing ATA flash card seek time to zero. [smf]
[src/emu/machine]ataflash.c ataflash.h idehd.h

trunk/src/emu/machine/ataflash.c
r241583r241584
202202      ide_hdd_device::process_buffer();
203203   }
204204}
205
206attotime ata_flash_pccard_device::seek_time()
207{
208   return attotime::zero;
209}
trunk/src/emu/machine/ataflash.h
r241583r241584
2626   virtual void device_start();
2727   virtual void device_reset();
2828
29   virtual attotime seek_time();
2930   virtual void process_command();
3031   virtual void process_buffer();
3132   virtual bool is_ready();
trunk/src/emu/machine/idehd.h
r241583r241584
4444
4545   virtual int read_sector(UINT32 lba, void *buffer) = 0;
4646   virtual int write_sector(UINT32 lba, const void *buffer) = 0;
47   virtual attotime seek_time();
4748
4849   void ide_build_identify_device();
4950
r241583r241584
7273   void security_error();
7374   void read_first_sector();
7475   void soft_reset();
75   attotime seek_time();
7676
7777   UINT32          m_cur_lba;
7878   UINT16          m_block_count;
r241583r241584
9393   ide_hdd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
9494   ide_hdd_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
9595
96   virtual int read_sector(UINT32 lba, void *buffer) { if (m_disk == NULL) return 0; return hard_disk_read(m_disk, lba, buffer); }
97   virtual int write_sector(UINT32 lba, const void *buffer) { if (m_disk == NULL) return 0; return hard_disk_write(m_disk, lba, buffer); }
98
9996protected:
10097   // device-level overrides
10198   virtual void device_start();
r241583r241584
104101   // optional information overrides
105102   virtual machine_config_constructor device_mconfig_additions() const;
106103
104   virtual int read_sector(UINT32 lba, void *buffer) { if (m_disk == NULL) return 0; return hard_disk_read(m_disk, lba, buffer); }
105   virtual int write_sector(UINT32 lba, const void *buffer) { if (m_disk == NULL) return 0; return hard_disk_write(m_disk, lba, buffer); }
107106   virtual UINT8 calculate_status();
108107
109108   chd_file       *m_handle;


Previous 199869 Revisions Next


© 1997-2024 The MAME Team