Commit graph

43088 commits

Author SHA1 Message Date
Amine Khaldi 693a016f71 [PSDK]
- Fix IOCTL_STORAGE_* redefinitions.

svn path=/trunk/; revision=48112
2010-07-19 01:06:32 +00:00
Amine Khaldi 72268d0e17 [CRT]
- Fix the double use of _CRTIMP.

svn path=/trunk/; revision=48111
2010-07-19 00:25:54 +00:00
Amine Khaldi 853b658b58 - Fix _InterlockedExchangeAdd16, _InterlockedCompareExchangePointer and _InterlockedExchangePointer intrinsics.
svn path=/trunk/; revision=48110
2010-07-18 22:43:04 +00:00
Amine Khaldi 5c0e7d3b75 Merge r45430 from amd64-bringup : Add #pragma intrinsic for msvc intrinsics.
svn path=/trunk/; revision=48109
2010-07-18 21:55:54 +00:00
Eric Kohl 5ef81f0fae [ADVAPI32/LSASRV]
- LookupAccountNameW: Call LsaLookupNames instead of returning a dummy name.
- Implement LsaLookupNames. Calls LsarLookupNames.
- LsarLookupNames: return dummy names.

svn path=/trunk/; revision=48108
2010-07-18 20:34:34 +00:00
evb 8091e98e96 Can't sleep so write more source codes! add scan bus functions to get power caps (PciGetEnhancedCapabilities) and AGP caps, use PciReadDeviceCapability util function, now can get wake levels, PCI power state plus target AGP ID. Now can find PCI Device that can't sleep neither! Ha-ha!
Support PCI_HACK_NO_PM_CAPS, PCI_HACK_PRESERVE_COMMAND, PCI_HACK_DONT_DISABLE_DECOES
Add scan bus function to set power for PCI, for now to power up (PciSetPowerManagedDevicePowerState), with support for device that is critical/broken (PciCanDisableDecodes)
Check spec-correct with PciStallForPowerChange after define PciPowerDelayTable for D0<->D3 crossmatrix spec timings (add PciReadDeviceConfig for support)
If bad spec timing use PCI verifier support (PciVerifierRetrieveFailureData) + STATUS_DEVICE_PROTOCOL_ERROR
Add PciVerifierFailureTable with all failure type
Almost the time for resource discovery of BARs!


svn path=/trunk/; revision=48107
2010-07-18 18:58:33 +00:00
Jérôme Gardou a6017cd9b2 [W32KNAPI] - More tests to NtUserGetIconInfo
svn path=/trunk/; revision=48106
2010-07-18 16:57:32 +00:00
Jérôme Gardou 2946af0b8e Fix my grotesque mistake of r48104
svn path=/trunk/; revision=48105
2010-07-18 16:45:05 +00:00
Jérôme Gardou 0f1aba925e [W32KNAPI] - Add some more NtUserGetIconInfo tests
svn path=/trunk/; revision=48104
2010-07-18 16:40:15 +00:00
Jérôme Gardou ec5e0ea56a [W32KNAPI] - Add some more NtUserGetIconInfo tests
svn path=/trunk/; revision=48103
2010-07-18 16:34:14 +00:00
Amine Khaldi 715a75ef6b [PSDK]
- Fix a couple of FIXMEs : UNALIGNED and RESTRICTED_POINTER definitions

svn path=/trunk/; revision=48102
2010-07-17 21:19:38 +00:00
Eric Kohl faf61e4427 [LSASRV]
LsarLookupSids: Return ReferencedDomains information.

svn path=/trunk/; revision=48101
2010-07-17 18:15:34 +00:00
evb 54dcdffd9e More PciScanBus codes now to check saved PCI BIOS config header saved in registry (PciGetBiosConfig, PciSaveBiosConfig) and support load save compare (PcipIsSameDevice) if change in interrupt line
Also for interrupt line use HAL to get parent bus IRQ# if device connected (PciGetAdjustedInterruptLine)
For PCI debug HW PciIsDeviceOnDebugPath to detect, but have not real machine with this kind of device to test
Support PCI_HACK_NO_SUBSYSTEM and PCI_HACK_NO_SUBSYSTEM/REVISION_AFTER_D3 for when compareing
New config function required PciWriteDeviceConfig to update IRQ line from BIOS registry data
Save initial, current Command enables to PDO extension, interrupt data too

