Commit graph

46703 commits

Author SHA1 Message Date
Cameron Gutman
10959bf38e [NDIS]
- Fix handling of some PnP IRPs
- Handle IRP_MN_STOP_DEVICE as it travels down the stack not up
- Only complete the IRP_MN_QUERY_XXX_DEVICE IRPs if we fail them otherwise pass them down the device stack
- Handle IRP_MN_CANCEL_XXX_DEVICE as it travels back up the stack not on its way down
- Append our flags when handling IRP_MN_QUERY_PNP_DEVICE_STATE and pass it down the device stack

svn path=/trunk/; revision=51927
2011-05-26 19:34:39 +00:00
Rafal Harabien
562fcac277 [TASKMGR]
- Simplify opening settings registry key

svn path=/trunk/; revision=51925
2011-05-26 18:19:17 +00:00
Johannes Anderwald
9aff3e967c [USBOHCI]
- Set up periodic threshold (90 %)
- Add function to retrieve interrupt endpoints
- Add function to retrieve specific descriptors from interface. These are used by HID devices such as mice / keyboards
- Add function to retrieve interrupt interval
- Enqueue all endpoint descriptors at the end of the associated queue
- Only notify hardware of insertion when it is an bulk / control request
- Scan interrupt endpoint list to find the completed transfer descriptor
- Add debugging function to print out linked endpoint descriptors
- Interrupt transfers are now implemented. 
- Tested in Windows XP SP3 + Vbox 4.04 + Microsoft 5-Button Mouse. The HID mouse installs, initializes and starts up. Unfortunately the mouse does not work as expected yet

svn path=/branches/usb-bringup/; revision=51922
2011-05-26 12:37:18 +00:00
Eric Kohl
c9726a9484 [SERVICES]
- Add database locks to ScmAutoShutdownServices, RCreateServiceW and REnumServicesStatusExW.
- Add experimental logging of failed service start (WIP).

svn path=/trunk/; revision=51921
2011-05-26 10:50:26 +00:00
Johannes Anderwald
667b425b6c [USBOHCI]
- Remove dead code
- Silence traces
- Pass status & DoneHead as parameters to dpc routine
- Move IUSBRequest cleanup code into new function and use it for bulk / control transfer cleanup
- Fix bugs in AllocateEndpointDescriptor. It did not take the device address into account. It also did not respect the direction of the descriptor
- Implement support for bulk transfer requests
- Handle irp completion in CompletionCallback
- Tested in Windows XP SP3 + Vbox 4.04 + USB2.0 disabled + ReactOS usbstor + USB mass storage device
- OHCI Mass storage support is now also ready
- Next interrupt transfers

svn path=/branches/usb-bringup/; revision=51917
2011-05-26 02:15:11 +00:00
Eric Kohl
a53b8c7e19 [MSPORTS]
Store the PortName value in the registry.
Please note that SetupDiCreateDevRegKey and SetupDiOpenDevRegKey are broken because they do not open or create the 'Device Parameters' subkey of a device instance key but the device instance key itself.

svn path=/trunk/; revision=51916
2011-05-25 22:14:40 +00:00
Ged Murphy
45b3697a66 [LOGONUI]
Add gabriel's fixed bitmap and a more forgiving rbuild file

svn path=/trunk/; revision=51907
2011-05-25 18:53:04 +00:00
Ged Murphy
4d7f242b7f [LOGONUI]
- Start to put together the logon / logoff user interface process
- It currently paints an exact pixel replica of WinXP's welcome screen in a logging off state
- Just a bit of fun at the moment, but will be part of the UI revamp we're all working towards.

svn path=/trunk/; revision=51906
2011-05-25 17:13:54 +00:00
Matthias Kupfer
255a10c304 use application specific icon for small AND large icon instead of predefined one (otherwise alt-tab shows default icon)
svn path=/trunk/; revision=51902
2011-05-25 11:22:36 +00:00
Eric Kohl
9074f26b85 [MSPORTS]
- Implement ComDBClaimNextFreePort and ComDBReleasePort.
- Add stubs for ComDBGetCurrentPortUsage and ComDBResizeDatabase.
- Do not keep the port bitmap in a buffer between calls but use a read-modify-write strategy instead.
- Replace pointer-based access to the port bitmap by index-based access.
- Use ComDBClaimNextFreePort in the serial port installer.
See issue #6272 for more details.

