-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcmdhandler.h
More file actions
51 lines (43 loc) · 1.61 KB
/
Copy pathcmdhandler.h
File metadata and controls
51 lines (43 loc) · 1.61 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// Copyright 2022-2025 Chris Hooper & Stefan Reinauer
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
#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 */