svn path=/trunk/; revision=48100
2010-07-17 16:53:18 +00:00
evb 693551c36a Implement PciPdoCreate and add all PDO IRP stub functions, set dispatch table for major/minor command, add PciIrpInvalidDeviceRequest
Fix bug in PciFindPdoByFunction should check device slot info too
Add more enumeration codes in PciScanBus to create PDO
PCI_HACK_FAKE_CLASS_CODE support
Build PDO extension, set ready for PnP manger, now 41 QDR returned
Add PCI/CardBus Bridge to list
Detect bridge/IDE controller with no power down support, hack for Intel 82375 PCI to EISA bridge for Alpha thanks to sir_richard
QUERY_ID is sent to PDOs now!

svn path=/trunk/; revision=48099
2010-07-17 15:59:09 +00:00
evb 7ebde38343 More implement of PciScanBus, now read hack flags from table (PciGetHAckFlags), and check for critical device (PciIsCriticalDeviceClass) and VGA device on PCI bridge
Do check for skipping some function (double decker ghost, Intel Alder SMP Pentium Pro machine, hacl flag, more), PciSkipThisfunction
Do check for PDO already exist for function (PciFindPdoByFunction)
Finish impement PciFindParentPciFdoExtension

svn path=/trunk/; revision=48098
2010-07-17 15:09:19 +00:00
Amine Khaldi 11006f580c [PSDK]
- Add missing netevent.h definitions.

svn path=/trunk/; revision=48097
2010-07-17 13:13:18 +00:00
Amine Khaldi 0fc10b9203 [DDK]
- Move netevent.h to PSDK.

svn path=/trunk/; revision=48096
2010-07-17 10:09:09 +00:00
Amine Khaldi 76fab2e228 [DDK]
- Move ntddndis.h to PSDK.

svn path=/trunk/; revision=48095
2010-07-17 09:42:56 +00:00
Amine Khaldi 8cf2899a61 [PSDK]
- Fix a couple of typos

svn path=/trunk/; revision=48094
2010-07-17 09:01:00 +00:00
Eric Kohl dfa8e56472 [LSASRV]
Use a single table for mapping privilege names to values and values to names.

svn path=/trunk/; revision=48093
2010-07-17 07:37:47 +00:00
Timo Kreuzer ac595f39c9 [KERNEL32]
DWORD -> SIZE_T in ReadProcessMemory

svn path=/trunk/; revision=48092
2010-07-17 05:18:31 +00:00
evb f43651e238 Add config interface start (PciReadWriteConfigSpace, PciReadSlotConfig)
Add PDO_EXTENSION structure and PCI_FUNCTION_RESOURCES, now delete #if0 in old code since PDO_EXTENSION is now exist defintion
Add ID Class/Subclass to description functions (PciGetDeviceDescriptionMessage, PciGetDescriptionMessage), use pciclass.mc from sir_richard
New debug: PciDebugDumpCommonConfig
Implement IRP_MN_QUERY_DEVICE_RELATIONS with PciFdoIrpQueryDeviceRelations and PciQueryDeviceRelations
Begin PciScanBus, now just dump all found device with no more work (0 QDR return)

svn path=/trunk/; revision=48091
2010-07-17 01:31:26 +00:00
Timo Kreuzer 4234345b03 Fix CryptReleaseContext parameter, wine uses an outdated version (< NTDDI_WINXP)
svn path=/trunk/; revision=48090
2010-07-16 21:30:29 +00:00
Timo Kreuzer 623cc2e0dd [WS2_32]
DWORD -> DWORD_PTR

