Commit graph

40263 commits

Author SHA1 Message Date
Michael Martin 2aac7f8c6a [usb/usbehci]
- CompletePendingRequest: Release the spinlock before and reacquire it after calling IoCallDriver

svn path=/trunk/; revision=44994
2010-01-08 09:55:18 +00:00
Michael Martin 86cc8888f0 [usb/usbehci]
- Initial implementation of usbehci, aka USB 2.0.
- Implement AddDevice, StartDevice, InterruptService and DPC Routines.
- Implement basic IRP queuing and handling.
- Implement starting, stopping of EHCI controller and querying port capabilities. 
- Implement PNP for Query Relations, Query ID, Query BusInfo.
- Implement finding the active ports when USB devices are attached and releasing control to companion controller if devices is not a high speed devices.
- Implement reporting devices connects to upper Pdo (hub) driver.
- Hub driver attaches successfully and sends URBs to query descriptors from USB devices on Windows.
- Currently not build enabled as it will cause problems with current UsbDriver in trunk.
- Code heavily based on current PCI drivers and UsbDriver from trunk.

svn path=/trunk/; revision=44993
2010-01-08 09:34:36 +00:00
Michael Martin 4a5921d8fa [include/usb200.h]
- Fix two unions, make text after last #endif a comment as it should be, and add newline at end of file.

svn path=/trunk/; revision=44992
2010-01-08 09:00:53 +00:00
ReactOS Portable Systems Group 6ce614c110 - Document and define Timer and System Control Ports (0x43, 0x61) as defined in ISA System Architecture 3rd Edition and The Undocumented PC.
- Document PIT access modes, channels and operating modes.
- Rewrite HalHandleNMI to use the System Control Port definitions instead of magic values that were never explained.
- Rewrite HalMakeBeep not to program the PIT with magic hexadecimal values that were not explained anywhere and seem dubious.
- Fix the PIT frequency to match its correct value of ~1.19318MHz which is what every x86 book states and what Linux and all other operating systems use. This is equivalent to one third of the NTSC color burst (subcarrier frequency) used on CGA computers for video output. Previously, the HAL used 1.193167MHz, which is only used by NT and isn't documented anywhere, and in fact appears to be a typo in the NT sources (a less accurate way of dividing the NTSC color burst gives 1.19318167MHz). Somehow, the ReactOS developer of this function must have made the same "typo", by complete coincidence, of course.
- Rewrite part of HalpInitializeClock to use the new definitions. This function was at least somewhat documenting the magic values.


svn path=/trunk/; revision=44991
2010-01-08 04:31:19 +00:00
ReactOS Portable Systems Group 53236395a1 - Restore PROGRAMMER's field correctly.
svn path=/trunk/; revision=44990
2010-01-07 19:08:11 +00:00
James Tabor 337d120ece [User32]
- Patch by James Hawkins : Don't try to free a handle with a value of 1, which is the dde handle value for asynchronous operations.
- Will sync to wine after a review of new WOW implementation.

svn path=/trunk/; revision=44989
2010-01-07 19:05:57 +00:00
James Tabor d688d91275 [User32]
- Patch by Marcus Meissner : Remove useless NULL check (Coverity).
- Will sync to wine after a review of new WOW implementation.

svn path=/trunk/; revision=44988
2010-01-07 18:59:13 +00:00
James Tabor 432bd7570f [User32]
- Patch by Marcus Meissner : EM_REPLACESEL Handle OOM error.
- Will sync to wine after a review of new WOW implementation.

svn path=/trunk/; revision=44987
2010-01-07 18:55:24 +00:00
Eric Kohl 4c9596a9ad [umpnpmgr]
Silence device arrival debug messages.

svn path=/trunk/; revision=44981
2010-01-06 21:14:13 +00:00
Eric Kohl ffab3fc13c Fix PNP_DeviceInstanceAction prototype.
svn path=/trunk/; revision=44980
2010-01-06 18:58:10 +00:00
Kamil Hornicek 241b55764e - missed this one, sorry
svn path=/trunk/; revision=44979
2010-01-06 15:05:25 +00:00
Kamil Hornicek 721e80ba4d - sync wined3d, ddraw, d3d8 and d3d9 with Wine 1.1.35
svn path=/trunk/; revision=44978
2010-01-06 14:59:04 +00:00
Kamil Hornicek 39095e89ae - fix definition of ComposeRects
svn path=/trunk/; revision=44977
2010-01-06 14:19:58 +00:00
Ged Murphy 0c02d2184e Fix pause / resume code. The buttons need fixing yet so it still won't work, although the menu items probably will.
svn path=/trunk/; revision=44976
2010-01-06 13:10:09 +00:00
Giannis Adamopoulos b8882998c7 [win32k]
- Rewrite SetCursorPos and ShowCursror
- Store coursor show count in SYSTEM_CURSORINFO and not in GDIPOINTER
- Fix broken behaviour in ClipCursor

