Lines Matching refs:FDCtrl
77 static FDrive *get_drv(FDCtrl *fdctrl, int unit);
85 static void floppy_bus_create(FDCtrl *fdc, FloppyBus *bus, DeviceState *dev) in floppy_bus_create()
577 static void fdctrl_to_command_phase(FDCtrl *fdctrl);
578 static void fdctrl_raise_irq(FDCtrl *fdctrl);
579 static FDrive *get_cur_drv(FDCtrl *fdctrl);
581 static uint32_t fdctrl_read_statusA(FDCtrl *fdctrl);
582 static uint32_t fdctrl_read_statusB(FDCtrl *fdctrl);
583 static uint32_t fdctrl_read_dor(FDCtrl *fdctrl);
584 static void fdctrl_write_dor(FDCtrl *fdctrl, uint32_t value);
585 static uint32_t fdctrl_read_tape(FDCtrl *fdctrl);
586 static void fdctrl_write_tape(FDCtrl *fdctrl, uint32_t value);
587 static uint32_t fdctrl_read_main_status(FDCtrl *fdctrl);
588 static void fdctrl_write_rate(FDCtrl *fdctrl, uint32_t value);
589 static uint32_t fdctrl_read_data(FDCtrl *fdctrl);
590 static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value);
591 static uint32_t fdctrl_read_dir(FDCtrl *fdctrl);
592 static void fdctrl_write_ccr(FDCtrl *fdctrl, uint32_t value);
783 FDCtrl *fdctrl = opaque; in fdctrl_read()
820 FDCtrl *fdctrl = opaque; in fdctrl_write()
924 static int reconstruct_phase(FDCtrl *fdctrl) in reconstruct_phase()
940 FDCtrl *s = opaque; in fdc_pre_save()
949 FDCtrl *s = opaque; in fdc_pre_load()
956 FDCtrl *s = opaque; in fdc_post_load()
970 FDCtrl *s = opaque; in fdc_reset_sensei_needed()
981 VMSTATE_INT32(reset_sensei, FDCtrl),
988 FDCtrl *s = opaque; in fdc_result_timer_needed()
999 VMSTATE_TIMER_PTR(result_timer, FDCtrl),
1006 FDCtrl *fdctrl = opaque; in fdc_phase_needed()
1017 VMSTATE_UINT8(phase, FDCtrl),
1031 VMSTATE_UINT8(sra, FDCtrl),
1032 VMSTATE_UINT8(srb, FDCtrl),
1033 VMSTATE_UINT8(dor_vmstate, FDCtrl),
1034 VMSTATE_UINT8(tdr, FDCtrl),
1035 VMSTATE_UINT8(dsr, FDCtrl),
1036 VMSTATE_UINT8(msr, FDCtrl),
1037 VMSTATE_UINT8(status0, FDCtrl),
1038 VMSTATE_UINT8(status1, FDCtrl),
1039 VMSTATE_UINT8(status2, FDCtrl),
1041 VMSTATE_VARRAY_INT32(fifo, FDCtrl, fifo_size, 0, vmstate_info_uint8,
1043 VMSTATE_UINT32(data_pos, FDCtrl),
1044 VMSTATE_UINT32(data_len, FDCtrl),
1045 VMSTATE_UINT8(data_state, FDCtrl),
1046 VMSTATE_UINT8(data_dir, FDCtrl),
1047 VMSTATE_UINT8(eot, FDCtrl),
1049 VMSTATE_UINT8(timer0, FDCtrl),
1050 VMSTATE_UINT8(timer1, FDCtrl),
1051 VMSTATE_UINT8(precomp_trk, FDCtrl),
1052 VMSTATE_UINT8(config, FDCtrl),
1053 VMSTATE_UINT8(lock, FDCtrl),
1054 VMSTATE_UINT8(pwrd, FDCtrl),
1055 VMSTATE_UINT8_EQUAL(num_floppies, FDCtrl, NULL),
1056 VMSTATE_STRUCT_ARRAY(drives, FDCtrl, MAX_FD, 1,
1069 static void fdctrl_reset_irq(FDCtrl *fdctrl) in fdctrl_reset_irq()
1079 static void fdctrl_raise_irq(FDCtrl *fdctrl) in fdctrl_raise_irq()
1091 void fdctrl_reset(FDCtrl *fdctrl, int do_irq) in fdctrl_reset()
1124 static inline FDrive *drv0(FDCtrl *fdctrl) in drv0()
1129 static inline FDrive *drv1(FDCtrl *fdctrl) in drv1()
1138 static inline FDrive *drv2(FDCtrl *fdctrl) in drv2()
1146 static inline FDrive *drv3(FDCtrl *fdctrl) in drv3()
1155 static FDrive *get_drv(FDCtrl *fdctrl, int unit) in get_drv()
1168 static FDrive *get_cur_drv(FDCtrl *fdctrl) in get_cur_drv()
1186 static uint32_t fdctrl_read_statusA(FDCtrl *fdctrl) in fdctrl_read_statusA()
1196 static uint32_t fdctrl_read_statusB(FDCtrl *fdctrl) in fdctrl_read_statusB()
1206 static uint32_t fdctrl_read_dor(FDCtrl *fdctrl) in fdctrl_read_dor()
1217 static void fdctrl_write_dor(FDCtrl *fdctrl, uint32_t value) in fdctrl_write_dor()
1256 static uint32_t fdctrl_read_tape(FDCtrl *fdctrl) in fdctrl_read_tape()
1265 static void fdctrl_write_tape(FDCtrl *fdctrl, uint32_t value) in fdctrl_write_tape()
1279 static uint32_t fdctrl_read_main_status(FDCtrl *fdctrl) in fdctrl_read_main_status()
1292 static void fdctrl_write_rate(FDCtrl *fdctrl, uint32_t value) in fdctrl_write_rate()
1313 static void fdctrl_write_ccr(FDCtrl *fdctrl, uint32_t value) in fdctrl_write_ccr()
1335 static uint32_t fdctrl_read_dir(FDCtrl *fdctrl) in fdctrl_read_dir()
1350 static void fdctrl_to_command_phase(FDCtrl *fdctrl) in fdctrl_to_command_phase()
1362 static void fdctrl_to_result_phase(FDCtrl *fdctrl, int fifo_len) in fdctrl_to_result_phase()
1372 static void fdctrl_unimplemented(FDCtrl *fdctrl, int direction) in fdctrl_unimplemented()
1384 static int fdctrl_seek_to_next_sect(FDCtrl *fdctrl, FDrive *cur_drv) in fdctrl_seek_to_next_sect()
1429 static void fdctrl_stop_transfer(FDCtrl *fdctrl, uint8_t status0, in fdctrl_stop_transfer()
1464 static void fdctrl_start_transfer(FDCtrl *fdctrl, int direction) in fdctrl_start_transfer()
1579 static void fdctrl_start_transfer_del(FDCtrl *fdctrl, int direction) in fdctrl_start_transfer_del()
1592 FDCtrl *fdctrl; in fdctrl_transfer_handler()
1714 static uint32_t fdctrl_read_data(FDCtrl *fdctrl) in fdctrl_read_data()
1779 static void fdctrl_format_sector(FDCtrl *fdctrl) in fdctrl_format_sector()
1840 static void fdctrl_handle_lock(FDCtrl *fdctrl, int direction) in fdctrl_handle_lock()
1847 static void fdctrl_handle_dumpreg(FDCtrl *fdctrl, int direction) in fdctrl_handle_dumpreg()
1872 static void fdctrl_handle_version(FDCtrl *fdctrl, int direction) in fdctrl_handle_version()
1879 static void fdctrl_handle_partid(FDCtrl *fdctrl, int direction) in fdctrl_handle_partid()
1885 static void fdctrl_handle_restore(FDCtrl *fdctrl, int direction) in fdctrl_handle_restore()
1908 static void fdctrl_handle_save(FDCtrl *fdctrl, int direction) in fdctrl_handle_save()
1938 static void fdctrl_handle_readid(FDCtrl *fdctrl, int direction) in fdctrl_handle_readid()
1947 static void fdctrl_handle_format_track(FDCtrl *fdctrl, int direction) in fdctrl_handle_format_track()
1975 static void fdctrl_handle_specify(FDCtrl *fdctrl, int direction) in fdctrl_handle_specify()
1987 static void fdctrl_handle_sense_drive_status(FDCtrl *fdctrl, int direction) in fdctrl_handle_sense_drive_status()
2003 static void fdctrl_handle_recalibrate(FDCtrl *fdctrl, int direction) in fdctrl_handle_recalibrate()
2016 static void fdctrl_handle_sense_interrupt_status(FDCtrl *fdctrl, int direction) in fdctrl_handle_sense_interrupt_status()
2040 static void fdctrl_handle_seek(FDCtrl *fdctrl, int direction) in fdctrl_handle_seek()
2056 static void fdctrl_handle_perpendicular_mode(FDCtrl *fdctrl, int direction) in fdctrl_handle_perpendicular_mode()
2066 static void fdctrl_handle_configure(FDCtrl *fdctrl, int direction) in fdctrl_handle_configure()
2074 static void fdctrl_handle_powerdown_mode(FDCtrl *fdctrl, int direction) in fdctrl_handle_powerdown_mode()
2081 static void fdctrl_handle_option(FDCtrl *fdctrl, int direction) in fdctrl_handle_option()
2087 static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction) in fdctrl_handle_drive_specification_command()
2112 static void fdctrl_handle_relative_seek_in(FDCtrl *fdctrl, int direction) in fdctrl_handle_relative_seek_in()
2131 static void fdctrl_handle_relative_seek_out(FDCtrl *fdctrl, int direction) in fdctrl_handle_relative_seek_out()
2157 void (*handler)(FDCtrl *fdctrl, int direction);
2207 static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value) in fdctrl_write_data()
2304 FDCtrl *fdctrl = opaque; in fdctrl_result_timer()
2343 void fdctrl_realize_common(DeviceState *dev, FDCtrl *fdctrl, Error **errp) in fdctrl_realize_common()