svn path=/trunk/; revision=51901
2011-05-25 10:52:12 +00:00
Johannes Anderwald
2c6077dc50 [USBOHCI]
- Add glue code for supporting iso transfers
- Remove dead from Handle
- Remove broken asserts
- Add support for string descriptors
- Add support for class specific endpoint requests (Needs be ported to usbehci)
- Link to usbd driver
- Add support for retrieving string descriptor
- Rewrite configuration descriptor handling in IUSBDevice. New code is smaller, smarter and handles a lot more cases. Needs to be ported to usbehci
- Wrap usbdlib.h include in extern c macro, it has c linkage
- Control transfers should now work 
- Need to implement support for isochronous / bulk / interrupt transfers until functional
- Tested with Bluetooth USB Stick (multi function, interrupt / bulk / control / isochronous) / USB Microphone (isochronous & control) in XP SP3

svn path=/branches/usb-bringup/; revision=51900
2011-05-25 02:11:06 +00:00
Johannes Anderwald
beec9a7b25 [USBD]
- Add missing export

svn path=/branches/usb-bringup/; revision=51899
2011-05-24 23:03:35 +00:00
Pierre Schweitzer
b6d42c5ec0 [NTOSKRNL]
- Fix remove locks with debug block initialization in IoInitializeRemoveLockEx(). Before only their debug block was initialized, and not the lock itself...
- Implemented support remove locks debug blocks in IoAcquireRemoveLockEx(), IoReleaseRemoveLockEx() and IoReleaseRemoveLockAndWaitEx()
This will help debugging in storage stack and is required since partmgr is using them.

svn path=/trunk/; revision=51898
2011-05-24 21:21:54 +00:00
Johannes Anderwald
ed6fad617e [USBOHCI]
- Don't allocate buffer twice
- Cleanup endpoint / general transfer descriptors

svn path=/branches/usb-bringup/; revision=51892
2011-05-24 18:29:57 +00:00
Ged Murphy
4596e5e59b [SHELL32_NEW]
- Merge 48786. (This is why we moved to C++, so much cleaner than the previous C code.)

- Improve parameter checks for IShellLinkA interface.
- Fix heap corruption when an invalid pointer is passed.
- Implement IPersistFile_fnGetCurFile.
- TODO: Add same checks to IShellLinkW interface and fix IShellLink[A|W]::GetPath / SetPath / SetIdList / GetIdList logic.

svn path=/trunk/; revision=51891
2011-05-24 18:18:56 +00:00
Ged Murphy
ba266670d1 [SHELL32_NEW]
- Merge 48254, 48371, 48463, 48501
- Don't worry about trying to build this dll, it needs the new PSDK interfaces which won't be committed until the very end as they'll break the existing shell32. It make take a day or two as everything has to be merged by hand.

svn path=/trunk/; revision=51890
2011-05-24 18:14:47 +00:00
Johannes Anderwald
e24bfbfa91 [USBOHCI]
- Add sanity checks
- Preserve  command status value when notifying the hc that a control / bulk endpoint was added
- Re-enable root hub notification interrupt when reset port has been completed
- Dispatch processing to USBQeueu when DoneHead event arrives
- Scan endpoints to find the logical endpoint which was completed by the hardware
- Signal completion to IUSBRequest by calling CompletionCallback
- Create a final transfer descriptor which is linked to the endpoint descriptor
- Control transfers now appear to be working (Device retrieves device descriptor / configuration descriptor and succeeds in setting device address)
- Configuration parsing code needs more work now (currently fails there due to invalid / unexpected configuration descriptor from device)

svn path=/branches/usb-bringup/; revision=51888
2011-05-24 17:57:00 +00:00
Jérôme Gardou
9e4d22d027 [NTOSKRNL/MM]
- clear right bit when freeing pool pages.

svn path=/trunk/; revision=51887
2011-05-24 17:55:27 +00:00
Timo Kreuzer
3b62a1af2a [WIN32K]
- Add a comment about alignment for GreCreateBitmap
- Make bits really 32bit aligned
- Remove unused variable

