floppy.cpp: Update class variables to current naming convention. (#11851)

This commit is contained in:
Mark Garlanger 2024-01-20 09:26:31 -06:00 committed by GitHub
parent 87460c8707
commit 5c0398cafd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 612 additions and 612 deletions

View File

@ -61,13 +61,13 @@ ud90_070_device::ud90_070_device(const machine_config &mconfig, const char *tag,
void ud90_070_device::setup_characteristics() void ud90_070_device::setup_characteristics()
{ {
form_factor = floppy_image::FF_525; m_form_factor = floppy_image::FF_525;
tracks = 40; m_tracks = 40;
sides = 1; m_sides = 1;
has_trk00_sensor = false; m_has_trk00_sensor = false;
set_rpm(300); set_rpm(300);
variants.push_back(floppy_image::SSSD); m_variants.push_back(floppy_image::SSSD);
} }
void cd90_015_device::floppy_drives(device_slot_interface &device) void cd90_015_device::floppy_drives(device_slot_interface &device)

File diff suppressed because it is too large Load Diff

View File

@ -103,7 +103,7 @@ public:
virtual bool is_writeable() const noexcept override { return true; } virtual bool is_writeable() const noexcept override { return true; }
virtual bool is_creatable() const noexcept override { return true; } virtual bool is_creatable() const noexcept override { return true; }
virtual bool is_reset_on_load() const noexcept override { return false; } virtual bool is_reset_on_load() const noexcept override { return false; }
virtual const char *file_extensions() const noexcept override { return extension_list; } virtual const char *file_extensions() const noexcept override { return m_extension_list; }
virtual const char *image_type_name() const noexcept override { return "floppydisk"; } virtual const char *image_type_name() const noexcept override { return "floppydisk"; }
virtual const char *image_brief_type_name() const noexcept override { return "flop"; } virtual const char *image_brief_type_name() const noexcept override { return "flop"; }
void setup_write(const floppy_image_format_t *output_format); void setup_write(const floppy_image_format_t *output_format);
@ -116,8 +116,8 @@ public:
void setup_led_cb(led_cb cb); void setup_led_cb(led_cb cb);
std::vector<uint32_t> &get_buffer(); std::vector<uint32_t> &get_buffer();
int get_cyl() const { return cyl; } int get_cyl() const { return m_cyl; }
bool on_track() const { return !subcyl; } bool on_track() const { return !m_subcyl; }
virtual void mon_w(int state); virtual void mon_w(int state);
bool ready_r(); bool ready_r();
@ -126,28 +126,28 @@ public:
virtual void tfsel_w(int state) { } // 35SEL line for Apple Sony drives virtual void tfsel_w(int state) { } // 35SEL line for Apple Sony drives
virtual bool wpt_r(); // Mac sony drives using this for various reporting virtual bool wpt_r(); // Mac sony drives using this for various reporting
int dskchg_r() { return dskchg; } int dskchg_r() { return m_dskchg; }
bool trk00_r() { return (has_trk00_sensor ? (cyl != 0) : 1); } bool trk00_r() { return (m_has_trk00_sensor ? (m_cyl != 0) : 1); }
int idx_r() { return idx; } int idx_r() { return m_idx; }
int mon_r() { return mon; } int mon_r() { return m_mon; }
bool ss_r() { return ss; } bool ss_r() { return m_ss; }
bool twosid_r(); bool twosid_r();
virtual bool writing_disabled() const; virtual bool writing_disabled() const;
virtual void seek_phase_w(int phases); virtual void seek_phase_w(int phases);
void stp_w(int state); void stp_w(int state);
void dir_w(int state) { dir = state; } void dir_w(int state) { m_dir = state; }
void ss_w(int state) { actual_ss = state; if (sides > 1) ss = state; } void ss_w(int state) { m_actual_ss = state; if (m_sides > 1) m_ss = state; }
void inuse_w(int state) { } void inuse_w(int state) { }
void dskchg_w(int state) { if (dskchg_writable) dskchg = state; } void dskchg_w(int state) { if (m_dskchg_writable) m_dskchg = state; }
void ds_w(int state) { ds = state; check_led(); } void ds_w(int state) { m_ds = state; check_led(); }
attotime time_next_index(); attotime time_next_index();
attotime get_next_transition(const attotime &from_when); attotime get_next_transition(const attotime &from_when);
void write_flux(const attotime &start, const attotime &end, int transition_count, const attotime *transitions); void write_flux(const attotime &start, const attotime &end, int transition_count, const attotime *transitions);
void set_write_splice(const attotime &when); void set_write_splice(const attotime &when);
int get_sides() { return sides; } int get_sides() { return m_sides; }
uint32_t get_form_factor() const; uint32_t get_form_factor() const;
uint32_t get_variant() const; uint32_t get_variant() const;
@ -179,68 +179,68 @@ protected:
void init_floppy_load(bool write_supported); void init_floppy_load(bool write_supported);
std::function<void (format_registration &fr)> format_registration_cb; std::function<void (format_registration &fr)> m_format_registration_cb;
const floppy_image_format_t *input_format; const floppy_image_format_t *m_input_format;
const floppy_image_format_t *output_format; const floppy_image_format_t *m_output_format;
std::vector<uint32_t> variants; std::vector<uint32_t> m_variants;
std::unique_ptr<floppy_image> image; std::unique_ptr<floppy_image> m_image;
char extension_list[256]; char m_extension_list[256];
std::vector<const floppy_image_format_t *> fif_list; std::vector<const floppy_image_format_t *> m_fif_list;
std::vector<fs_info> m_fs; std::vector<fs_info> m_fs;
std::vector<const fs::manager_t *> m_fs_managers; std::vector<const fs::manager_t *> m_fs_managers;
emu_timer *index_timer; emu_timer *m_index_timer;
/* Physical characteristics, filled by setup_characteristics */ /* Physical characteristics, filled by setup_characteristics */
int tracks; /* addressable tracks */ int m_tracks; /* addressable tracks */
int sides; /* number of heads */ int m_sides; /* number of heads */
uint32_t form_factor; /* 3"5, 5"25, etc */ uint32_t m_form_factor; /* 3"5, 5"25, etc */
bool motor_always_on; bool m_motor_always_on;
bool dskchg_writable; bool m_dskchg_writable;
bool has_trk00_sensor; bool m_has_trk00_sensor;
int drive_index; int m_drive_index;
/* state of input lines */ /* state of input lines */
int dir; /* direction */ int m_dir; /* direction */
int stp; /* step */ int m_stp; /* step */
int wtg; /* write gate */ int m_wtg; /* write gate */
int mon; /* motor on */ int m_mon; /* motor on */
int ss, actual_ss; /* side select (forced to 0 if single-sided drive / actual value) */ int m_ss, m_actual_ss; /* side select (forced to 0 if single-sided drive / actual value) */
int ds; /* drive select */ int m_ds; /* drive select */
int phases; /* phases lines, when they exist */ int m_phases; /* phases lines, when they exist */
/* state of output lines */ /* state of output lines */
int idx; /* index pulse */ int m_idx; /* index pulse */
int wpt; /* write protect */ int m_wpt; /* write protect */
int rdy; /* ready */ int m_rdy; /* ready */
int dskchg; /* disk changed */ int m_dskchg; /* disk changed */
bool ready; bool m_ready;
/* rotation per minute => gives index pulse frequency */ /* rotation per minute => gives index pulse frequency */
float rpm; float m_rpm;
/* angular speed, where a full circle is 2e8 */ /* angular speed, where a full circle is 2e8 */
double angular_speed; double m_angular_speed;
attotime revolution_start_time, rev_time; attotime m_revolution_start_time, m_rev_time;
uint32_t revolution_count; uint32_t m_revolution_count;
int cyl, subcyl; int m_cyl, m_subcyl;
/* Current floppy zone cache */ /* Current floppy zone cache */
attotime cache_start_time, cache_end_time, cache_weak_start; attotime m_cache_start_time, m_cache_end_time, m_cache_weak_start;
attotime amplifier_freakout_time; attotime m_amplifier_freakout_time;
int cache_index; int m_cache_index;
u32 cache_entry; u32 m_cache_entry;
bool cache_weak; bool m_cache_weak;
bool image_dirty, track_dirty; bool m_image_dirty, m_track_dirty;
int ready_counter; int m_ready_counter;
load_cb cur_load_cb; load_cb m_cur_load_cb;
unload_cb cur_unload_cb; unload_cb m_cur_unload_cb;
index_pulse_cb cur_index_pulse_cb; index_pulse_cb m_cur_index_pulse_cb;
ready_cb cur_ready_cb; ready_cb m_cur_ready_cb;
wpt_cb cur_wpt_cb; wpt_cb m_cur_wpt_cb;
led_cb cur_led_cb; led_cb m_cur_led_cb;
// Temporary structure storing a write span // Temporary structure storing a write span