Commit graph

50525 commits

Author SHA1 Message Date
Johannes Anderwald 36bbd6f1a1 [USBUHCI]
- Fix initialization bugs in real hardware

svn path=/trunk/; revision=55830
2012-02-23 03:22:57 +00:00
Johannes Anderwald 03ac0279e8 [HIDCLASS] [USBUHCI]
- Silence traces

svn path=/trunk/; revision=55829
2012-02-23 01:51:55 +00:00
Johannes Anderwald 3d22956ff8 [USBUHCI]
- OHCI -> UHCI
- Implement timer routine which checks for new detected devices. In case a port change is detected, the sce callback routine is invoked

svn path=/trunk/; revision=55828
2012-02-23 01:27:19 +00:00
Cameron Gutman a982c0c4c9 [NTOSKRNL]
- Reenable and fix the correct reset code
[HIDCLASS]
- Disable removal of PDOs due to IRP cancellation issues
[USBEHCI][USBOHCI][USBUHCI]
- Disable removal of FDOs due to reinitialization issues

svn path=/trunk/; revision=55827
2012-02-23 01:23:30 +00:00
Cameron Gutman 8afc22a95d [NTOSKRNL]
- Fix device node flag corruption

svn path=/trunk/; revision=55826
2012-02-23 00:41:50 +00:00
Johannes Anderwald fc053ddc31 [USBCCGP]
- Print interface details when dumping the function descriptor
- Fix bug USBCCG_AppendInterfaceNumber, which is not yet used

svn path=/trunk/; revision=55825
2012-02-23 00:37:41 +00:00
Johannes Anderwald 5f9384fd6f [HIDPARSE]
- Fix several wrong translated scan codes

svn path=/trunk/; revision=55824
2012-02-23 00:35:46 +00:00
Johannes Anderwald 488d2d353b [HIDCLASS]
- Silence traces
- Signal event when last pending transfer is done
- Reject new transfers when stop is in progress

svn path=/trunk/; revision=55823
2012-02-23 00:34:36 +00:00
Cameron Gutman e8ad1a668c [USBUHCI]
- Add rbuild file and enable build

svn path=/trunk/; revision=55821
2012-02-22 23:35:11 +00:00
Johannes Anderwald 4b02150831 [USBUHCI]
- Silence traces
- Implement abort pipe
- Implement support for interrupt transfers

svn path=/trunk/; revision=55820
2012-02-22 23:24:53 +00:00
Cameron Gutman 86ebeb35cc [NTOSKRNL]
- Add back the reset hack of doom to circumvent broken removal code in just about every driver

svn path=/trunk/; revision=55819
2012-02-22 23:08:52 +00:00
Johannes Anderwald eadaa2c3de [USBCCGP]
- Fix retrieving string descriptors

svn path=/trunk/; revision=55818
2012-02-22 21:26:36 +00:00
Sylvain Petreolle 17f35a7781 [MEDIA/INF]
Fix line endings.

svn path=/trunk/; revision=55817
2012-02-22 21:25:47 +00:00
Stefan Ginsberg 7d0b41713a Missed this one...
svn path=/trunk/; revision=55816
2012-02-22 21:22:13 +00:00
Stefan Ginsberg 4cb002ee80 [NTOSKRNL]
Some misc fixes to make kernel compile warning-free with /W3. Also fix a bug that completely broke the ProcessWx86Information case for NtQueryInformationProcess by missing to reference/dereference and acquiring the specified process' EPROCESS.

svn path=/trunk/; revision=55815
2012-02-22 21:18:56 +00:00
Thomas Faber 26a8d7fa89 [USER32_WINETEST]
- Do not depend on argument evaluation order and thus uninitialized values. Sent and applied upstream. Dedicated to Stefan

svn path=/trunk/; revision=55814
2012-02-22 21:12:59 +00:00
Stefan Ginsberg 0761804e03 Some misc fixes to Prefast.
[DDK]
- ndis.h Don't use local variables with the same name as function parameters.
[PSDK]
- access.idl Remove incorrect annotation
- usbioctl.h Not really a Prefast issue, but switch to use ANYSIZE_ARRAY like we do everywhere else.
- winddi.h EngQueryDeviceAttribute's 6th parameter is IN, not OUT
- winefs.h Fix FileEncryptionStatus to use annotations. Its definition in winbase.h already has them and this caused a conflict.
[WINE]
- debug.h Remove unnecessary check (in ReactOS) that made Prefast sad.
- test.h Disable a false-positive C28182.

