ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/rom_patches.h
Revision: 1.10
Committed: 2008-01-01T09:40:35Z (16 years, 10 months ago) by gbeauche
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
Error occurred while calculating annotation data.
Log Message:
Happy New Year!

File Contents

# Content
1 /*
2 * rom_patches.h - ROM patches
3 *
4 * Basilisk II (C) 1997-2008 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 // Mac address of GetScrap() patch
45 extern uint32 GetScrapPatch;
46
47 // Flag: print ROM information in PatchROM()
48 extern bool PrintROMInfo;
49
50 extern bool CheckROM(void);
51 extern bool PatchROM(void);
52 extern void InstallDrivers(uint32 pb);
53 extern void InstallSERD(void);
54 extern void PatchAfterStartup(void);
55
56 #endif