Commit graph

46689 commits

Author SHA1 Message Date
Michael Martin
f1ec4fbe16 [USBSTOR]
- USBSTOR_SendRequest: The buffer for read/write may not be NonPagedPool, which is documented as a requirement for using MmBuildMdlForNonPagedPool. Also locking the buffers pages is also not an option as the routine is called at DISPATCH_LEVEL.
It so happens that Irp->MdlAddress is valid for read/write operations. Use it instead of procedure above.
- Add a sanity check to make sure the Mdl does describe the transfer buffer.
Fixes IRQL_NOT_LESS_OR_EQUAL bugcheck in windows. These changes also may fixed writing to device.

svn path=/branches/usb-bringup/; revision=51752
2011-05-15 08:23:32 +00:00
Jérôme Gardou
9482663bde [CMAKE/ROSTESTS]
Addendum to 51749

svn path=/trunk/; revision=51750
2011-05-14 20:55:36 +00:00
Timo Kreuzer
e12ea18992 [NTOSKRNL]
Patch by Paolo Bonzini <bonzini [at] gnu [dot] org>
Fix implementation of ExInterlockedAddLargeStatistic
The old version wasn't really atomic.

See issue #6223 for more details.

svn path=/trunk/; revision=51748
2011-05-14 19:29:42 +00:00
Timo Kreuzer
c016e5d41e [CRT]
- Implement __chkstk_ms for x86 and amd64
- amd64 code is based on code by Kai Tietz and Richard Henderson
- x86 code is based on old __chkstk implementation and code by Kai Tietz and Richard Henderson
- Function is required by newer gcc versions

svn path=/trunk/; revision=51747
2011-05-14 19:12:09 +00:00
Matthias Kupfer
75b8d216e2 bring back progress bar for loading files
svn path=/trunk/; revision=51742
2011-05-14 18:32:59 +00:00
Johannes Anderwald
be12088a55 [USBSTOR]
- Start implementing queued srb handling
- Implement SRB_FUNCTION_RELEASE_QUEUE, SRB_FUNCTION_FLUSH, SRB_FUNCTION_FLUSH_QUEUE
- WIP, not yet working perfectly

svn path=/branches/usb-bringup/; revision=51739
2011-05-14 18:09:00 +00:00
Rafal Harabien
51edd28a7a - Fix build
svn path=/trunk/; revision=51738
2011-05-14 16:01:54 +00:00
Rafal Harabien
17dcf7d2e5 [UNIATA]
- Sync to 0.41b2
- Fixed bug with unnecessary call to AtapiEnableInterrupts() inside AtapiSendCommand() when DRQ is never asserted
- Added registry option AtapiSendDisableIntr to manage ATAPI command sending behavior. AFAIU, under VirtualBox it is unnecessary to disable interrupts around sending ATAPI commands.
- Implemented registry options for BUSY and DRQ timing adjustments.
- Added VirtualBox tuning option - VirtualBox value in registry. Sets timings and ATAPI (CD/DVD) related options to the most compatible values.
- Fixed bug with UDMA2 support on Intel ICH1/2/3/4/5 chips.
- Made some experimental changes in automatic slow-down algorithm. This code is rather old, but was not tested properly.
- Fixed bug with accessing SATA registers on Intel chips
- Many other fixes

svn path=/trunk/; revision=51736
2011-05-14 15:52:49 +00:00
Timo Kreuzer
ad38ca5072 [NETEVENT]
Forgot this change

svn path=/trunk/; revision=51735
2011-05-14 14:24:39 +00:00
Timo Kreuzer
4c1b4060da [NETEVENT]
Rename netevent.mc to neteventmsg.mc

svn path=/trunk/; revision=51734
2011-05-14 14:16:42 +00:00
Jérôme Gardou
34d5d94b0a [ROSTESTS/CMAKE]
- addendum to 51731

svn path=/trunk/; revision=51733
2011-05-14 14:03:44 +00:00
Timo Kreuzer
620385670c [DWMAPI]
add names to dwmapi.spec stubs

svn path=/trunk/; revision=51730
2011-05-14 13:43:58 +00:00
Timo Kreuzer
69667a5f9b [SHELL32]
Owen Rudge <orudge at codeweavers dot com>:
Implement SHGetImageList
9db87f13d3
Fixes explorer++ main window
patch provided by igorko

svn path=/trunk/; revision=51729
2011-05-14 12:57:52 +00:00
Timo Kreuzer
6e735202f2 [AVIFIL32]
Merge resources back into 1 file

svn path=/trunk/; revision=51728
2011-05-14 12:28:40 +00:00
Timo Kreuzer
eafcfd1c7e [PSDK]
- stireg.h, wsipv6ok.h: Add missing newline
- hlguids.h, shlguid.h: add missing guids for MSVC
- winbase.h: add some missing WINBASEAPI modifiers
- winnt.h: create more portable definitions of GetCurrentFiber, move BitScanForward and BitScanReverse defintions out of __GNUC__ block

