mirror of
https://github.com/LIV2/a4091-software.git
synced 2025-12-06 06:22:44 +00:00
a4091d: Added ^C abort to display a4091d: Added decode of xs_control, xs_status, chan_flags, chan_tflags a4091d: Added interrupt structude decode, change_periphtab list a4091d: Added "a4091d -p" to decode periph struct at specified address a4091d: Added default open of a4091.device target without generating I/O a4091.device will not terminate with I/O still pending Added support for TD_REMOVE, TD_ADDCHANGEINT, and TD_REMCHANGEINT Improved OpenDevice() and I/O error codes to give better reason for failure Replaced polled SCSI I/O timeout with more accurate and efficient processing Added panic() requester for rare panic cases Added option to disable SCSI target disconnect Improved SCSI timeout handling to quiesce channel before reset hammer Fixed (prev introduced) bug where SCSI timeout could lead to I/O hang Adjusted SCSI EJECT / LOAD timeouts to be successful with more drive types Improved accuracy of TD_CHANGESTATE immediately following TD_EJECT
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
#ifndef _CMD_HANDLER_H
|
|
#define _CMD_HANDLER_H
|
|
|
|
int open_unit(uint scsi_target, void **io_Unit, uint flags);
|
|
void close_unit(void *io_Unit);
|
|
|
|
int start_cmd_handler(uint *boardnum);
|
|
void stop_cmd_handler(void);
|
|
void cmd_complete(void *ior, int8_t rc);
|
|
|
|
void td_addchangeint(struct IORequest *ior);
|
|
void td_remchangeint(struct IORequest *ior);
|
|
void td_remove(struct IORequest *ior);
|
|
|
|
/* Trackdisk-64 enhanced commands */
|
|
/* Check before defining. AmigaOS 3.2 NDK provides these in
|
|
* trackdisk.h
|
|
*/
|
|
#ifndef TD_READ64
|
|
#define TD_READ64 24 // Read at 64-bit offset
|
|
#endif
|
|
#ifndef TD_WRITE64
|
|
#define TD_WRITE64 25 // Write at 64-bit offset
|
|
#endif
|
|
#ifndef TD_SEEK64
|
|
#define TD_SEEK64 26 // Seek to 64-bit offset
|
|
#endif
|
|
#ifndef TD_FORMAT64
|
|
#define TD_FORMAT64 27 // Format (write) at 64-bit offset
|
|
#endif
|
|
|
|
/* Internal commands */
|
|
#define CMD_TERM 0x2ef0 // Terminate command handler (end process)
|
|
#define CMD_ATTACH 0x2ff1 // Attach (open) SCSI peripheral
|
|
#define CMD_DETACH 0x2ef2 // Detach (close) SCSI peripheral
|
|
|
|
#endif /* _CMD_HANDLER_H */
|
|
|