-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcmdhandler.h
38 lines (31 loc) · 1.05 KB
/
cmdhandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#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 */