svn path=/trunk/; revision=51727
2011-05-14 11:44:45 +00:00
Timo Kreuzer
a4a5b0c6d3 [LIBXML2]
Fix compilation with MSVC

svn path=/trunk/; revision=51726
2011-05-14 11:15:51 +00:00
Timo Kreuzer
a5c65c3e3e [NOTEPAD]
enable Japanese resource file

svn path=/trunk/; revision=51725
2011-05-14 11:12:19 +00:00
Timo Kreuzer
3dd6590770 [COMCTL32]
Fix compilation with MSVC

svn path=/trunk/; revision=51724
2011-05-14 10:59:35 +00:00
Timo Kreuzer
06e9b8f16c [USER32]
Convert all resources to utf-8

svn path=/trunk/; revision=51723
2011-05-14 09:32:07 +00:00
Timo Kreuzer
41b76d4eca [NTOSKRNL]
Fix pathes of resources

svn path=/trunk/; revision=51722
2011-05-14 08:50:11 +00:00
Timo Kreuzer
0615e6a7be [NTOSKRNL]
Merge r51181 from cmake branch:
Move macro definition out of macro instantiation.
Fixes compilation with MSVC

svn path=/trunk/; revision=51721
2011-05-14 08:33:30 +00:00
Timo Kreuzer
03b3034b40 [MKHIVE]
Merge msvc fixes from cmake branch

svn path=/trunk/; revision=51720
2011-05-14 08:29:48 +00:00
Rafal Harabien
0111880683 [RAPPS]
- Merge rapps changes from CMake branch

svn path=/trunk/; revision=51719
2011-05-13 22:43:04 +00:00
Eric Kohl
8c50d36968 [DEVMGMT]
- Set the focus for the treeview when the main window gets the focus.
- Select the root item after the devices tree has been built.
These changes enable the user to navigate the device tree using the keyboard.

svn path=/trunk/; revision=51715
2011-05-13 21:09:56 +00:00
Timo Kreuzer
7da47d32de revert part of r51708
svn path=/trunk/; revision=51714
2011-05-13 20:43:21 +00:00
Timo Kreuzer
fb553406c9 [CRT]
Merge r51273 from cmake branch:
The crt library must provide a and w version of the functions and not rely to _UNICODE being set or not

svn path=/trunk/; revision=51713
2011-05-13 20:21:58 +00:00
Gabriel Ilardi
e37a4989a1 [msi]
- Add post 51711 msi_ros.diff

svn path=/trunk/; revision=51712
2011-05-13 20:21:27 +00:00
Timo Kreuzer
c22c58fe11 [MSI]
Merge r50719 from cmake branch:
- Fix reource files (strings must be in one line)

svn path=/trunk/; revision=51711
2011-05-13 20:12:28 +00:00
Timo Kreuzer
7f6b467b7d Remove svn:mergeinfo property
svn path=/trunk/; revision=51709
2011-05-13 20:01:51 +00:00
Timo Kreuzer
1a70567bcd [FREELDR/HAL/NTOSKRNL]
Merge asm changes from cmake branch. No code change, only MSVC compatibility fixes


svn path=/trunk/; revision=51708
2011-05-13 19:51:09 +00:00
Timo Kreuzer
1034d441f3 [CRT]
Merge r50693 from cmake banch:
_CxxThrowException is stdcall, not cdecl.

svn path=/trunk/; revision=51707
2011-05-13 19:37:49 +00:00
Timo Kreuzer
bfd63b8167 [GENINC]
Merge geninc tool from cmake branch

svn path=/trunk/; revision=51706
2011-05-13 19:19:05 +00:00
Timo Kreuzer
8800266b20 [WIDL]
Update widl_ros.diff
The change was done in r49282 in cmake branch and mysteriously made it into trunk in r50063, which is a wine sync, but wine doesn't have that code.

svn path=/trunk/; revision=51704
2011-05-13 19:13:53 +00:00
Amine Khaldi
2bad78f216 * Reduce difference to the cmake branch, MSVC fixes.
svn path=/trunk/; revision=51702
2011-05-13 17:16:08 +00:00
Amine Khaldi
9d49f811fd * Reduce difference to the cmake branch.
svn path=/trunk/; revision=51701
2011-05-13 16:29:09 +00:00
Eric Kohl
509db7c0d0 [UMPNPMGR]
Implement parts of PNP_CreateDevInst.

svn path=/trunk/; revision=51700
2011-05-13 15:56:50 +00:00
Giannis Adamopoulos
683a4dc336 [win32k]
- Return the correct menu bar rect in GetMenuBarInfo

