1 |
cebix |
1.1 |
/* |
2 |
|
|
* rom_patches.h - ROM patches |
3 |
|
|
* |
4 |
|
|
* Basilisk II (C) 1997-1999 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 |
cebix |
1.3 |
// ROM offset of breakpoint, used by PatchROM() |
36 |
cebix |
1.2 |
extern uint32 ROMBreakpoint; |
37 |
|
|
|
38 |
cebix |
1.1 |
// ROM offset of UniversalInfo, set by PatchROM() |
39 |
|
|
extern uint32 UniversalInfo; |
40 |
|
|
|
41 |
|
|
// Mac address of PutScrap() patch |
42 |
|
|
extern uint32 PutScrapPatch; |
43 |
cebix |
1.3 |
|
44 |
|
|
// Flag: print ROM information in PatchROM() |
45 |
|
|
extern bool PrintROMInfo; |
46 |
cebix |
1.1 |
|
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 |