svn path=/trunk/; revision=55813
2012-02-22 20:58:20 +00:00
Johannes Anderwald 946cac440c [USBEHCI] [USBOHCI] [USBUHCI]
- Fix retrieving configuration index for real
- Thanks to Thomas Faber

svn path=/trunk/; revision=55812
2012-02-22 19:25:54 +00:00
Johannes Anderwald eb1402eb83 [USBOHCI] [USBEHCI] [USBUHCI]
- Don't assume iConfiguration value of configuration descriptor is zero based aligned
- Fixes bugcheck in VmWare

svn path=/trunk/; revision=55811
2012-02-22 18:57:49 +00:00
Johannes Anderwald 4877f634cc [USBUHCI]
- Detect the size of the configuration descriptor before obtaining the full configuration descriptor
- Fix integer overflow in BuildTransferDescriptorChain

svn path=/trunk/; revision=55810
2012-02-22 18:34:39 +00:00
Johannes Anderwald 6528183f15 [USBUHCI]
- Queue dpc when the interrupt indicates completion of a transfer or an error interrupt
- Implement checking if a queue head is complete
- Free queue heads and associated endpoint descriptors

svn path=/trunk/; revision=55809
2012-02-22 17:24:43 +00:00
Stefan Ginsberg e9cca27577 [DDK]
- Fix a whole fat bunch of Prefast warnings by making the IoCsqxxx declarations in csq.h match the ones in wdm.h.

svn path=/trunk/; revision=55808
2012-02-22 17:00:06 +00:00
Sylvain Petreolle d97f0de65f [CABMAN]
Enable debug in order to figure the testbot problems.

svn path=/trunk/; revision=55807
2012-02-22 15:30:48 +00:00
Johannes Anderwald a0375291e4 [USBUHCI]
- Write the configure bit
- Clear connection change and port suspend bit when set after controller initialization
- Queue work item after the reset port is complete
- Disable port before reseting it
- Wait time for reset is 50ms, not 25ms
- Clear reset change bit when clearing reset feature
- Implement enabling port feature


svn path=/trunk/; revision=55806
2012-02-22 14:11:23 +00:00
Thomas Faber 6d5fb45681 [RTL]
- Fix use of uninitialized variables in failure case of RtlSetCurrentDirectory_U. CID 15339, 15340
- Handles should be NULL, not 0

svn path=/trunk/; revision=55805
2012-02-22 12:02:59 +00:00
Thomas Faber 2541f45e51 [SMSS2]
- Fix an uninitialized variable usage, CID 15345
- Fix an incorrect sizeof usage, CID 15317

svn path=/trunk/; revision=55804
2012-02-22 11:31:04 +00:00
Thomas Faber 0348878822 [SMSS2]
- When deleting an old page file, take the newly freed space into account
- Keep at least 64 MB of disk free instead of 32 so that 2nd stage can succeed with a small disk
- Miscellaneous fixes and simplifications in the page file code

