2 * Copyright 2020-2021 Niklas Ekström
5 #include <exec/types.h>
7 // Packet types that are sent across the physical channel.
8 #define PKT_DRIVER_STARTED 1
9 #define PKT_DRIVER_SHUTTING_DOWN 2
10 #define PKT_SETTINGS 3
12 #define PKT_CONNECT_RESPONSE 5
17 // Events that are communicated via IRQ from Amiga to Raspberry.
18 #define R_EVENT_A2R_TAIL 1
19 #define R_EVENT_R2A_HEAD 2
20 #define R_EVENT_STARTED 4
22 // Events that are communicated from Raspberry to Amiga.
23 #define A_EVENT_R2A_TAIL 1
24 #define A_EVENT_A2R_HEAD 2
26 // The communication area, used to create the physical channel.
29 volatile UBYTE a_events;
30 volatile UBYTE a_enable;
31 volatile UBYTE r_events;
32 volatile UBYTE r_enable;
37 volatile UBYTE a2r_tail;
38 volatile UBYTE r2a_head;
39 volatile UBYTE r2a_tail;
40 volatile UBYTE a2r_head;
42 UBYTE a2r_buffer[256];
43 UBYTE r2a_buffer[256];
46 extern struct ComArea *ca;