svn path=/trunk/; revision=44975
2010-01-06 12:44:31 +00:00
Dmitry Gorbachev 15269e4b77 [freeldr]
- Do not use GetSystemMemorySize(), which truncates size to 32 bit.
- Other minor changes.

svn path=/trunk/; revision=44974
2010-01-06 11:44:54 +00:00
Dmitry Gorbachev a71c3f0d12 Check if MmHeapAlloc() failed.
svn path=/trunk/; revision=44972
2010-01-06 01:28:23 +00:00
ReactOS Portable Systems Group 4b9333f4a1 - Implement NMI handler in C instead of ASM.
- Tested with the "nmi 0" command in QEMU and NmiDbg.sys.


svn path=/trunk/; revision=44971
2010-01-06 00:40:07 +00:00
Timo Kreuzer 2736e830ea [RTL]
Merge from amd64 branch
35738,37004,37308,37324,37330,37331,37332,37370,37419,37424,37425,37428,37473,37492,37844,37911,37987,40604,41006,43686,43951,43953,43980,43993,44001,44289,44295,44296,44428,44966,44967,44968

- Implement amd64 specific RTL functions: RtlLookupFunctionTable, RtlLookupFunctionEntry, RtlCaptureContext, RtlVirtualUnwind, RtlWalkFrameChain, RtlGetCallersAddress, RtlRaiseException (Timo Kreuzer)
- Implement amd64 asm functions: RtlCompareMemory, DebugService, RtlInterlockedPopEntrySList, RtlInterlockedPushEntrySList and RtlInterlockedFlushSList (Timo Kreuzer)
- Don't use double in rtl's sprintf / swprintf, use double_t union instead. (Stefan Ginsberg)

svn path=/trunk/; revision=44970
2010-01-06 00:39:07 +00:00
Dmitry Gorbachev 0c5fed9d71 Fix memory leak in CreateToolhelp32Snapshot(). Bug #5096.
svn path=/trunk/; revision=44969
2010-01-05 23:28:16 +00:00
Ged Murphy d4aca75523 Clean up the pause and resume code and a few other bits and bobs
svn path=/trunk/; revision=44965
2010-01-05 21:43:00 +00:00
Ged Murphy 5dfb2cc0c3 Clean up the start code
svn path=/trunk/; revision=44963
2010-01-05 21:14:10 +00:00
Ged Murphy d5bc8625fb [SERVMAN]
- Fully implement stopping all dependent services
- When stopping a service, only list other running services which require stopping
- Use the same progress dialog for stopping multiple services and make it smoother

svn path=/trunk/; revision=44961
2010-01-05 20:41:14 +00:00
Eric Kohl ef88ea7724 [spoolsv]
- Switch to wine debug macros. Add new debug channel spoolsv.
- Update service status when the service receives a control message.

svn path=/trunk/; revision=44960
2010-01-05 20:32:02 +00:00
Eric Kohl 9fb7195e8e [umpnpmgr]
PNP_DeviceInstanceAction: Call a separate function for each action.

svn path=/trunk/; revision=44959
2010-01-05 20:26:31 +00:00
Timo Kreuzer b473a12aff [WIN32k]
Fix some 64 bit issues.

svn path=/trunk/; revision=44958
2010-01-05 20:06:33 +00:00
Ged Murphy bb5ea9e289 Make the logic easier to read
svn path=/trunk/; revision=44957
2010-01-05 19:27:14 +00:00
Timo Kreuzer dfe969ab14 [win32k] / [user32]
Merge from amd64 branch:
34780 some DWORD -> DWORD_PTR (Timo Kreuzer)
34781 fix usage of InterlockedCompareExchangePointer (Timo Kreuzer)
34782 fix usage of InterlockedCompareExchangePointer (Timo Kreuzer)
34908 some 64 bit fixes in win32k (Timo Kreuzer)
34909 some more win32k 64 bit fixes (Timo Kreuzer)
34965 Fix typos. (Samuel Serapión)
41479 Remove usage of RETURN() macro (Timo Kreuzer)
41540 Make parameters for NtUserCallOneParam and NtUserCallTwoParam DWORD_PTR instead of DWORD (Timo Kreuzer)
41546 Add _FLOATOBJ_GetFix for non-x86 (Timo Kreuzer)
41547 Only export FLOATOBJ_* api on x86 (Timo Kreuzer)
44238 Fix some 64 bit isues. (Timo Kreuzer)
43969 undefine i386 in the pspec file (Timo Kreuzer)

