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/inclu…
==============================================================================
--- 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/inclu…
==============================================================================
--- 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
Author: jimtabor
Date: Wed Dec 12 09:12:02 2007
New Revision: 31175
URL: http://svn.reactos.org/svn/reactos?rev=31175&view=rev
Log:
Temporarily implement GWL_HWNDPARENT in user mode.
Modified:
trunk/reactos/dll/win32/user32/windows/class.c
Modified: trunk/reactos/dll/win32/user32/windows/class.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/c…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/class.c (original)
+++ trunk/reactos/dll/win32/user32/windows/class.c Wed Dec 12 09:12:02 2007
@@ -529,6 +529,11 @@
case GWL_HWNDPARENT:
DbgPrint("GWL_HWNDPARENT\n");
/* FIXME: Implement in user32 */
+ {
+ HWND parent = GetAncestor( hWnd, GA_PARENT );
+ if (parent == GetDesktopWindow()) parent = GetWindow( hWnd, GW_OWNER );
+ return (LONG)parent;
+ }
case GWL_WNDPROC:
/* Call win32k for this as a callproc handle may need
to be created */
@@ -583,6 +588,11 @@
case GWL_HWNDPARENT:
DbgPrint("GWL_HWNDPARENT\n");
/* FIXME: Implement in user32 */
+ {
+ HWND parent = GetAncestor( hWnd, GA_PARENT );
+ if (parent == GetDesktopWindow()) parent = GetWindow( hWnd, GW_OWNER );
+ return (LONG)parent;
+ }
case GWL_WNDPROC:
/* Call win32k for this as a callproc handle may need
to be created */