]> git.sesse.net Git - pistorm/blob - a314/a314device/a314.h
Add Meson build files.
[pistorm] / a314 / a314device / a314.h
1 /*
2  * Copyright 2020-2021 Niklas Ekström
3  */
4
5 #ifndef DEVICES_A314_H
6 #define DEVICES_A314_H
7
8 #include <exec/io.h>
9
10 #define A314_NAME                       "a314.device"
11
12 #define A314_CONNECT                    (CMD_NONSTD+0)
13 #define A314_READ                       (CMD_NONSTD+1)
14 #define A314_WRITE                      (CMD_NONSTD+2)
15 #define A314_EOS                        (CMD_NONSTD+3)
16 #define A314_RESET                      (CMD_NONSTD+4)
17
18 #define A314_CONNECT_OK                 0
19 #define A314_CONNECT_SOCKET_IN_USE      1
20 #define A314_CONNECT_RESET              2
21 #define A314_CONNECT_UNKNOWN_SERVICE    3
22
23 #define A314_READ_OK                    0
24 #define A314_READ_EOS                   1
25 #define A314_READ_RESET                 2
26
27 #define A314_WRITE_OK                   0
28 #define A314_WRITE_EOS_SENT             1
29 #define A314_WRITE_RESET                2
30
31 #define A314_EOS_OK                     0
32 #define A314_EOS_EOS_SENT               1
33 #define A314_EOS_RESET                  2
34
35 #define A314_RESET_OK                   0
36
37 #define MEMF_A314                       (1<<7)
38
39 struct A314_IORequest
40 {
41         struct IORequest a314_Request;
42         ULONG           a314_Socket;
43         STRPTR          a314_Buffer;
44         WORD            a314_Length;
45 };
46
47 #endif