ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/rom_patches.h
Revision: 1.1.1.1 (vendor branch)
Committed: 1999-10-03T14:16:26Z (25 years, 1 month ago) by cebix
Content type: text/plain
Branch: cebix
CVS Tags: release-0_7-2, snapshot-21101999, start
Changes since 1.1: +0 -0 lines
Log Message:
Imported sources

File Contents

# User Rev Content
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     // ROM offset of UniversalInfo, set by PatchROM()
36     extern uint32 UniversalInfo;
37    
38     // Mac address of PutScrap() patch
39     extern uint32 PutScrapPatch;
40    
41     extern bool CheckROM(void);
42     extern bool PatchROM(void);
43     extern void InstallDrivers(uint32 pb);
44     extern void InstallSERD(void);
45     extern void PatchAfterStartup(void);
46    
47     #endif