]> git.sesse.net Git - pistorm/blobdiff - a314/a314device/protocol.h
Add code to autoconfigure A314
[pistorm] / a314 / a314device / protocol.h
index 6ff50a229d2ff7d2adc5b9d8e9bef727877e3f35..28dc1681f2376c6d6f1d4ee82f4502ce32fcd733 100644 (file)
 #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 +27,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;