svn path=/trunk/; revision=51886
2011-05-24 16:23:36 +00:00
Timo Kreuzer
54b14d414e [WIN32K]
- Fix the bitmap alignment issue that caused broken scrollbar pattern

svn path=/trunk/; revision=51885
2011-05-24 15:35:30 +00:00
Johannes Anderwald
b275073474 [USBOHCI]
- Enable global power mode
- Wait untill reset is complete
- Clear reset complete bit when reset is done
- Enable port
- Reset port now works
- USBOHCI still hangs after adding first control request, needs more investigation

svn path=/branches/usb-bringup/; revision=51883
2011-05-24 12:51:03 +00:00
Olaf Siejka
fc94016a41 [RPCSS]
Addenum. This change slipped past in commit 51873. Fix name of irot header include, which should be irot.h and not irot_s.h. Fixes rpcss build in MSVC.

svn path=/trunk/; revision=51874
2011-05-23 21:49:12 +00:00
Olaf Siejka
9776c7b8d7 Converting POLISH localisation strings to UTF-8. Part 2/4 -
- base\setup and base\system coversion
- added PRAGMA to rsrc/resource files
- added missing polish translations - subst and runonce
- small fixes, style and wording
Tested on rbuild/cmake/nmake

svn path=/trunk/; revision=51873
2011-05-23 21:36:15 +00:00
Matthias Kupfer
e345b5a483 revert previous commit due to serious build problems
svn path=/trunk/; revision=51872
2011-05-23 19:48:04 +00:00
Matthias Kupfer
54e3afb4ee patch by Igor Paliychuk <mansonigor at gmail dot com>:
- [CMAKE] Reduce difference with cmake branch
- msvc fixes
- minor changes by me

svn path=/trunk/; revision=51871
2011-05-23 19:30:50 +00:00
Amine Khaldi
26e319dd8c [CMAKE]
* Remove meaningless target_link_libraries(${MODULE})

svn path=/trunk/; revision=51870
2011-05-23 18:52:04 +00:00
Eric Kohl
126ebc89ff Real fix of the broken build.
svn path=/trunk/; revision=51869
2011-05-23 18:49:03 +00:00
Timo Kreuzer
597107fc28 [CMAKE]
- Remove last traces of mingw_common
- adopt msvcrtex on msvc builds
- Fix MSVC warnings in crtexe.c, already pushed upstream

svn path=/trunk/; revision=51868
2011-05-23 18:27:16 +00:00
Timo Kreuzer
16c69e2493 [MSPORTS]
Fix build

svn path=/trunk/; revision=51867
2011-05-23 18:22:24 +00:00
Eric Kohl
2ccbf80288 [MSPORTS]
- Add msports.h header file.
- Add the initial version of the com port database and use it to track the used com ports.

svn path=/trunk/; revision=51866
2011-05-23 17:54:16 +00:00
Timo Kreuzer
5abd114662 [USETUP]
Don't link to mingw_main/mingw_common/kernel32!

svn path=/trunk/; revision=51865
2011-05-23 17:43:13 +00:00
Johannes Anderwald
f75cb3d51d [USBOHCI]
- Start implementing control transfers
- Move initialization of usb queue after the bulk / control head endpoints have been created
- Add interface functions to retrieve bulk / control head endpoint descriptors
- Add macros for setting transfer descriptors field (taken from Haiku)
- Partly implement IUSBQueue::AddUSBRequest for control / bulk transfers
- Create endpoint descriptor for control request and link setup descriptor to it 
- Link setup descriptors to data descriptor / status descriptor
- WIP (needs fixes)

svn path=/branches/usb-bringup/; revision=51864
2011-05-23 17:42:52 +00:00
Timo Kreuzer
824d85a2b1 [TASKMGR]
Convert Japanese resource file to UTF-8 and fix a typo

svn path=/trunk/; revision=51863
2011-05-23 17:33:21 +00:00
Timo Kreuzer
a89876bc9f [CRT]
Check for _WIN32 instead of _WINDOWS_

svn path=/trunk/; revision=51862
2011-05-23 17:33:04 +00:00
Timo Kreuzer
49988a5137 [CRT]
Fix a bug in amd64 version of __chkstk_ms, noticed by Stefan

