Commit graph

41276 commits

Author SHA1 Message Date
Cameron Gutman
5d4d3fd694 - Transition the physical device into D0 state when we receive IRP_MN_START_DEVICE
- Actually do the power state transtion when a PDO receives IRP_MN_SET_POWER for DevicePowerState
 - Fill the DEVICE_CHARACTERISTICS struct based on values in the acpi_device struct
 - Lots of unhacking

svn path=/trunk/; revision=45907
2010-03-06 06:03:04 +00:00
James Tabor
c628a16ac8 - [User32 Wine Test] Disable cancel mode test.
svn path=/trunk/; revision=45906
2010-03-06 02:52:25 +00:00
Timo Kreuzer
d29802813d - Add PMDLX
- MmProbeAndLockProcessPages is win2k, not XP
- update CM_PARTIAL_RESOURCE_DESCRIPTOR
- comment out some ExInterlocked functions for x86

svn path=/branches/header-work/; revision=45905
2010-03-06 02:21:20 +00:00
Timo Kreuzer
3416602d2f [WDM]
- KPROCESSOR_MODE is CCHAR
- add PF_XSAVE_ENABLED, SEC_COMMIT
- KeSaveFloatingPointState and KeRestoreFloatingPointState are x86 only

svn path=/branches/header-work/; revision=45904
2010-03-06 01:07:32 +00:00
Amine Khaldi
5748c28965 - Remove ntddk include from ntoskrnl.h
- NTIFS : tagTOKEN_TYPE -> _TOKEN_TYPE
- Remove redundant MmFlushImageSection definition from winddk
- Add _BUS_HANDLER struct forwarder
- Guard ifssupp.h with #ifndef _NTIFS_ condition
- Add WAIT_TYPE, LOGICAL and PLOGICAL definitions to ntdef.h and get rid of the incorrect ones in winddk.h
- Group related *_POWER_* definitions 
- Move PKSYNCHRONIZE_ROUTINE and POOL_TYPE to the kernel types section
- PDEVICE_OBJECT  DeviceObject -> struct _DEVICE_OBJECT  *DeviceObject in some cases
- PIRP Irp -> struct _IRP  *Irp in some cases

svn path=/branches/header-work/; revision=45903
2010-03-06 00:59:29 +00:00
Amine Khaldi
9a06fb6a0d [NTIFS]
- Group related definitions
- Correct ACCESS_MAX_MS_V5_ACE_TYPE definition
- Add SYSTEM_MANDATORY_LABEL_ACE_TYPE, SUCCESSFUL_ACCESS_ACE_FLAG, FAILED_ACCESS_ACE_FLAG, SYSTEM_MANDATORY_LABEL_NO_WRITE_UP, SYSTEM_MANDATORY_LABEL_NO_READ_UP, SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP and SYSTEM_MANDATORY_LABEL_VALID_MASK definitions

svn path=/branches/header-work/; revision=45902
2010-03-05 23:11:56 +00:00
James Tabor
04f1825bfb - [Win32k] Fix DrawMenuBar.
svn path=/trunk/; revision=45901
2010-03-05 23:10:16 +00:00
Amine Khaldi
01815bddf0 [NTIFS]
- Group related definitions
- Add SID_AND_ATTRIBUTES_HASH struct
- Add SID_HASH_SIZE, SID_HASH_ENTRY, *PSID_HASH_ENTRY, SECURITY_LOCAL_LOGON_RID, SECURITY_CRED_TYPE_BASE_RID, SECURITY_CRED_TYPE_RID_COUNT, SECURITY_CRED_TYPE_THIS_ORG_CERT_RID, SECURITY_USERMODEDRIVERHOST_ID_BASE_RID, SECURITY_USERMODEDRIVERHOST_ID_RID_COUNT, SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_BASE_RID, SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_RID_COUNT, SECURITY_WMIHOST_ID_BASE_RID, SECURITY_WMIHOST_ID_RID_COUNT, SECURITY_TASK_ID_BASE_RID, SECURITY_NFS_ID_BASE_RID, SECURITY_COM_ID_BASE_RID, SECURITY_VIRTUALACCOUNT_ID_RID_COUNT and SECURITY_WINDOWSMOBILE_ID_BASE_RID definitions