svn path=/trunk/; revision=51699
2011-05-13 15:36:25 +00:00
Gabriel Ilardi
21434a4c28 [kbdit]
- Fix the "divide" key. Thanks to Giannis Adamopoulos for the help.
See issue #6250 for more details.

svn path=/trunk/; revision=51698
2011-05-13 15:16:49 +00:00
Eric Kohl
7db0796ea8 [SETUPAPI]
CM_Create_DevNode_ExW: Copy the device id string into a local buffer before passing it to PNP_CreateDevInst because its 2nd argument is an 'in out' string. Using a writable string buffer prevents exceptions in case the device id passed to CM_Create_DevNode_ExW is a string constant.

svn path=/trunk/; revision=51697
2011-05-13 15:15:40 +00:00
Giannis Adamopoulos
71fffa95de [win32k]
- Fix braindead logic that caused GetMenuItemRect to fail in every case

svn path=/trunk/; revision=51696
2011-05-13 14:47:36 +00:00
Johannes Anderwald
3f8c058a07 [USBSTOR]
- Start implementing write command
- Disabled for now as it causes corruptions

svn path=/branches/usb-bringup/; revision=51695
2011-05-13 14:44:24 +00:00
Johannes Anderwald
89aa9d3264 [USBSTOR]
- Fix bug in read command, which uses wrong format. LBA address is stored in the CDB10 struct
- Don't build the mdl for nonpaged pool if the driver passes an mdl (i/o paging requests)
- Usbstor can now list disk contents and browse files when used in Windows XP
- Need to implement SCSIOP_WRITE to write files

svn path=/branches/usb-bringup/; revision=51694
2011-05-13 14:04:38 +00:00
Johannes Anderwald
eb228159bc [USBSTOR]
- Handle SCSIOP_MEDIUM_REMOVAL
- Handle paging i/o requests. These request don't provide a data buffer in the srb, but the buffer is stored in the irp' mdl
- Fix the hack for unimplemented Mode Sense command
- Usbstor now completes initializes and receives read requests
- Still need to fix read request, as Windows XP fails to recognize the disk format, WIP

svn path=/branches/usb-bringup/; revision=51693
2011-05-13 13:37:50 +00:00
Gabriel Ilardi
73aa4fa2be [input]
- Fix an Italian typo spotted by r3ddr4g0n

svn path=/trunk/; revision=51692
2011-05-13 13:25:44 +00:00
Michael Martin
98ed611448 [USBSTOR]
- Add a check at USBSTOR_FdoHandleStartDevice to make sure the device uses Bulk Transfers.
- Use macros for initializing the Urbs. The macros ensure that the proper fields of the URB are set correctly.
Fixes failing of getting device descriptor and getting devices BlockLength.


svn path=/branches/usb-bringup/; revision=51691
2011-05-13 09:14:28 +00:00
Giannis Adamopoulos
c043e7495b [win32k]
- Dereference the SMWP object before deleting it. Fixes handle leak

svn path=/trunk/; revision=51690
2011-05-13 08:34:24 +00:00
Giannis Adamopoulos
c3dc777c91 [win32k]
- When we run out of user handles show count of event and SMWP objects

svn path=/trunk/; revision=51689
2011-05-13 08:01:11 +00:00
Michael Martin
9d7751a2f6 [USBHUB_NEW]
- Only get the string descriptors if they are available. Fixes crash when using usb mouse and keyboards in windows.

svn path=/branches/usb-bringup/; revision=51688
2011-05-12 23:31:32 +00:00
Giannis Adamopoulos
3e28bffb7a [desk cpl]
- Properly apply system metrics

svn path=/trunk/; revision=51685
2011-05-12 16:49:50 +00:00
Michael Martin
76310d7679 [USBEHCI_NEW]
- Modify BuildBulkTransferQueueHead to support TransferBufferLengths larger than PAGE_SIZE * 5.
- Acquire a SpinLock before adding QueueHeads to AsyncList and PendingList.
- Dont request a new QueueHead for incomplete transfers in QueueHeadCompletion, as the memory for the just completed QueueHead has not been released yet. Doing so overwrites the m_TransferDescriptor[x] members with new address resulting in memory leaks. Instead request a new QueueHead after the QueueHead has been freed in QueueHeadCleanup.
- Fix a bug where a QueueHead was removed from the m_CompletedRequestAsyncList instead of the m_PendingRequestAsyncList.
- Temporary hackfix InternalCalculateTransferLength to return the TransferBufferLength. This hack will be removed as soon as possible.
- With these changes the hub and ehci driver allow viewing content of and transfers to/from usb disks.

svn path=/branches/usb-bringup/; revision=51684
2011-05-12 13:35:06 +00:00