svn path=/trunk/; revision=51861
2011-05-23 17:13:38 +00:00
Timo Kreuzer
6243472331 [CMAKE]
- Create a new library msvcrtex, which will be automatically linked, when msvcrt is linked. This is yet a minimal version which replaces the different mingw libs.
- Use proper unicode entrypoints
- remove unneeded libcoldname.a

svn path=/trunk/; revision=51860
2011-05-23 15:50:03 +00:00
Timo Kreuzer
13719879aa [MMIXER_TEST]
- Fix order of importlibs (will be required soon)

svn path=/trunk/; revision=51859
2011-05-23 15:36:00 +00:00
Johannes Anderwald
c5acda628c [USBOHCI]
- Fix bug in calculating offset of status register
- Start implementing deferred processing routine
- Signal status change when new device is arrived
- Implement basic GetPortStatus
- Start implementing SetPortFeature, ClearPortStatus
- ResetPort not yet fully working, WIP

svn path=/branches/usb-bringup/; revision=51858
2011-05-23 11:29:55 +00:00
Amine Khaldi
f1cd9d77bb [CMAKE]
* Add module_clean targets.

svn path=/trunk/; revision=51857
2011-05-23 10:52:37 +00:00
Timo Kreuzer
0c077106ad [FREELDR]
"Fix" build with MSVC

svn path=/trunk/; revision=51856
2011-05-23 07:57:44 +00:00
Amine Khaldi
2c7f36d712 * Back out r51854 as our KeBugCheckEx does return (due to a hack).
svn path=/trunk/; revision=51855
2011-05-22 22:19:47 +00:00
Amine Khaldi
df547b1581 * Consistently mark KeBugCheckEx with the noreturn attribute. Patch by Igor Paliychuk.
svn path=/trunk/; revision=51854
2011-05-22 22:08:01 +00:00
Johannes Anderwald
89d52d98bb [OHCI]
- Add check that controller is functional state
- enable interrupts after the controller has been started
- partly implement isr routine

svn path=/branches/usb-bringup/; revision=51852
2011-05-22 20:48:50 +00:00
Johannes Anderwald
d4c4a2e080 [USBOHCI]
- Start of OHCI support
- Based on new usbehci driver and Haiku USB Stack
- Driver initializes the controller and retrieve number of ports

svn path=/branches/usb-bringup/; revision=51851
2011-05-22 19:36:13 +00:00
Olaf Siejka
07ce2672d8 [MSVC]
Final fix for MSVC build of base\application resources

svn path=/trunk/; revision=51845
2011-05-22 13:56:46 +00:00
Olaf Siejka
869bbd1e00 [MSVC]
Arch Blackmann should know not to remove empty lines at the end of resource/rsrc files in base\applications. Should fix MS Linker fatal error RC1004 for modules affected.

svn path=/trunk/; revision=51844
2011-05-22 11:57:27 +00:00
Eric Kohl
4f191d838d [MSPORTS]
Determine serial port names COM1-4 and parallel port names LPT1-2 from their resources. Other serial and parallel are still named COMx and LPTx.

svn path=/trunk/; revision=51843
2011-05-22 08:57:33 +00:00
Amine Khaldi
f78cfefe6d [CMAKE/IDL]
* Make sure to declare all the output files, so that the cleanup step could take care of them.

svn path=/trunk/; revision=51842
2011-05-21 17:44:39 +00:00
Olaf Siejka
ed88df8046 Converting POLISH localisation strings to UTF-8. Part 1/x -
- base/applications. pl-PL.rc conversion;
- add PRAGMA, required by MSVC to rsrc/modulename/resource.rc, instead of individual localisation files. Localisation files already converted to UTF-8 will be placed at the end, after PRAGMA.

Tested on rbuild/cmake/nmake

svn path=/trunk/; revision=51841
2011-05-21 16:24:21 +00:00
Amine Khaldi
c87d5c0aa3 [FREELDR]
* Make KeBugCheckEx definition consistent with the declaration. Fixes an msvc error.

svn path=/trunk/; revision=51840
2011-05-21 15:27:24 +00:00