svn path=/trunk/; revision=48089
2010-07-16 20:24:32 +00:00
Timo Kreuzer 9908019e62 [VIDEOPRT]
Merge r40926 from amd64 branch:
return ERROR_INVALID_FUNCTION on amd64, not ERROR_INVALID_ACCESS from VideoPortEn/DisableInterrupt. Fixes compilation of videoprt for amd64.

svn path=/trunk/; revision=48088
2010-07-16 19:20:49 +00:00
Timo Kreuzer 677bd3c418 [NTOSKRNL]
- #if out RtlpCaptureStackLimits on amd64 as well

svn path=/trunk/; revision=48087
2010-07-16 17:53:00 +00:00
Timo Kreuzer d2c2d5b635 [NDK]
Merge r44053 from amd64 branch:
- Add KEXCEPTION_FRAME

svn path=/trunk/; revision=48086
2010-07-16 17:20:46 +00:00
Timo Kreuzer 3c70caa7e3 [NTOSKRNL]
Add MM_HIGHEST_VAD_ADDRESS for amd64

svn path=/trunk/; revision=48085
2010-07-16 17:14:53 +00:00
Timo Kreuzer ef44812048 [NTOSKRNL]
#if out another broken C_ASSERT on amd64

svn path=/trunk/; revision=48084
2010-07-16 16:30:05 +00:00
Timo Kreuzer 36fa896cff [NTOSKRNL]
Comment out a broken C_ASSERT on amd64 to make it compile.

svn path=/trunk/; revision=48083
2010-07-16 15:11:44 +00:00
Timo Kreuzer 2faf924bad [CRT]
Move #include <precomp.h> to the top, as precompiled headers must be the first thing that is included or it won't take advantage of being precompiled

svn path=/trunk/; revision=48082
2010-07-16 15:08:03 +00:00
Timo Kreuzer f01fb95ae9 [NTOSKRNL]
ULONG -> SIZE_T

svn path=/trunk/; revision=48081
2010-07-16 14:56:36 +00:00
Gabriel Ilardi 386c15f491 Fix build, sorry. Thanks Timo.
svn path=/trunk/; revision=48080
2010-07-16 13:37:29 +00:00
Timo Kreuzer e6d5126886 Merge r44143 from amd64 branch
Initialize MmDebugPte from MiDebugMapping variable instead of using MiAddressToPte for a constant initializer. This way the page can be set dynamically. Use MmDebugPte to determine if ready for mapping physical pages.

svn path=/trunk/; revision=48079
2010-07-16 13:23:43 +00:00
Gabriel Ilardi f9dc8f0766 [CRT]
Add a debug print to help bugs like 5486.

svn path=/trunk/; revision=48078
2010-07-16 13:00:02 +00:00
Daniel Reimer d17757a733 [PATCH] user32: DrawText: CJK and Thai line-wrapping
[PATCH] appwiz: check if path is valid
Both by Katayama Hirofumi

svn path=/trunk/; revision=48077
2010-07-16 12:52:37 +00:00
Timo Kreuzer 3421c58c28 [NTOSKRNL]
ULONG -> ULONG_PTR

svn path=/trunk/; revision=48076
2010-07-16 12:27:40 +00:00
evb 2261af5265 IRP_MN_START_DEVICE implement for ROOT FDO (PciFdoStartDevice)
PciInitializeArbiterRanges implement to scan arbiter   not yet construct since Arb library missing
Add PCI state machine (PciBeginStateTransition, PciCancelStateTransition, PciCommitStateTransition) andtransition array (PnpStateTransitionArray) to check if valid
Now IRP_MN_QUERY_DEVICE_RELATIONS sent to ROOT FDO means time to enumerate bus!

