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