a2065_wput (addr + 2, l);
}
-extern addrbank a2065_bank;
+DECLARE_MEMORY_FUNCTIONS(a2065);
+
+static addrbank a2065_bank = {
+ a2065_lget, a2065_wget, a2065_bget,
+ a2065_lput, a2065_wput, a2065_bput,
+ default_xlate, default_check, NULL, _T("A2065 Z2 Ethernet"),
+ a2065_lgeti, a2065_wgeti, ABFLAG_IO
+};
static void REGPARAM2 a2065_bput (uaecptr addr, uae_u32 b)
{
return v;
}
-static addrbank a2065_bank = {
- a2065_lget, a2065_wget, a2065_bget,
- a2065_lput, a2065_wput, a2065_bput,
- default_xlate, default_check, NULL, _T("A2065 Z2 Ethernet"),
- a2065_lgeti, a2065_wgeti, ABFLAG_IO
-};
-
static addrbank *a2065_config (void)
{
memset (config, 0xff, sizeof config);
ourselves. This holds the memory address where the start of memory is
for this particular bank. */
uae_u8 *baseaddr;
- TCHAR *name;
+ const TCHAR *name;
/* for instruction opcode/operand fetches */
mem_get_func lgeti, wgeti;
int flags;
#define DECLARE_MEMORY_FUNCTIONS(name) \
static uae_u32 REGPARAM3 name ## _lget (uaecptr) REGPARAM; \
+ static uae_u32 REGPARAM3 name ## _lgeti (uaecptr) REGPARAM; \
static uae_u32 REGPARAM3 name ## _wget (uaecptr) REGPARAM; \
+ static uae_u32 REGPARAM3 name ## _wgeti (uaecptr) REGPARAM; \
static uae_u32 REGPARAM3 name ## _bget (uaecptr) REGPARAM; \
static void REGPARAM3 name ## _lput (uaecptr, uae_u32) REGPARAM; \
static void REGPARAM3 name ## _wput (uaecptr, uae_u32) REGPARAM; \