]> git.sesse.net Git - pistorm/blobdiff - a314/a314device/protocol.h
Adapt a314fs to work on PiStorm + A314 emulation
[pistorm] / a314 / a314device / protocol.h
index 6ff50a229d2ff7d2adc5b9d8e9bef727877e3f35..3f06b1568fd5a5d4f6c0dcd8196887b5256f2b19 100644 (file)
@@ -1,3 +1,7 @@
+/*
+ * Copyright 2020-2021 Niklas Ekström
+ */
+
 #include <exec/types.h>
 
 // Packet types that are sent across the physical channel.
 #define A_EVENT_R2A_TAIL       1
 #define A_EVENT_A2R_HEAD       2
 
-#define COM_AREA_BASE          0xe90000
-
-#define PISTORM_BASE           0xc00000
-#define PISTORM_SIZE           (3*512*1024)
-
 // The communication area, used to create the physical channel.
 struct ComArea
 {
@@ -32,6 +31,9 @@ struct ComArea
        volatile UBYTE r_events;
        volatile UBYTE r_enable;
 
+       ULONG mem_base;
+       ULONG mem_size;
+
        volatile UBYTE a2r_tail;
        volatile UBYTE r2a_head;
        volatile UBYTE r2a_tail;