svn path=/branches/header-work/; revision=45900
2010-03-05 22:51:28 +00:00
Timo Kreuzer
7bf74e86d2 add _WDMDDK_ include guard
svn path=/branches/header-work/; revision=45899
2010-03-05 22:50:11 +00:00
Amine Khaldi
6f5be9aba2 [NTIFS]
- Introduce #pragma once
- Add missing includes
- Add some struct forwarders
- Add PsGetCurrentProcess, KeNumberProcessors, LSA_UNICODE_STRING, *PLSA_UNICODE_STRING, LSA_OBJECT_ATTRIBUTES and *PLSA_OBJECT_ATTRIBUTES definitions
- Add SID_NAME_USE enum
- Group related definitions

svn path=/branches/header-work/; revision=45898
2010-03-05 22:36:10 +00:00
Amine Khaldi
142386dd70 - Move MMFLUSH_TYPE enum from winddk.h to ntifs.h
- Remove redundant definitions from winddk.h : ObInsertObject, ObMakeTemporaryObject, ObOpenObjectByPointer, ObQueryObjectAuditingByHandle, ZwDeviceIoControlFile and ZwWaitForSingleObject
- ObInsertObject : AdditionalReferences -> ObjectPointerBias and ReferencedObject -> NewObject

Happy birthday Andy ! :)

svn path=/branches/header-work/; revision=45897
2010-03-05 21:51:34 +00:00
Amine Khaldi
3dab427010 HalFreeCommonBuffer and HalReadDmaCounter :
- Move them from winddk.h to wdm.h and make them inline functions
- NTHALAPI -> FORCEINLINE
- PADAPTER_OBJECT  AdapterObject -> PDMA_ADAPTER DmaAdapter

svn path=/branches/header-work/; revision=45896
2010-03-05 21:03:42 +00:00
Amine Khaldi
76bb478173 HalAllocateCommonBuffer :
- Move it from winddk.h to wdm.h and make it an inline function
- NTHALAPI -> FORCEINLINE
- PADAPTER_OBJECT  AdapterObject -> PDMA_ADAPTER DmaAdapter

svn path=/branches/header-work/; revision=45895
2010-03-05 20:57:21 +00:00
Amine Khaldi
b7de91f3bf - Move more stuff to wdm.h
- Add NTAPI back to some Io* definitions
- Remove some redundant Io* definitions

svn path=/branches/header-work/; revision=45894
2010-03-05 20:40:37 +00:00
Sylvain Petreolle
e9231d6824 Obvious one, add back framebuff as well.
svn path=/trunk/; revision=45893
2010-03-05 20:37:34 +00:00
Sylvain Petreolle
de3f446023 Add back vgaddi to the build.
svn path=/trunk/; revision=45892
2010-03-05 20:12:37 +00:00
Timo Kreuzer
0c0b65082e Attempt to fix build of bootcd, by adding back vga and vbe miniport drivers.
svn path=/trunk/; revision=45891
2010-03-05 19:57:53 +00:00
Amine Khaldi
f7910da58e - Move more stuff to wdm.h
- DbgPrint(Ex) : PCCH  Format -> PCSTR  Format
- Add NTSYSAPI to vDbgPrintEx(WithPrefix)
- DbgPrintReturnControlC and Dbg{Set,Query}DebugFilterState : NTKERNELAPI -> NTSYSAPI
- Add vKdPrintExWithPrefix definition
- Improve the conditions around KdDebuggerEnabled and KdDebuggerNotPresent definitions

svn path=/branches/header-work/; revision=45890
2010-03-05 19:56:44 +00:00
Christoph von Wittich
6063b53ab2 [KERNEL32_WINETEST]
sync kernel32_winetest to wine 1.1.39

svn path=/trunk/; revision=45889
2010-03-05 19:01:21 +00:00
Amine Khaldi
775b7007f8 - Move more stuff to wdm.h
- Improve more Po* and Zw* definitions

svn path=/branches/header-work/; revision=45888
2010-03-05 18:56:48 +00:00
Christoph von Wittich
4731484299 [RICHED32_WINETEST]
sync riched32_winetest to wine 1.1.39

