[ros-diffs] [arty] 31177: Add simple hardware.h for ppc.

arty at svn.reactos.org arty at svn.reactos.org
Wed Dec 12 08:43:07 CET 2007


Author: arty
Date: Wed Dec 12 10:43:07 2007
New Revision: 31177

URL: http://svn.reactos.org/svn/reactos?rev=31177&view=rev
Log:
Add simple hardware.h for ppc.

Added:
    trunk/reactos/boot/freeldr/freeldr/include/arch/powerpc/
    trunk/reactos/boot/freeldr/freeldr/include/arch/powerpc/hardware.h   (with props)
Modified:
    trunk/reactos/boot/freeldr/freeldr/include/freeldr.h

Added: trunk/reactos/boot/freeldr/freeldr/include/arch/powerpc/hardware.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/include/arch/powerpc/hardware.h?rev=31177&view=auto
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/include/arch/powerpc/hardware.h (added)
+++ trunk/reactos/boot/freeldr/freeldr/include/arch/powerpc/hardware.h Wed Dec 12 10:43:07 2007
@@ -1,0 +1,94 @@
+/*
+ *  FreeLoader
+ *
+ *  Copyright (C) 2003  Eric Kohl
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef __POWERPC_HARDWARE_H_
+#define __POWERPC_HARDWARE_H_
+
+#ifndef __REGISTRY_H
+#include "../../reactos/registry.h"
+#endif
+
+#define CONFIG_CMD(bus, dev_fn, where) \
+	(0x80000000 | (((ULONG)(bus)) << 16) | (((dev_fn) & 0x1F) << 11) | (((dev_fn) & 0xE0) << 3) | ((where) & ~3))
+
+//
+// Static heap for ARC Hardware Component Tree
+// 16KB oughta be enough for anyone.
+//
+#define HW_MAX_ARC_HEAP_SIZE 16 * 1024
+
+//
+// ARC Component Configuration Routines
+//
+VOID
+NTAPI
+FldrSetComponentInformation(
+    IN PCONFIGURATION_COMPONENT_DATA ComponentKey,
+    IN IDENTIFIER_FLAG Flags,
+    IN ULONG Key,
+    IN ULONG Affinity
+);
+
+VOID
+NTAPI
+FldrSetIdentifier(
+    IN PCONFIGURATION_COMPONENT_DATA ComponentKey,
+    IN PWCHAR Identifier
+);
+
+VOID
+NTAPI
+FldrCreateSystemKey(
+    OUT PCONFIGURATION_COMPONENT_DATA *SystemKey
+);
+
+VOID
+NTAPI
+FldrCreateComponentKey(
+    IN PCONFIGURATION_COMPONENT_DATA SystemKey,
+    IN PWCHAR BusName,
+    IN ULONG BusNumber,
+    IN CONFIGURATION_CLASS Class,
+    IN CONFIGURATION_TYPE Type,
+    OUT PCONFIGURATION_COMPONENT_DATA *ComponentKey
+);
+
+VOID
+NTAPI
+FldrSetConfigurationData(
+    IN PCONFIGURATION_COMPONENT_DATA ComponentKey,
+    IN PVOID ConfigurationData,
+    IN ULONG Size
+);
+
+
+/* PROTOTYPES ***************************************************************/
+
+/* hardware.c */
+
+VOID StallExecutionProcessor(ULONG Microseconds);
+
+VOID HalpCalibrateStallExecution(VOID);
+
+ULONGLONG RDTSC(VOID);
+
+#endif /* __POWERPC_HARDWARE_H_ */
+
+/* EOF */

Propchange: trunk/reactos/boot/freeldr/freeldr/include/arch/powerpc/hardware.h
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: trunk/reactos/boot/freeldr/freeldr/include/freeldr.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/include/freeldr.h?rev=31177&r1=31176&r2=31177&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/include/freeldr.h (original)
+++ trunk/reactos/boot/freeldr/freeldr/include/freeldr.h Wed Dec 12 10:43:07 2007
@@ -69,6 +69,8 @@
 #include <arch/i386/machxbox.h>
 #include <internal/i386/intrin_i.h>
 #include <internal/i386/ke.h>
+#elif _PPC_
+#include <arch/powerpc/hardware.h>
 #elif _MIPS_
 #include <arch/mips/arcbios.h>
 #endif




More information about the Ros-diffs mailing list