ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/rom_patches.h
Revision: 1.6
Committed: 2002-01-15T14:58:41Z (22 years, 10 months ago) by cebix
Content type: text/plain
Branch: MAIN
CVS Tags: nigel-build-12, nigel-build-13, snapshot-15012002
Changes since 1.5: +1 -1 lines
Log Message:
- documentation updates
- 2001 -> 2002
- version 0.9 -> 1.0

File Contents

# Content
1 /*
2 * rom_patches.h - ROM patches
3 *
4 * Basilisk II (C) 1997-2002 Christian Bauer
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 ROM_PATCHES_H
22 #define ROM_PATCHES_H
23
24 // ROM version number, set by CheckROM()
25 enum {
26 ROM_VERSION_64K = 0x0000, // Original Macintosh (64KB)
27 ROM_VERSION_PLUS = 0x0075, // Mac Plus ROMs (128KB)
28 ROM_VERSION_CLASSIC = 0x0276, // SE/Classic ROMs (256/512KB)
29 ROM_VERSION_II = 0x0178, // Not 32-bit clean Mac II ROMs (256KB)
30 ROM_VERSION_32 = 0x067c // 32-bit clean Mac II ROMs (512KB/1MB)
31 };
32
33 extern uint16 ROMVersion;
34
35 // ROM offset of breakpoint, used by PatchROM()
36 extern uint32 ROMBreakpoint;
37
38 // ROM offset of UniversalInfo, set by PatchROM()
39 extern uint32 UniversalInfo;
40
41 // Mac address of PutScrap() patch
42 extern uint32 PutScrapPatch;
43
44 // Flag: print ROM information in PatchROM()
45 extern bool PrintROMInfo;
46
47 extern bool CheckROM(void);
48 extern bool PatchROM(void);
49 extern void InstallDrivers(uint32 pb);
50 extern void InstallSERD(void);
51 extern void PatchAfterStartup(void);
52
53 #endif