svn path=/trunk/; revision=48075
2010-07-16 01:14:52 +00:00
evb add164dcfa Fix for code to handle IRP dispatching when unrecognized IRP (Thanks you sir_richard)
Add FDO IRP_MN_QUERY_INTERFACE support (it calls PciQueryInterface)
Add all PCI interface descriptor: PciLocationInterface (GUID_PNP_LOCATION_INTERFACE), PciPmeInterface (GUID_PCI_PME_INTERFACE), PciCardbusPrivateInterface (GUID_PCI_CARDBUS_INTERFACE_PRIVATE), PciLegacyDeviceDetectionInterface (GUID_LEGACY_DEVICE_DETECTION_STANDARD), AgpTargetInterface (GUID_AGP_TARGET_BUS_INTERFACE_STANDARD), PciRoutingInterface (GUID_INT_ROUTE_INTERFACE_STANDARD), BusHandlerInterface (GUID_BUS_INTERFACE_STANDARD) and stub initializer and constructor.
Add missing devhere.c interface file
Add all PCI arbiter descritptor: ArbiterInterfaceBusNumber, ArbiterInterfaceMemory, ArbiterInterfaceIo. Write constructor stub but not handled ArbitersInitialized == TRUE
Also add last-resort PCI interface: TranslatorInterfaceInterrupt (GUID_TRANSLATOR_INTERFACE_STANDARD) and part implement tranirq_Constructor
Add PciQueryInterface to find correct FDO/PDO/ROOT interface for a request and call interface constructor
Fix interface signatures, fix interface constructor type and PCI_INTERFACE, add interface flags (Thanks sir_richard)
Fix Aribtriter code (Thanks sir_richard)
Now another 1200 codes added, soon time for enumeration code!

svn path=/trunk/; revision=48074
2010-07-16 00:39:54 +00:00
Timo Kreuzer d80d59dbff Merge 36852, 37322, 37333, 37334, 43428, 43451, 44259, 46404 from amd64 branch.
- Multiple ULONG/ULONG_PTR/SIZE_T issues
- Use SLIST_ENTRY instead of SINGLE_LIST_ENTRY with InterlockedPushEntrySList
- Use %p to print pointer sized values


svn path=/trunk/; revision=48073
2010-07-16 00:34:26 +00:00
Timo Kreuzer 8e13b57dcf Add MI_MIN_SECONDARY_COLORS, MI_SECONDARY_COLORS and MI_MAX_SECONDARY_COLORS for amd64
svn path=/trunk/; revision=48072
2010-07-16 00:03:03 +00:00
Timo Kreuzer 72053553f4 [NTOSKRNL]
Some ULONG vs SIZE_T fixes

svn path=/trunk/; revision=48071
2010-07-15 23:56:53 +00:00
Timo Kreuzer 820d3edcb0 Merge 44257 from amd64 branch:
PFN_TYPE -> PFN_NUMBER

svn path=/trunk/; revision=48070
2010-07-15 22:50:12 +00:00
Timo Kreuzer 70103e0a78 Remove svn:mergeinfo property
svn path=/trunk/; revision=48069
2010-07-15 22:43:13 +00:00
Amine Khaldi b22a3883dc [PSDK]
- Fix WS2TCPIP_INLINE : extern inline -> static inline

svn path=/trunk/; revision=48067
2010-07-15 19:34:21 +00:00
Jérôme Gardou 9889c134f2 SVN wins again... What's that?
Revert everything that's not related to 48064 of 48065.

svn path=/trunk/; revision=48066
2010-07-15 19:29:45 +00:00
Jérôme Gardou af95756f02 Merge 48064 from yarotows
This had nothing to do in yarotows in the first place

svn path=/trunk/; revision=48065
2010-07-15 19:19:48 +00:00
Timo Kreuzer 060168268f [NTOSKRNL]
Fix some amd64 KGDT constant names

svn path=/trunk/; revision=48063
2010-07-15 11:24:17 +00:00
Timo Kreuzer 11d95dfa7e [NTOSKNL]
#undef IoAllocateAdapterChannel before implementing it

svn path=/trunk/; revision=48062
2010-07-15 11:20:22 +00:00
Gabriel Ilardi 87bf4616fb [shellapi.h] Fix build copy pasta spotted by encoded
svn path=/trunk/; revision=48061
2010-07-15 07:16:08 +00:00