23 #define MAX_DEVICES 256 24 #define AVE_PNP_SIZE 32 25 #define MAX_MEM_SEGS 64 33 typedef enum _L1CACHE_TYPE {
39 typedef enum _TLB_TYPE {
45 typedef enum _FIRMWARE_SUPPORT {
55 SCSI_InitiatorID_Override = 0x0200,
60 typedef enum _FIRMWARE_SUPPLIERS {
65 QEMU = (
'q'<<24) | (
'e'<<16) | (
'm'<<8) | (
'u'<<0),
68 typedef enum _ENDIAN_SWITCH_METHODS {
70 UsePCIConfigA8 = 0x02,
72 } ENDIAN_SWITCH_METHODS;
74 typedef enum _SPREAD_IO_METHODS {
82 unsigned char PrintableModel[32];
87 unsigned char Serial[16];
92 unsigned char Reserved[48];
93 unsigned long FirmwareSupplier;
94 unsigned long FirmwareSupports;
95 unsigned long NvramSize;
96 unsigned long NumSIMMSlots;
97 unsigned short EndianSwitchMethod;
98 unsigned short SpreadIOMethod;
100 unsigned long RAMErrLogOffset;
101 unsigned long Reserved5;
102 unsigned long Reserved6;
103 unsigned long ProcessorHz;
104 unsigned long ProcessorBusHz;
105 unsigned long Reserved7;
106 unsigned long TimeBaseDivisor;
107 unsigned long WordWidth;
108 unsigned long PageSize;
109 unsigned long CoherenceBlockSize;
112 unsigned long GranuleSize;
116 unsigned long CacheSize;
119 unsigned long CacheAttrib;
120 unsigned long CacheAssoc;
123 unsigned long CacheLineSize;
127 unsigned long I_CacheSize;
128 unsigned long I_CacheAssoc;
129 unsigned long I_CacheLineSize;
130 unsigned long D_CacheSize;
131 unsigned long D_CacheAssoc;
132 unsigned long D_CacheLineSize;
135 unsigned long TLBSize;
136 unsigned long TLBAttrib;
137 unsigned long TLBAssoc;
141 unsigned long I_TLBSize;
142 unsigned long I_TLBAssoc;
143 unsigned long D_TLBSize;
144 unsigned long D_TLBAssoc;
146 unsigned long ExtendedVPD;
150 typedef enum _DEVICE_FLAGS {
160 Configurable = 0x0100,
171 typedef enum _BUS_ID {
179 PROCESSORDEVICE = 0x80,
186 unsigned long SerialNum;
189 unsigned char BaseType;
190 unsigned char SubType;
191 unsigned char Interface;
198 unsigned char LogicalDevNumber;
199 unsigned short ReadDataPort;
202 unsigned char SlotNumber;
204 unsigned char LogicalDevNumber;
205 unsigned short ISAReserved;
208 unsigned char SlotNumber;
209 unsigned char LogicalDevNumber;
210 unsigned short MCAReserved;
213 unsigned char SlotNumber;
214 unsigned char LogicalDevNumber;
215 unsigned short PCMCIAReserved;
218 unsigned char SlotNumber;
219 unsigned char FunctionNumber;
220 unsigned short EISAReserved;
223 unsigned char BusNumber;
224 unsigned char DevFuncNumber;
225 unsigned short PCIReserved;
228 unsigned char BusNumber;
230 unsigned short ProcBusReserved;
241 unsigned long AllocatedOffset;
242 unsigned long PossibleOffset;
243 unsigned long CompatibleOffset;
246 typedef enum _CPU_STATE {
251 CPU_NOT_PRESENT = 255
255 unsigned long CpuType;
259 unsigned char CpuNumber;
260 unsigned char CpuState;
261 unsigned short Reserved;
265 unsigned long SIMMSize;
269 typedef enum _MEM_USAGE {
271 ResumeBlock = 0x4000,
273 UnPopSystemROM = 0x1000,
290 unsigned long BasePage;
291 unsigned long PageCount;
295 unsigned long ResidualLength;
296 unsigned char Version;
297 unsigned char Revision;
300 VPD VitalProductData;
302 unsigned short MaxNumCpus;
303 unsigned short ActualNumCpus;
308 unsigned long TotalMemory;
309 unsigned long GoodMemory;
310 unsigned long ActualNumMemSegs;
312 unsigned long ActualNumMemories;
315 unsigned long ActualNumDevices;
317 unsigned char DevicePnPHeap[2*MAX_DEVICES*AVE_PNP_SIZE];
327 return QEMU == r->VitalProductData.FirmwareSupplier;
332 extern void print_residual_device_info(
void);
335 unsigned char * DevID,
int BaseType,
336 int SubType,
int Interface,
int n);
338 extern PPC_DEVICE *residual_find_device(
unsigned long BusMask,
339 unsigned char * DevID,
int BaseType,
340 int SubType,
int Interface,
int n);
342 extern PnP_TAG_PACKET *PnP_find_packet(
unsigned char *
p,
unsigned packet_tag,
344 extern PnP_TAG_PACKET *PnP_find_small_vendor_packet(
unsigned char *p,
345 unsigned packet_type,
347 extern PnP_TAG_PACKET *PnP_find_large_vendor_packet(
unsigned char *p,
348 unsigned packet_type,
353 uint32_t res_copy(
void);
Definition: residual.h:79
Definition: residual.h:264
Definition: residual.h:195
Definition: residual.h:212
Definition: residual.h:288
unsigned p
Definition: tte.h:90
Definition: residual.h:207
Definition: residual.h:201
Definition: residual.h:254
Definition: residual.h:217
Definition: residual.h:235
Definition: residual.h:196
Definition: residual.h:294
Definition: residual.h:227
Definition: residual.h:183
Definition: residual.h:222