|
|
1.1 root 1: #pragma once
2:
3: #ifndef __DIMENSION_H__
4: #define __DIMENSION_H__
5:
6: #define ND_SLOT 2
7:
1.1.1.2 ! root 8: /* NeXTdimension memory controller revision (0 and 1 allowed) */
! 9: #define ND_STEP 1
1.1 root 10:
11: Uint32 nd_slot_lget(Uint32 addr);
12: Uint16 nd_slot_wget(Uint32 addr);
13: Uint8 nd_slot_bget(Uint32 addr);
14: void nd_slot_lput(Uint32 addr, Uint32 l);
15: void nd_slot_wput(Uint32 addr, Uint16 w);
16: void nd_slot_bput(Uint32 addr, Uint8 b);
17:
18: Uint32 nd_board_lget(Uint32 addr);
19: Uint16 nd_board_wget(Uint32 addr);
20: Uint8 nd_board_bget(Uint32 addr);
21: void nd_board_lput(Uint32 addr, Uint32 l);
22: void nd_board_wput(Uint32 addr, Uint16 w);
23: void nd_board_bput(Uint32 addr, Uint8 b);
24: Uint8 nd_board_cs8get(Uint32 addr);
1.1.1.2 ! root 25:
! 26: void nd_board_rd8_le (Uint32 addr, Uint32* val);
! 27: void nd_board_rd16_le (Uint32 addr, Uint32* val);
! 28: void nd_board_rd32_le (Uint32 addr, Uint32* val);
! 29: void nd_board_rd64_le (Uint32 addr, Uint32* val);
! 30: void nd_board_rd128_le(Uint32 addr, Uint32* val);
! 31:
! 32: void nd_board_rd8_be (Uint32 addr, Uint32* val);
! 33: void nd_board_rd16_be (Uint32 addr, Uint32* val);
! 34: void nd_board_rd32_be (Uint32 addr, Uint32* val);
! 35: void nd_board_rd64_be (Uint32 addr, Uint32* val);
! 36: void nd_board_rd128_be(Uint32 addr, Uint32* val);
! 37:
! 38: void nd_board_wr8_le (Uint32 addr, const Uint32* val);
! 39: void nd_board_wr16_le (Uint32 addr, const Uint32* val);
! 40: void nd_board_wr32_le (Uint32 addr, const Uint32* val);
! 41: void nd_board_wr64_le (Uint32 addr, const Uint32* val);
! 42: void nd_board_wr128_le(Uint32 addr, const Uint32* val);
! 43:
! 44: void nd_board_wr8_be (Uint32 addr, const Uint32* val);
! 45: void nd_board_wr16_be (Uint32 addr, const Uint32* val);
! 46: void nd_board_wr32_be (Uint32 addr, const Uint32* val);
! 47: void nd_board_wr64_be (Uint32 addr, const Uint32* val);
! 48: void nd_board_wr128_be(Uint32 addr, const Uint32* val);
1.1 root 49:
50: extern Uint8 ND_ram[64*1024*1024];
51: extern Uint8 ND_rom[128*1024];
52: extern Uint8 ND_vram[4*1024*1024];
53:
1.1.1.2 ! root 54: typedef void (*i860_run_func)(int);
! 55: extern i860_run_func i860_Run;
! 56:
1.1 root 57: void dimension_init(void);
58: void dimension_uninit(void);
1.1.1.2 ! root 59: void dimension_pause(bool pause);
! 60: void nd_i860_init(void);
! 61: void nd_i860_uninit(void);
! 62: void nd_i860_pause(bool pause);
! 63: void i860_reset(void);
! 64: void i860_interrupt(void);
1.1 root 65: void nd_start_debugger(void);
1.1.1.2 ! root 66: const char* nd_reports(double realTime, double hostTime);
1.1 root 67:
68: #define ND_LOG_IO_RD LOG_NONE
69: #define ND_LOG_IO_WR LOG_NONE
70:
71: #endif /* __DIMENSION_H__ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.