svn path=/trunk/; revision=45887
2010-03-05 18:50:02 +00:00
Christoph von Wittich
b13dd36a83 [RICHED20_WINETEST]
sync riched20_winetest to wine 1.1.39

svn path=/trunk/; revision=45886
2010-03-05 18:49:06 +00:00
Christoph von Wittich
38a74f7e1e [URLMON_WINETEST]
sync urlmon_winetest to wine 1.1.39

svn path=/trunk/; revision=45885
2010-03-05 18:47:06 +00:00
Christoph von Wittich
5df3fe3f82 add dsound_winetest to build
svn path=/trunk/; revision=45884
2010-03-05 18:45:24 +00:00
Christoph von Wittich
71ca03ec6a [DSOUND_WINETEST]
sync dsound_winetest to wine 1.1.39

svn path=/trunk/; revision=45883
2010-03-05 18:44:59 +00:00
Christoph von Wittich
257289fd89 [MAPI32_WINETEST]
sync mapi32_winetest to wine 1.1.39

svn path=/trunk/; revision=45882
2010-03-05 18:41:30 +00:00
Christoph von Wittich
7249fc91c0 [MAPI32]
sync mapi32 to wine 1.1.39

svn path=/trunk/; revision=45881
2010-03-05 18:40:20 +00:00
Christoph von Wittich
1a12523fbe [INETMIB1]
sync inetmib1 to wine 1.1.39

svn path=/trunk/; revision=45880
2010-03-05 18:34:19 +00:00
Christoph von Wittich
ddc822b8bb [INETCOMM]
sync inetcomm to wine 1.1.39

svn path=/trunk/; revision=45879
2010-03-05 18:32:19 +00:00
Christoph von Wittich
a5b6995391 [FUSION]
sync fusion to wine 1.1.39

svn path=/trunk/; revision=45878
2010-03-05 18:30:07 +00:00
Amine Khaldi
d1a7b6136c - Move more stuff to wdm.h
- Improve more Ps* and Se* definitions

svn path=/branches/header-work/; revision=45877
2010-03-05 18:20:08 +00:00
Amine Khaldi
a8a908e214 - Move more stuff to wdm.h
- Improve more Ob* definitions

svn path=/branches/header-work/; revision=45876
2010-03-05 18:06:58 +00:00
Amine Khaldi
ce32e52bfc - Move more stuff to wdm.h
- Improve more Mm* definitions

