-
Notifications
You must be signed in to change notification settings - Fork 33
/
a314.h
45 lines (33 loc) · 894 Bytes
/
a314.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
38
39
40
41
42
43
44
45
#ifndef DEVICES_A314_H
#define DEVICES_A314_H
#include <exec/io.h>
#define A314_NAME "a314.device"
#define A314_CONNECT (CMD_NONSTD+0)
#define A314_READ (CMD_NONSTD+1)
#define A314_WRITE (CMD_NONSTD+2)
#define A314_EOS (CMD_NONSTD+3)
#define A314_RESET (CMD_NONSTD+4)
#define A314_CONNECT_OK 0
#define A314_CONNECT_SOCKET_IN_USE 1
#define A314_CONNECT_RESET 2
#define A314_CONNECT_UNKNOWN_SERVICE 3
#define A314_READ_OK 0
#define A314_READ_EOS 1
#define A314_READ_RESET 2
#define A314_WRITE_OK 0
#define A314_WRITE_EOS_SENT 1
#define A314_WRITE_RESET 2
#define A314_EOS_OK 0
#define A314_EOS_EOS_SENT 1
#define A314_EOS_RESET 2
#define A314_RESET_OK 0
#define MEMF_A314 (1<<7)
#define INVALID_A314_ADDRESS ((ULONG)-1)
struct A314_IORequest
{
struct IORequest a314_Request;
ULONG a314_Socket;
STRPTR a314_Buffer;
WORD a314_Length;
};
#endif