1 |
|
/* |
2 |
|
* name_registry.cpp - Name Registry handling |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2004 Christian Bauer and Marc Hellwig |
4 |
> |
* SheepShaver (C) 1997-2005 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 |
60 |
|
|
61 |
|
// Ethernet driver stub |
62 |
|
static const uint8 ethernet_driver[] = { |
63 |
+ |
#ifdef USE_ETHER_FULL_DRIVER |
64 |
+ |
#include "EthernetDriverFull.i" |
65 |
+ |
#else |
66 |
|
#include "EthernetDriverStub.i" |
67 |
+ |
#endif |
68 |
|
}; |
69 |
|
|
70 |
|
// Helper for RegEntryID |
135 |
|
case 80: // 860 |
136 |
|
str = "PowerPC,860"; |
137 |
|
break; |
138 |
+ |
case 12: // 7400, 7410, 7450, 7455, 7457 |
139 |
+ |
case 0x800c: |
140 |
+ |
case 0x8000: |
141 |
+ |
case 0x8001: |
142 |
+ |
case 0x8002: |
143 |
+ |
str = "PowerPC,G4"; |
144 |
+ |
break; |
145 |
|
default: |
146 |
|
str = "PowerPC,???"; |
147 |
|
break; |
354 |
|
void PatchNameRegistry(void) |
355 |
|
{ |
356 |
|
// Find RegistryCStrEntryCreate() and RegistryPropertyCreate() TVECTs |
357 |
< |
rcec_tvect = (uint32)FindLibSymbol("\017NameRegistryLib", "\027RegistryCStrEntryCreate"); |
357 |
> |
rcec_tvect = FindLibSymbol("\017NameRegistryLib", "\027RegistryCStrEntryCreate"); |
358 |
|
D(bug("RegistryCStrEntryCreate TVECT at %08x\n", rcec_tvect)); |
359 |
< |
rpc_tvect = (uint32)FindLibSymbol("\017NameRegistryLib", "\026RegistryPropertyCreate"); |
359 |
> |
rpc_tvect = FindLibSymbol("\017NameRegistryLib", "\026RegistryPropertyCreate"); |
360 |
|
D(bug("RegistryPropertyCreate TVECT at %08x\n", rpc_tvect)); |
361 |
|
if (rcec_tvect == 0 || rpc_tvect == 0) { |
362 |
|
ErrorAlert(GetString(STR_NO_NAME_REGISTRY_ERR)); |