svn path=/branches/header-work/; revision=45875
2010-03-05 17:41:41 +00:00
evb
d1efdcf9df - New Framebuffer (Linear) Display Driver to support new unified VGA/VBE miniport. Based on NT4 DDK Sample, with modifications by me (marked with // eVb) to support new functionality needed for 2003-era driver.
- Also used Virtual Box Display Driver as sample, which is based on "GPL" Windows 2003 DDK sample driver. Could not use 2003 DDK sample directly because of licensing issues, and feel unsafe about VirtualBox "GPL" driver that says "PATENTED AND ONLY FOR USE IN MICROSOFT PRODUCTS".
- Note that old driver was based off DDK sample too, but with variables renamed (some comments identical!) and code reformatted, then marked as "GPL". This is not very good way to share/use code... one day someone can teach you lesson.


svn path=/trunk/; revision=45874
2010-03-05 17:29:51 +00:00
evb
5ba4b4bbeb - Add new unified VGA/VBE miniport driver. Based on NT4 DDK Cirrus Miniport Driver Sample with my modifications (marked with // eVb) to change Cirrus parts to VGA parts if needed. Also add VBE suppor which is not in Cirrus driver, but exists in Windows VGA miniport.
- Work-in-progress, can boot to GUI with VMWare, but banked modes not yet supported, no VDM, no Mode-X, etc...
- Thanks to sir_richard for help with headers, comments and other English stuff.
- Driver is only built, not yet used.
- NOTE: Some parts of BootVid seem to use functions copied from this sample (VgaInterpretCmdStream) but under "GPL", and also buggy (Chain4 Mode test will not work on most cards and VgaIsPresent == FALSE). Someone should fix.

svn path=/trunk/; revision=45873
2010-03-05 17:22:18 +00:00
Cameron Gutman
4834e2c3d5 - Detach the device object from the stack before deleting it
- Add a hack that selects the correct display number to use which allows other drivers to take over if one driver's HwFindAdapter fails
 - This allows ROS to work on non-VESA 2.0 compliant video cards if /NOVESA is specified
 - NOTE: VGA seems to have regressed quite a bit. The mouse doesn't show up but still works.

svn path=/trunk/; revision=45872
2010-03-05 16:40:40 +00:00
Amine Khaldi
42fde03fe1 - Move more stuff to wdm.h
- Improve more Ke* definitions

svn path=/branches/header-work/; revision=45871
2010-03-05 16:18:23 +00:00
Amine Khaldi
2c852bf801 More work on USB related definitions
svn path=/branches/header-work/; revision=45870
2010-03-05 13:32:58 +00:00
Aleksey Bragin
eb6bae0c08 [UNIATA]
- Really perform a controller hard-reset if it can't recover from a soft reset. Fixes VirtualBox one IDE controller configuration (master - IDE, slave - ATAPI).
See issue #5145 for more details.

svn path=/trunk/; revision=45869
2010-03-05 13:23:43 +00:00
Aleksey Bragin
ebfc115694 [UNIATA]
- Reduce pause between SelectDrive and ATAPI_RESET from 10000 to 500 (as it is in the old ATAPI driver).

svn path=/trunk/; revision=45868
2010-03-05 13:16:52 +00:00
Amine Khaldi
e488e6e43c More work on USB related definitions
svn path=/branches/header-work/; revision=45867
2010-03-05 12:25:38 +00:00
Amine Khaldi
78a63975f8 More work on USB related definitions
svn path=/branches/header-work/; revision=45866
2010-03-05 12:07:35 +00:00
Amine Khaldi
749428da20 More work on USB related definitions
svn path=/branches/header-work/; revision=45865
2010-03-05 11:58:34 +00:00
Amine Khaldi
73cc29ce32 More work on USB related definitions
svn path=/branches/header-work/; revision=45864
2010-03-05 11:44:11 +00:00
Amine Khaldi
97e7fd6cb6 More work on USB related definitions
svn path=/branches/header-work/; revision=45863
2010-03-05 11:12:29 +00:00
Johannes Anderwald
309fb1c02a [PORTCLS]
- Implement a function to retrieve the current acquired mapping tag range of the miniport driver
- Call RevokeMappings when audio pin is stopped

svn path=/trunk/; revision=45862
2010-03-05 10:11:54 +00:00
Amine Khaldi
a7ffadade2 More work on USB related definitions
svn path=/branches/header-work/; revision=45861
2010-03-05 09:56:28 +00:00
Johannes Anderwald
95f5adb673 [PORTCLS]
- More cleanup
- Only copy audio bytes to common buffer when the audio pin is in the running state
- Only notify miniport when the audio pin is in the running state

svn path=/trunk/; revision=45860
2010-03-05 09:43:42 +00:00
Johannes Anderwald
e3fb834a19 [PORTCLS]
- Remove dead code
- Disable last mapping failed status when a new mapping is inserted
- Notify IMiniportWavePciStream::MappingAvailable when a new mapping has arrived and the last one has failed
- Return STATUS_NOT_FOUND in IPortWavePciStream::GetMapping when no mapping is available
- Don't stop stream when no mapping is currently available 

svn path=/trunk/; revision=45859
2010-03-05 09:09:14 +00:00
Timo Kreuzer
c76dfd5cb8 - Convert the members of PCI_COMMON_HEADER into a #define to avoid inheritance on C++, which would render the type a non-POD, causing compilation errors.
- IoInitializeDpcRequest expects PIO_DPC_ROUTINE as 2nd parameter, fix callers.
- While FILE_CHARACTERISTIC_PNP_DEVICE is defined in the DDK/WDK, _SYSTEM_INFORMATION_CLASS is not, fix include guards in ntddk_ex.h
- add InterlockedBitTestAndSet64 and InterlockedBitTestAndReset64 for amd64
- Fix definition of NLS_MB_CODE_PAGE_TAG for gcc
- Fix parameters of DMA inline functions
- remove duplicate IoAllocateAdapterChannel
- Everything compiles again -> Amine, your turn :)

svn path=/branches/header-work/; revision=45858
2010-03-05 04:03:34 +00:00