ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/include/xlowmem.h
Revision: 1.1.1.1 (vendor branch)
Committed: 2002-02-04T16:58:13Z (22 years, 9 months ago) by cebix
Content type: text/plain
Branch: cebix
CVS Tags: start
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
Log Message:
Imported sources

File Contents

# Content
1 /*
2 * xlowmem.h - Definitions for extra Low Memory globals (0x2800..)
3 *
4 * SheepShaver (C) 1997-2002 Christian Bauer and Marc Hellwig
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #ifndef XLOWMEM_H
22 #define XLOWMEM_H
23
24 // Modes for XLM_RUN_MODE
25 #define MODE_68K 0 // 68k emulator active
26 #define MODE_NATIVE 1 // Switched to native mode
27 #define MODE_EMUL_OP 2 // 68k emulator active, within EMUL_OP routine
28
29 #define XLM_SIGNATURE 0x2800 // SheepShaver signature
30 #define XLM_KERNEL_DATA 0x2804 // Pointer to Kernel Data
31 #define XLM_TOC 0x2808 // TOC pointer of emulator
32 #define XLM_SHEEP_OBJ 0x280c // Pointer to SheepShaver object
33 #define XLM_RUN_MODE 0x2810 // Current run mode, see enum above
34 #define XLM_68K_R25 0x2814 // Contents of the 68k emulator's r25 (which contains the interrupt level), saved upon entering EMUL_OP mode, used by Execute68k() and the USR1 signal handler
35 #define XLM_IRQ_NEST 0x2818 // Interrupt disable nesting counter (>0: disabled)
36 #define XLM_PVR 0x281c // Theoretical PVR
37 #define XLM_BUS_CLOCK 0x2820 // Bus clock speed in Hz (for DriverServicesLib patch)
38 #define XLM_EMUL_RETURN_PROC 0x2824 // Pointer to EMUL_RETURN routine
39 #define XLM_EXEC_RETURN_PROC 0x2828 // Pointer to EXEC_RETURN routine
40 #define XLM_EMUL_OP_PROC 0x282c // Pointer to EMUL_OP routine
41 #define XLM_EMUL_RETURN_STACK 0x2830 // Stack pointer for EMUL_RETURN
42 #define XLM_RES_LIB_TOC 0x2834 // TOC pointer of Resources library
43 #define XLM_GET_RESOURCE 0x2838 // Pointer to native GetResource() routine
44 #define XLM_GET_1_RESOURCE 0x283c // Pointer to native Get1Resource() routine
45 #define XLM_GET_IND_RESOURCE 0x2840 // Pointer to native GetIndResource() routine
46 #define XLM_GET_1_IND_RESOURCE 0x2844 // Pointer to native Get1IndResource() routine
47 #define XLM_R_GET_RESOURCE 0x2848 // Pointer to native RGetResource() routine
48 #define XLM_EXEC_RETURN_OPCODE 0x284c // EXEC_RETURN opcode for Execute68k()
49
50 #define XLM_ETHER_INIT 0x28c0 // Pointer to ethernet InitStreamModule() function
51 #define XLM_ETHER_TERM 0x28c4 // Pointer to ethernet TerminateStreamModule() function
52 #define XLM_ETHER_OPEN 0x28c8 // Pointer to ethernet ether_open() function
53 #define XLM_ETHER_CLOSE 0x28cc // Pointer to ethernet ether_close() function
54 #define XLM_ETHER_WPUT 0x28d0 // Pointer to ethernet ether_wput() function
55 #define XLM_ETHER_RSRV 0x28d4 // Pointer to ethernet ether_rsrv() function
56 #define XLM_VIDEO_DOIO 0x28d8 // Pointer to video DoDriverIO() function
57
58 #endif