1 #include <exec/types.h>
3 // Packet types that are sent across the physical channel.
4 #define PKT_DRIVER_STARTED 1
5 #define PKT_DRIVER_SHUTTING_DOWN 2
8 #define PKT_CONNECT_RESPONSE 5
13 // Events that are communicated via IRQ from Amiga to Raspberry.
14 #define R_EVENT_A2R_TAIL 1
15 #define R_EVENT_R2A_HEAD 2
16 #define R_EVENT_STARTED 4
18 // Events that are communicated from Raspberry to Amiga.
19 #define A_EVENT_R2A_TAIL 1
20 #define A_EVENT_A2R_HEAD 2
22 // The communication area, used to create the physical channel.
25 volatile UBYTE a_events;
26 volatile UBYTE a_enable;
27 volatile UBYTE r_events;
28 volatile UBYTE r_enable;
33 volatile UBYTE a2r_tail;
34 volatile UBYTE r2a_head;
35 volatile UBYTE r2a_tail;
36 volatile UBYTE a2r_head;
38 UBYTE a2r_buffer[256];
39 UBYTE r2a_buffer[256];
42 extern struct ComArea *ca;