svn path=/trunk/; revision=44956
2010-01-05 19:26:32 +00:00
Ged Murphy 24e15791e0 Display all service dependants which need stopping
svn path=/trunk/; revision=44955
2010-01-05 19:19:06 +00:00
Ged Murphy 8320c599d1 Switch to crt string safe functions. Remove some commented code
svn path=/trunk/; revision=44954
2010-01-05 18:39:47 +00:00
Ged Murphy a854583327 Forgot the comments in this file
svn path=/trunk/; revision=44953
2010-01-05 18:16:43 +00:00
Timo Kreuzer 927ff64dae [CSRSS]
Merge from ams64 branch:
35805 remove unneeded msvcrt dependency (all win32 projects already depend on it) (Samuel Serapión)
36992 - Fix csrss compilation (treat handles as pointer sized, use SIZE_T where appropriate) (Stefan Ginsberg)
41485 Fix 64bit issues. (Timo Kreuzer)
41531 fix pointer <-> DWORD casts (Timo Kreuzer)
41536 win32csr: convert to spec (Timo Kreuzer)
43838 Fix csrss build. (Samuel Serapión)

svn path=/trunk/; revision=44952
2010-01-05 18:13:00 +00:00
Ged Murphy 40d9015811 - Reimplement service stop routines.
- Stopping single services should now work again, full dependency trees won't yet.

svn path=/trunk/; revision=44951
2010-01-05 18:08:41 +00:00
Timo Kreuzer 05c33f5b6b [ATL]
Merged from amd64 branch:
- add amd64 specific thunkCode
- get rid of a cast

svn path=/trunk/; revision=44950
2010-01-05 17:38:03 +00:00
Ged Murphy bbf8c31b35 More code towards getting servman to stop services again, etc...
(clearly not a message for the changelog)

svn path=/trunk/; revision=44949
2010-01-05 17:14:08 +00:00
Aleksey Bragin 887a166980 Daniel Zimmermann <netzimme@aim.com>
- Implement RtlDnsHostNameToComputerName.
See issue #5092 for more details.

svn path=/trunk/; revision=44948
2010-01-05 16:37:32 +00:00
Aleksey Bragin bb93e5e242 - Implement SystemException and SystemContextSwitch information cases in NtQuerySystemInformation by Samuel Serapion, modified by me (comments, coding style).
See issue #5054 for more details.

svn path=/trunk/; revision=44947
2010-01-05 16:28:47 +00:00
Aleksey Bragin a5a0bfbeb2 Marcus Boillat <ka6602-280@online.de>
- ipconfig should also parse parameters starting with "-" (undocumented feature, tested on Windows XP, Vista and Windows 7).
See issue #5067 for more details.

svn path=/trunk/; revision=44946
2010-01-05 16:18:35 +00:00
James Tabor c2773414b9 [gdi32]
- Run full Attribute and GdiBatch for Region support. Leaving Enh/Meta and mirroring support for regions.

svn path=/trunk/; revision=44943
2010-01-05 03:05:50 +00:00
James Tabor e94d3dc399 - Revert changes in font.
svn path=/trunk/; revision=44933
2010-01-04 20:48:31 +00:00
James Tabor ae0d45f91c - Sorry I thought I turn the debug off.region.c
svn path=/trunk/; revision=44932
2010-01-04 20:44:48 +00:00
Sylvain Petreolle 09bf249e9d Hackfix wdmaud.drv for now (Johannes Anderwald)
svn path=/trunk/; revision=44931
2010-01-04 18:07:27 +00:00
Dmitry Gorbachev ba52cb038d Chinese translations of NTVDM by Samuel Lee. Bug #5087.
svn path=/trunk/; revision=44930
2010-01-04 16:39:38 +00:00
Ged Murphy e46aff6e85 Rehack the explorer hack for secure CRT usage.
This should fix the build, unless there are any more oddities in our tree.

svn path=/trunk/; revision=44929
2010-01-04 16:10:33 +00:00
Ged Murphy b19ad21200 Fix __STDC_WANT_SECURE_LIB__ redefinition
svn path=/trunk/; revision=44928
2010-01-04 14:02:49 +00:00
Ged Murphy 9282abf812 Add wcsncat back, it was removed accidentally
svn path=/trunk/; revision=44927
2010-01-04 13:47:19 +00:00
Ged Murphy 4afc049223 Add some of the string safe stuff to the headers.
svn path=/trunk/; revision=44926
2010-01-04 13:36:59 +00:00
Aleksey Bragin f727da1fb2 - Remove unnecessary line from FreeEnvironmentStringsW.
See issue #5073 for more details.

svn path=/trunk/; revision=44925
2010-01-04 11:17:57 +00:00
Aleksey Bragin bcfb4adf08 Daniel Zimmermann <netzimme@aim.com>
- Fix missing arguments for the call KdbpPrint() in
differents places in kdbg_cli.c.
See issue #5089 for more details.

svn path=/trunk/; revision=44924
2010-01-04 11:03:23 +00:00
James Tabor 98ba6e212e - Another attempt to fix RGNOBJAPI_Un/Lock SEH issue. Resort code.
svn path=/trunk/; revision=44923
2010-01-04 01:36:24 +00:00