4 * Copyright (C) 2003 Eric Kohl
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.
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.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __POWERPC_HARDWARE_H_
22 #define __POWERPC_HARDWARE_H_
25 #include "../../reactos/registry.h"
28 #define CONFIG_CMD(bus, dev_fn, where) \
29 (0x80000000 | (((ULONG)(bus)) << 16) | (((dev_fn) & 0x1F) << 11) | (((dev_fn) & 0xE0) << 3) | ((where) & ~3))
32 // Static heap for ARC Hardware Component Tree
33 // 16KB oughta be enough for anyone.
35 #define HW_MAX_ARC_HEAP_SIZE 16 * 1024
38 // ARC Component Configuration Routines
42 FldrSetComponentInformation(
43 IN PCONFIGURATION_COMPONENT_DATA ComponentKey
,
44 IN IDENTIFIER_FLAG Flags
,
52 IN PCONFIGURATION_COMPONENT_DATA ComponentKey
,
59 OUT PCONFIGURATION_COMPONENT_DATA
*SystemKey
64 FldrCreateComponentKey(
65 IN PCONFIGURATION_COMPONENT_DATA SystemKey
,
68 IN CONFIGURATION_CLASS Class
,
69 IN CONFIGURATION_TYPE Type
,
70 OUT PCONFIGURATION_COMPONENT_DATA
*ComponentKey
75 FldrSetConfigurationData(
76 IN PCONFIGURATION_COMPONENT_DATA ComponentKey
,
77 IN PVOID ConfigurationData
,
82 /* PROTOTYPES ***************************************************************/
86 VOID
StallExecutionProcessor(ULONG Microseconds
);
88 VOID
HalpCalibrateStallExecution(VOID
);
90 ULONGLONG
RDTSC(VOID
);
92 #endif /* __POWERPC_HARDWARE_H_ */