mirror of
https://github.com/dingusdev/dingusppc.git
synced 2026-04-19 10:20:36 +00:00
hammerhead: Define some bits.
From xnu-344/osfmk/ppc/POWERMAC/mp/MPPlugIn.h
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
DingusPPC - The Experimental PowerPC Macintosh emulator
|
||||
Copyright (C) 2018-23 divingkatae and maximum
|
||||
Copyright (C) 2018-25 divingkatae and maximum
|
||||
(theweirdo) spatium
|
||||
|
||||
(Contact divingkatae#1017 or powermax#2286 on Discord for more info)
|
||||
@@ -62,6 +62,11 @@ namespace Hammerhead {
|
||||
BUS_SPEED_50_MHZ = 3
|
||||
};
|
||||
|
||||
// bits for the ARBITER_CONFIG register
|
||||
enum {
|
||||
TWO_CPU = 1 << 1,
|
||||
};
|
||||
|
||||
// bus master IDs for the WHO_AM_I register
|
||||
enum {
|
||||
BM_VIDEO_BRIDGE = 1 << 4,
|
||||
@@ -71,6 +76,11 @@ namespace Hammerhead {
|
||||
BM_SECONDARY_CPU = 1 << 0
|
||||
};
|
||||
|
||||
// Interrupt bits for the INT_REG register
|
||||
enum {
|
||||
SEC_INT = 1 << 7,
|
||||
};
|
||||
|
||||
// Configuration and status registers.
|
||||
enum HammerheadReg : uint16_t {
|
||||
CPU_ID = 0x00,
|
||||
@@ -85,6 +95,7 @@ namespace Hammerhead {
|
||||
ARBITER_CONFIG = 0x90,
|
||||
ARBUS_TIMEOUT = 0xA0,
|
||||
WHO_AM_I = 0xB0,
|
||||
INT_REG = 0xC0,
|
||||
L2_CACHE_CONFIG = 0xE0,
|
||||
BANK_0_BASE_MSB = 0x1C0,
|
||||
BANK_25_BASE_LSB = 0x4F0,
|
||||
|
||||
Reference in New Issue
Block a user