svn path=/trunk/; revision=55803
2012-02-22 09:07:03 +00:00
Alex Ionescu af5c7e9398 [KERNEL32]: Rewrite the File Change Notification APIs since they were pretty much wrong (not surprising as we don't implement the functionality in the kernel/filesystems).
[KERNEL32]: Enable support for asynchronous I/O callbacks with SxS/Fusion activation context support. Right now only added to the file Change notification APIs, but ReadFileEx and WriteFileEx should use them too.

svn path=/trunk/; revision=55801
2012-02-21 23:27:45 +00:00
Jérôme Gardou cf3fb86313 [CRT]
- fix array size to match what implementation expects.
Found by Thomas Faber. See issue 6903 for details.

svn path=/trunk/; revision=55800
2012-02-21 23:19:47 +00:00
Johannes Anderwald b517b30866 [USBUHCI]
- Sync shared parts with usbohci driver
- Fixes memory bug, includes data toggle support, device cleanup etc...

svn path=/trunk/; revision=55799
2012-02-21 23:18:46 +00:00
Giannis Adamopoulos d52969aa28 [win32k]
- Properly destroy the THREADINFO if we fail to create it. We don't leak the THREADINFO no in case of failure. It should also fix random assertion failure when running user32:desktop tests

svn path=/trunk/; revision=55798
2012-02-21 23:07:30 +00:00
Jérôme Gardou 2c48227400 [CRT]
- C standard for free says "if pointer is NULL, no action is taken".
 - MSDN for HeapFree says "if pointer is NULL, behavior is undefined".
Thanks to Thomas for teaching wine guys how to read.

svn path=/trunk/; revision=55797
2012-02-21 22:08:24 +00:00
Jérôme Gardou def6dd986d revert r55794, the problem is elsewhere
svn path=/trunk/; revision=55796
2012-02-21 21:58:42 +00:00
Alex Ionescu 7c480c24b8 [KERNEL32]: Lock/UnlockFile APIs should not allow console handles. Also remove superflous parameter check.
[KERNEL32]: Lock/UnlockFile APIs should handle STATUS_PENDING/ERROR_IO_PENDING situations instead of always assuming the Nt functions return synchronously.
[KERNEL32]: Other stylying changes + commenting/annotations.

svn path=/trunk/; revision=55795
2012-02-21 21:38:08 +00:00
Jérôme Gardou 1c15cfffb4 [CRT]
- Check for NULL before freeing

svn path=/trunk/; revision=55794
2012-02-21 21:36:01 +00:00
Alex Ionescu d363c616d6 [KERNEL32]: Format, comment, annotate, cleanup the I/O completion APIs.
svn path=/trunk/; revision=55793
2012-02-21 21:31:01 +00:00
Cameron Gutman b43c3d21c0 [USBOHCI]
- Fix indication of USB_PORT_STATUS_RESET changes
- Fixes premature completion of resets causing assertions to fail

svn path=/trunk/; revision=55792
2012-02-21 20:32:48 +00:00
Alex Ionescu 0bbab987c0 [KERNEL32]: Use macro for CreateMailSlotA->CreateMailSlotW.
svn path=/trunk/; revision=55791
2012-02-21 19:19:44 +00:00
Alex Ionescu 8c1ab63ced [KERNEL32]: CreateHardLinkW was not setting last error on failure.
[KERNEL32]: Cleanup/format/comment/annotate CreateHardLink*.

svn path=/trunk/; revision=55790
2012-02-21 19:18:57 +00:00
Johannes Anderwald 49103eac64 [USBUHCI]
- UHCI has 2 ports

svn path=/trunk/; revision=55789
2012-02-21 18:53:04 +00:00
Johannes Anderwald 1511120650 [USBUHCI]
- Implement starting the controller

svn path=/trunk/; revision=55788
2012-02-21 18:33:37 +00:00
Johannes Anderwald d8b2ccec60 [USBUHCI]
- Implement function to retrieve queue head for the specified transfer type
- Pass device speed to IUSBRequest initialization routines
- Implementing inserting the new queue head into the required queue head 
- Implement support for control transfers, not yet used

svn path=/trunk/; revision=55787
2012-02-21 18:19:24 +00:00
Amine Khaldi a14929eb93 [LIBPNG]
* Sync up to 1.5.9.

svn path=/trunk/; revision=55786
2012-02-21 18:17:50 +00:00
Amine Khaldi 12f0f9cfd6 [CMAKE]
* Reorder the modules addresses based on their dependencies.

svn path=/trunk/; revision=55785
2012-02-21 18:01:08 +00:00
Jérôme Gardou e99ab8c0fc [WIN32K]
- allocate FAST_MUTEX objects from non paged pool.
This should ix a bunch of weird testbot failures.
Any suggestion on the TAG is welcome

svn path=/trunk/; revision=55784
2012-02-21 18:00:50 +00:00
Amine Khaldi 216a2fef8c [FTFD]
* Properly set the base address.

svn path=/trunk/; revision=55783
2012-02-21 18:00:08 +00:00
Jérôme Gardou 021494660d [CMAKE]
- fix copy-paste typo

svn path=/trunk/; revision=55782
2012-02-21 17:23:59 +00:00
Jérôme Gardou e391cda0b8 fix msvc build, try 2
svn path=/trunk/; revision=55781
2012-02-21 15:52:30 +00:00
Johannes Anderwald 1dce437b2b [USBUHCI]
- Start implementing UHCI controller

svn path=/trunk/; revision=55780
2012-02-21 15:49:08 +00:00
Jérôme Gardou ddc66b9898 fix build, sorry...
svn path=/trunk/; revision=55779
2012-02-21 15:17:33 +00:00