ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
September 2008
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
27 participants
747 discussions
Start a n
N
ew thread
[cfinck] 36373: Wow, WriteConfigurationFile() in rbuild never worked since it was added in r13496 over 3 years ago! :-) Thus, the generated "roscfg.h" was always empty, but for whatever reason modules started to include it. I removed all dependencies on this file and the function itself from rbuild.
by cfinck@svn.reactos.org
Author: cfinck Date: Sun Sep 21 08:00:40 2008 New Revision: 36373 URL:
http://svn.reactos.org/svn/reactos?rev=36373&view=rev
Log: Wow, WriteConfigurationFile() in rbuild never worked since it was added in r13496 over 3 years ago! :-) Thus, the generated "roscfg.h" was always empty, but for whatever reason modules started to include it. I removed all dependencies on this file and the function itself from rbuild. Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcpcsvc.c trunk/reactos/dll/win32/iphlpapi/ipstats_reactos.c trunk/reactos/dll/win32/ws2_32/include/upcall.h trunk/reactos/dll/win32/ws2_32/include/ws2_32.h trunk/reactos/dll/win32/ws2_32/misc/dllmain.c trunk/reactos/dll/win32/ws2_32/misc/sndrcv.c trunk/reactos/dll/win32/ws2_32/misc/upcall.c trunk/reactos/drivers/network/dd/ne2000/ne2000/8390.c trunk/reactos/drivers/network/dd/ne2000/ne2000/main.c trunk/reactos/drivers/network/lan/include/precomp.h trunk/reactos/drivers/network/tcpip/include/precomp.h trunk/reactos/drivers/network/tcpip/tests/tests/ipreceive.c trunk/reactos/drivers/network/tcpip/tests/tests/tigetprotocolnumber.c trunk/reactos/lib/drivers/oskittcp/include/oskitdebug.h trunk/reactos/lib/drivers/oskittcp/include/oskittcp.h trunk/reactos/lib/drivers/oskittcp/oskittcp/uipc_socket.c trunk/reactos/ntoskrnl/ke/i386/ctxswitch.S trunk/reactos/ntoskrnl/ke/powerpc/main_asm.S trunk/reactos/tools/rbuild/project.cpp trunk/reactos/tools/rbuild/rbuild.cpp trunk/reactos/tools/rbuild/rbuild.h Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcpcsvc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/dhcpcsv…
============================================================================== --- trunk/reactos/dll/win32/dhcpcsvc/dhcpcsvc.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/dhcpcsvc/dhcpcsvc.c [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -6,7 +6,6 @@ * COPYRIGHT: Copyright 2005 Art Yerkes <ayerkes(a)speakeasy.net> */ -#include <roscfg.h> #include <winsock2.h> #include <dhcpcsdk.h> #include <time.h> Modified: trunk/reactos/dll/win32/iphlpapi/ipstats_reactos.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/ipstats…
============================================================================== --- trunk/reactos/dll/win32/iphlpapi/ipstats_reactos.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/iphlpapi/ipstats_reactos.c [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -19,7 +19,6 @@ * tcpip.sys */ -#include <roscfg.h> #include <stdio.h> #include "iphlpapi_private.h" Modified: trunk/reactos/dll/win32/ws2_32/include/upcall.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/include/u…
============================================================================== --- trunk/reactos/dll/win32/ws2_32/include/upcall.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/ws2_32/include/upcall.h [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -6,8 +6,6 @@ */ #ifndef __UPCALL_H #define __UPCALL_H - -#include <ws2_32.h> BOOL WSPAPI Modified: trunk/reactos/dll/win32/ws2_32/include/ws2_32.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/include/w…
============================================================================== --- trunk/reactos/dll/win32/ws2_32/include/ws2_32.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/ws2_32/include/ws2_32.h [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -8,7 +8,6 @@ #define __WS2_32_H #define WIN32_NO_STATUS -#include <roscfg.h> #include <winsock2.h> #include <ws2spi.h> #include <ws2tcpip.h> Modified: trunk/reactos/dll/win32/ws2_32/misc/dllmain.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/dllm…
============================================================================== --- trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -8,7 +8,6 @@ * CSH 01/09-2000 Created */ -#include <roscfg.h> #include <w32api.h> #include <ws2_32.h> #include <catalog.h> Modified: trunk/reactos/dll/win32/ws2_32/misc/sndrcv.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/sndr…
============================================================================== --- trunk/reactos/dll/win32/ws2_32/misc/sndrcv.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/ws2_32/misc/sndrcv.c [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -8,7 +8,6 @@ * CSH 01/09-2000 Created */ -#include <roscfg.h> #include <w32api.h> #include <ws2_32.h> #include <catalog.h> Modified: trunk/reactos/dll/win32/ws2_32/misc/upcall.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/upca…
============================================================================== --- trunk/reactos/dll/win32/ws2_32/misc/upcall.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/ws2_32/misc/upcall.c [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -7,7 +7,6 @@ * REVISIONS: * CSH 01/09-2000 Created */ -#include <roscfg.h> #include <ws2_32.h> #include <catalog.h> #include <handle.h> Modified: trunk/reactos/drivers/network/dd/ne2000/ne2000/8390.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/dd/ne2000/…
============================================================================== --- trunk/reactos/drivers/network/dd/ne2000/ne2000/8390.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/dd/ne2000/ne2000/8390.c [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -7,7 +7,6 @@ * REVISIONS: * CSH 27/08-2000 Created */ -#include <roscfg.h> #include <ne2000.h> #include <debug.h> Modified: trunk/reactos/drivers/network/dd/ne2000/ne2000/main.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/dd/ne2000/…
============================================================================== --- trunk/reactos/drivers/network/dd/ne2000/ne2000/main.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/dd/ne2000/ne2000/main.c [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -7,7 +7,6 @@ * REVISIONS: * CSH 27/08-2000 Created */ -#include <roscfg.h> #include <ne2000.h> #include <debug.h> Modified: trunk/reactos/drivers/network/lan/include/precomp.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/lan/includ…
============================================================================== --- trunk/reactos/drivers/network/lan/include/precomp.h [iso-8859-1] (original) +++ trunk/reactos/drivers/network/lan/include/precomp.h [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -4,7 +4,6 @@ #include <limits.h> #include <ntddk.h> #include <ndis.h> -#include <roscfg.h> #include <debug.h> #include <pseh.h> #include "net_lan.h" Modified: trunk/reactos/drivers/network/tcpip/include/precomp.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/incl…
============================================================================== --- trunk/reactos/drivers/network/tcpip/include/precomp.h [iso-8859-1] (original) +++ trunk/reactos/drivers/network/tcpip/include/precomp.h [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -1,11 +1,9 @@ -#include <roscfg.h> #include <limits.h> #include <ntddk.h> #include <ntifs.h> #include <tdi.h> #include <tdistat.h> #include <../recmutex/recmutex.h> -#include <roscfg.h> #include <tcpip.h> #include <loopback.h> #include <ip.h> Modified: trunk/reactos/drivers/network/tcpip/tests/tests/ipreceive.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/test…
============================================================================== --- trunk/reactos/drivers/network/tcpip/tests/tests/ipreceive.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/tcpip/tests/tests/ipreceive.c [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -1,4 +1,3 @@ -#include <roscfg.h> #include "../../include/precomp.h" #include "regtests.h" Modified: trunk/reactos/drivers/network/tcpip/tests/tests/tigetprotocolnumber.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/test…
============================================================================== --- trunk/reactos/drivers/network/tcpip/tests/tests/tigetprotocolnumber.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/tcpip/tests/tests/tigetprotocolnumber.c [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -1,4 +1,3 @@ -#include <roscfg.h> #include "../../include/precomp.h" #include "regtests.h" Modified: trunk/reactos/lib/drivers/oskittcp/include/oskitdebug.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/oskittcp/inclu…
============================================================================== --- trunk/reactos/lib/drivers/oskittcp/include/oskitdebug.h [iso-8859-1] (original) +++ trunk/reactos/lib/drivers/oskittcp/include/oskitdebug.h [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -33,9 +33,6 @@ #define OSK_DEBUG_CPOINT 0x00800000 #define OSK_DEBUG_ULTRA 0xFFFFFFFF -#ifndef _MSC_VER -#include <roscfg.h> -#endif/*_MSC_VER*/ #include <oskittypes.h> #ifdef DBG Modified: trunk/reactos/lib/drivers/oskittcp/include/oskittcp.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/oskittcp/inclu…
============================================================================== --- trunk/reactos/lib/drivers/oskittcp/include/oskittcp.h [iso-8859-1] (original) +++ trunk/reactos/lib/drivers/oskittcp/include/oskittcp.h [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -5,9 +5,6 @@ #include <netinet/in.h> #endif -#ifndef _MSC_VER -#include <roscfg.h> -#endif/*_MSC_VER*/ #ifdef KERNEL #include <sys/param.h> #include <sys/systm.h> Modified: trunk/reactos/lib/drivers/oskittcp/oskittcp/uipc_socket.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/oskittcp/oskit…
============================================================================== --- trunk/reactos/lib/drivers/oskittcp/oskittcp/uipc_socket.c [iso-8859-1] (original) +++ trunk/reactos/lib/drivers/oskittcp/oskittcp/uipc_socket.c [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -33,9 +33,6 @@ * @(#)uipc_socket.c 8.3 (Berkeley) 4/15/94 */ -#ifndef _MSC_VER -#include <roscfg.h> -#endif/*_MSC_VER*/ #include <sys/param.h> #include <sys/systm.h> #include <sys/proc.h> Modified: trunk/reactos/ntoskrnl/ke/i386/ctxswitch.S URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/ctxswitch…
============================================================================== --- trunk/reactos/ntoskrnl/ke/i386/ctxswitch.S [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/i386/ctxswitch.S [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -10,7 +10,6 @@ /* INCLUDES ******************************************************************/ -//#include <roscfg.h> #include <ndk/asm.h> .intel_syntax noprefix Modified: trunk/reactos/ntoskrnl/ke/powerpc/main_asm.S URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/powerpc/main_a…
============================================================================== --- trunk/reactos/ntoskrnl/ke/powerpc/main_asm.S [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/powerpc/main_asm.S [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -1,4 +1,3 @@ -#include <roscfg.h> #include <ndk/asm.h> #define AP_MAGIC (0x12481020) Modified: trunk/reactos/tools/rbuild/project.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/project.cpp?r…
============================================================================== --- trunk/reactos/tools/rbuild/project.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/rbuild/project.cpp [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -251,69 +251,6 @@ } void -Project::SetConfigurationOption ( char* s, - string name, - string alternativeName ) -{ - const Property* property = LookupProperty ( name ); - if ( property != NULL && property->value.length () > 0 ) - { - s = s + sprintf ( s, - "#define %s=%s\n", - property->name.c_str (), - property->value.c_str () ); - } - else if ( property != NULL ) - { - s = s + sprintf ( s, - "#define %s\n", - property->name.c_str () ); - } - else if ( !alternativeName.empty() ) - { - s = s + sprintf ( s, - "#define %s\n", - alternativeName.c_str () ); - } -} - -void -Project::SetConfigurationOption ( char* s, - string name ) -{ - SetConfigurationOption ( s, name, "" ); -} - -void -Project::WriteConfigurationFile () -{ - char* buf; - char* s; - - buf = (char*) malloc ( 10*1024 ); - if ( buf == NULL ) - throw OutOfMemoryException (); - - s = buf; - s = s + sprintf ( s, "/* Automatically generated. " ); - s = s + sprintf ( s, "Edit config.xml to change configuration */\n" ); - s = s + sprintf ( s, "#ifndef __INCLUDE_CONFIG_H\n" ); - s = s + sprintf ( s, "#define __INCLUDE_CONFIG_H\n" ); - - SetConfigurationOption ( s, "ARCH" ); - SetConfigurationOption ( s, "OPTIMIZED" ); - SetConfigurationOption ( s, "MP", "UP"); - SetConfigurationOption ( s, "ACPI" ); - SetConfigurationOption ( s, "_3GB" ); - - s = s + sprintf ( s, "#endif /* __INCLUDE_CONFIG_H */\n" ); - - FileSupportCode::WriteIfChanged ( buf, Environment::GetIntermediatePath() + sSep + "include" + sSep + "roscfg.h" ); - - free ( buf ); -} - -void Project::ExecuteInvocations () { for ( size_t i = 0; i < modules.size (); i++ ) Modified: trunk/reactos/tools/rbuild/rbuild.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/rbuild.cpp?re…
============================================================================== --- trunk/reactos/tools/rbuild/rbuild.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/rbuild/rbuild.cpp [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -329,7 +329,6 @@ project, configuration ) ); - project.WriteConfigurationFile (); project.ExecuteInvocations (); project.GetBackend().Process(); Modified: trunk/reactos/tools/rbuild/rbuild.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/rbuild.h?rev=…
============================================================================== --- trunk/reactos/tools/rbuild/rbuild.h [iso-8859-1] (original) +++ trunk/reactos/tools/rbuild/rbuild.h [iso-8859-1] Sun Sep 21 08:00:40 2008 @@ -243,7 +243,6 @@ ~Project (); void SetBackend ( Backend* backend ) { _backend = backend; } Backend& GetBackend() { return *_backend; } - void WriteConfigurationFile (); void ExecuteInvocations (); void ProcessXML ( const std::string& path ); @@ -254,11 +253,6 @@ const Property* LookupProperty ( const std::string& name ) const; private: std::string ResolveNextProperty ( const std::string& s ) const; - void SetConfigurationOption ( char* s, - std::string name, - std::string alternativeName ); - void SetConfigurationOption ( char* s, - std::string name ); void ReadXml (); void ProcessXMLSubElement ( const XMLElement& e, const std::string& path,
16 years, 3 months
1
0
0
0
[cgutman] 36372: - Merge aicom-network-fixes up to r36371
by cgutman@svn.reactos.org
Author: cgutman Date: Sun Sep 21 07:41:26 2008 New Revision: 36372 URL:
http://svn.reactos.org/svn/reactos?rev=36372&view=rev
Log: - Merge aicom-network-fixes up to r36371 Modified: trunk/reactos/drivers/network/afd/include/afd.h trunk/reactos/drivers/network/ndis/ndis/io.c trunk/reactos/drivers/network/ndis/ndis/miniport.c trunk/reactos/drivers/network/ndis/ndis/protocol.c trunk/reactos/drivers/network/tcpip/tcpip/pool.c Modified: trunk/reactos/drivers/network/afd/include/afd.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/includ…
============================================================================== --- trunk/reactos/drivers/network/afd/include/afd.h [iso-8859-1] (original) +++ trunk/reactos/drivers/network/afd/include/afd.h [iso-8859-1] Sun Sep 21 07:41:26 2008 @@ -97,7 +97,7 @@ #define FUNCTION_CLOSE 5 #define MAX_FUNCTIONS 6 -#define IN_FLIGHT_REQUESTS 3 +#define IN_FLIGHT_REQUESTS 4 #define EXTRA_LOCK_BUFFERS 2 /* Number of extra buffers needed * for ancillary data on packet Modified: trunk/reactos/drivers/network/ndis/ndis/io.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
============================================================================== --- trunk/reactos/drivers/network/ndis/ndis/io.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/ndis/ndis/io.c [iso-8859-1] Sun Sep 21 07:41:26 2008 @@ -28,37 +28,15 @@ * SystemArgument2 = Unused */ { - BOOLEAN WasBusy; PLOGICAL_ADAPTER Adapter = GET_LOGICAL_ADAPTER(DeferredContext); NDIS_DbgPrint(MAX_TRACE, ("Called.\n")); ASSERT(KeGetCurrentIrql() == DISPATCH_LEVEL); - - /* XXX try to grok WasBusy */ - KeAcquireSpinLockAtDpcLevel(&Adapter->NdisMiniportBlock.Lock); - { - WasBusy = Adapter->MiniportBusy; - Adapter->MiniportBusy = TRUE; - } - KeReleaseSpinLockFromDpcLevel(&Adapter->NdisMiniportBlock.Lock); /* Call the deferred interrupt service handler for this adapter */ (*Adapter->NdisMiniportBlock.DriverHandle->MiniportCharacteristics.HandleInterruptHandler)( Adapter->NdisMiniportBlock.MiniportAdapterContext); - - KeAcquireSpinLockAtDpcLevel(&Adapter->NdisMiniportBlock.Lock); - { - if ((!WasBusy) && (Adapter->WorkQueueHead)) - { - KeInsertQueueDpc(&Adapter->NdisMiniportBlock.DeferredDpc, NULL, NULL); - } - else - { - Adapter->MiniportBusy = WasBusy; - } - } - KeReleaseSpinLockFromDpcLevel(&Adapter->NdisMiniportBlock.Lock); /* re-enable the interrupt */ NDIS_DbgPrint(MAX_TRACE, ("re-enabling the interrupt\n")); Modified: trunk/reactos/drivers/network/ndis/ndis/miniport.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
============================================================================== --- trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] Sun Sep 21 07:41:26 2008 @@ -309,10 +309,11 @@ VOID NTAPI MiniRequestComplete( - IN PNDIS_MINIPORT_BLOCK Adapter, + IN PNDIS_HANDLE MiniportAdapterHandle, IN PNDIS_REQUEST Request, IN NDIS_STATUS Status) { + PLOGICAL_ADAPTER Adapter = (PLOGICAL_ADAPTER)MiniportAdapterHandle; PNDIS_REQUEST_MAC_BLOCK MacBlock = (PNDIS_REQUEST_MAC_BLOCK)Request->MacReserved; KIRQL OldIrql; @@ -326,6 +327,7 @@ Status); } KeLowerIrql(OldIrql); + Adapter->MiniportBusy = FALSE; } VOID NTAPI @@ -342,6 +344,7 @@ * Status = Status of send operation */ { + PLOGICAL_ADAPTER Adapter = MiniportAdapterHandle; PADAPTER_BINDING AdapterBinding; KIRQL OldIrql; @@ -355,6 +358,7 @@ Packet, Status); KeLowerIrql(OldIrql); + Adapter->MiniportBusy = FALSE; } @@ -375,6 +379,7 @@ IN NDIS_STATUS Status, IN UINT BytesTransferred) { + PLOGICAL_ADAPTER Adapter = MiniportAdapterHandle; PADAPTER_BINDING AdapterBinding; KIRQL OldIrql; @@ -388,6 +393,7 @@ Packet, Status); KeLowerIrql(OldIrql); + Adapter->MiniportBusy = FALSE; } @@ -655,6 +661,12 @@ NDIS_DbgPrint(MAX_TRACE, ("Called.\n")); + if (Adapter->MiniportBusy) { + NDIS_DbgPrint(MID_TRACE, ("Waiting for miniport to become free.\n")); + KeInsertQueueDpc(&Adapter->NdisMiniportBlock.DeferredDpc, NULL, NULL); + return NDIS_STATUS_FAILURE; + } + Item = Adapter->WorkQueueHead; if (Item) @@ -669,6 +681,8 @@ *WorkItemContext = Item->WorkItemContext; ExFreePool(Item); + + Adapter->MiniportBusy = TRUE; return NDIS_STATUS_SUCCESS; } @@ -738,14 +752,15 @@ IN NDIS_HANDLE MiniportAdapterHandle, IN NDIS_STATUS Status) { - PNDIS_MINIPORT_BLOCK MiniportBlock = - (PNDIS_MINIPORT_BLOCK)MiniportAdapterHandle; + PLOGICAL_ADAPTER Adapter = + (PLOGICAL_ADAPTER)MiniportAdapterHandle; KIRQL OldIrql; - ASSERT(MiniportBlock); + ASSERT(Adapter); KeRaiseIrql(DISPATCH_LEVEL, &OldIrql); - if( MiniportBlock->QueryCompleteHandler ) - (MiniportBlock->QueryCompleteHandler)(MiniportAdapterHandle, Status); + if( Adapter->NdisMiniportBlock.QueryCompleteHandler ) + (Adapter->NdisMiniportBlock.QueryCompleteHandler)(MiniportAdapterHandle, Status); KeLowerIrql(OldIrql); + Adapter->MiniportBusy = FALSE; } VOID NTAPI MiniportWorker(IN PVOID WorkItem) @@ -783,6 +798,7 @@ NDIS_DbgPrint(MAX_TRACE, ("Calling miniport's SendPackets handler\n")); (*Adapter->NdisMiniportBlock.DriverHandle->MiniportCharacteristics.SendPacketsHandler)( Adapter->NdisMiniportBlock.MiniportAdapterContext, (PPNDIS_PACKET)&WorkItemContext, 1); + NdisStatus = NDIS_GET_PACKET_STATUS((PNDIS_PACKET)WorkItemContext); } else { @@ -794,9 +810,15 @@ Adapter->NdisMiniportBlock.MiniportAdapterContext, (PPNDIS_PACKET)&WorkItemContext, 1); } KeLowerIrql(RaiseOldIrql); + + NdisStatus = NDIS_GET_PACKET_STATUS((PNDIS_PACKET)WorkItemContext); + if( NdisStatus == NDIS_STATUS_RESOURCES ) { + KeAcquireSpinLock(&Adapter->NdisMiniportBlock.Lock, &OldIrql); + MiniQueueWorkItem(Adapter, WorkItemType, WorkItemContext); + KeReleaseSpinLock(&Adapter->NdisMiniportBlock.Lock, OldIrql); + break; + } } - - NdisStatus = NDIS_GET_PACKET_STATUS((PNDIS_PACKET)WorkItemContext); } else { @@ -816,15 +838,18 @@ Adapter->NdisMiniportBlock.MiniportAdapterContext, (PNDIS_PACKET)WorkItemContext, 0); NDIS_DbgPrint(MAX_TRACE, ("back from miniport's send handler\n")); KeLowerIrql(RaiseOldIrql); + if( NdisStatus == NDIS_STATUS_RESOURCES ) { + KeAcquireSpinLock(&Adapter->NdisMiniportBlock.Lock, &OldIrql); + MiniQueueWorkItem(Adapter, WorkItemType, WorkItemContext); + KeReleaseSpinLock(&Adapter->NdisMiniportBlock.Lock, OldIrql); + break; + } } } - if( NdisStatus == NDIS_STATUS_RESOURCES ) - MiniQueueWorkItem(Adapter, WorkItemType, WorkItemContext); - else if( NdisStatus != NDIS_STATUS_PENDING ) { + if( NdisStatus != NDIS_STATUS_PENDING ) { NdisMSendComplete ( Adapter, (PNDIS_PACKET)WorkItemContext, NdisStatus ); - Adapter->MiniportBusy = FALSE; } break; @@ -834,7 +859,9 @@ */ /* XXX atm ProIndicatePacket sends a packet up via the loopback adapter only */ NdisStatus = ProIndicatePacket(Adapter, (PNDIS_PACKET)WorkItemContext); - MiniSendComplete((NDIS_HANDLE)Adapter, (PNDIS_PACKET)WorkItemContext, NdisStatus); + + if( NdisStatus != NDIS_STATUS_PENDING ) + MiniSendComplete((NDIS_HANDLE)Adapter, (PNDIS_PACKET)WorkItemContext, NdisStatus); break; case NdisWorkItemReturnPackets: @@ -859,12 +886,12 @@ { case NdisRequestQueryInformation: NdisMQueryInformationComplete((NDIS_HANDLE)Adapter, NdisStatus); - MiniRequestComplete( &Adapter->NdisMiniportBlock, (PNDIS_REQUEST)WorkItemContext, NdisStatus ); + MiniRequestComplete( (NDIS_HANDLE)Adapter, (PNDIS_REQUEST)WorkItemContext, NdisStatus ); break; case NdisRequestSetInformation: NdisMSetInformationComplete((NDIS_HANDLE)Adapter, NdisStatus); - MiniRequestComplete( &Adapter->NdisMiniportBlock, (PNDIS_REQUEST)WorkItemContext, NdisStatus ); + MiniRequestComplete( (NDIS_HANDLE)Adapter, (PNDIS_REQUEST)WorkItemContext, NdisStatus ); break; default: @@ -878,6 +905,9 @@ break; } } + + if( NdisStatus != NDIS_STATUS_PENDING ) + Adapter->MiniportBusy = FALSE; ExFreePool(WorkItem); } @@ -1988,10 +2018,14 @@ IN NDIS_HANDLE MiniportAdapterHandle, IN NDIS_STATUS Status) { + PLOGICAL_ADAPTER Adapter = + (PLOGICAL_ADAPTER)MiniportAdapterHandle; KIRQL OldIrql; + ASSERT(Adapter); KeRaiseIrql(DISPATCH_LEVEL, &OldIrql); - (*((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->SetCompleteHandler)(MiniportAdapterHandle, Status); + (Adapter->NdisMiniportBlock.SetCompleteHandler)(MiniportAdapterHandle, Status); KeLowerIrql(OldIrql); + Adapter->MiniportBusy = FALSE; } Modified: trunk/reactos/drivers/network/ndis/ndis/protocol.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
============================================================================== --- trunk/reactos/drivers/network/ndis/ndis/protocol.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/ndis/ndis/protocol.c [iso-8859-1] Sun Sep 21 07:41:26 2008 @@ -143,11 +143,6 @@ { if(Adapter->MiniportBusy) QueueWorkItem = TRUE; - else - { - NDIS_DbgPrint(MAX_TRACE, ("Setting adapter 0x%x to busy\n")); - Adapter->MiniportBusy = TRUE; - } } /* MiniQueueWorkItem must be called at IRQL >= DISPATCH_LEVEL */ @@ -160,18 +155,10 @@ KeReleaseSpinLock(&Adapter->NdisMiniportBlock.Lock, OldIrql); - NdisStatus = MiniDoRequest(&Adapter->NdisMiniportBlock, NdisRequest); - - NDIS_DbgPrint(MAX_TRACE, ("acquiring miniport block lock\n")); - KeAcquireSpinLock(&Adapter->NdisMiniportBlock.Lock, &OldIrql); - { - NDIS_DbgPrint(MAX_TRACE, ("Setting adapter 0x%x to free\n")); - Adapter->MiniportBusy = FALSE; - - if (Adapter->WorkQueueHead) - KeInsertQueueDpc(&Adapter->NdisMiniportBlock.DeferredDpc, NULL, NULL); - } - KeReleaseSpinLock(&Adapter->NdisMiniportBlock.Lock, OldIrql); + NdisStatus = MiniDoRequest(&Adapter->NdisMiniportBlock, NdisRequest); + + if( NdisStatus == NDIS_STATUS_PENDING ) + Adapter->MiniportBusy = TRUE; return NdisStatus; } Modified: trunk/reactos/drivers/network/tcpip/tcpip/pool.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/tcpi…
============================================================================== --- trunk/reactos/drivers/network/tcpip/tcpip/pool.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/tcpip/tcpip/pool.c [iso-8859-1] Sun Sep 21 07:41:26 2008 @@ -25,8 +25,6 @@ /* FIXME: Get buffer from a free buffer pool with enough room */ Buffer = ExAllocatePool(NonPagedPool, Size); - - RtlZeroMemory(Buffer, Size); TI_DbgPrint(DEBUG_MEMORY, ("Allocated (%i) bytes at (0x%X).\n", Size, Buffer));
16 years, 3 months
1
0
0
0
[cgutman] 36371: - There are 4 in flight requests not 3
by cgutman@svn.reactos.org
Author: cgutman Date: Sun Sep 21 07:31:14 2008 New Revision: 36371 URL:
http://svn.reactos.org/svn/reactos?rev=36371&view=rev
Log: - There are 4 in flight requests not 3 Modified: branches/aicom-network-fixes/drivers/network/afd/include/afd.h Modified: branches/aicom-network-fixes/drivers/network/afd/include/afd.h URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
============================================================================== --- branches/aicom-network-fixes/drivers/network/afd/include/afd.h [iso-8859-1] (original) +++ branches/aicom-network-fixes/drivers/network/afd/include/afd.h [iso-8859-1] Sun Sep 21 07:31:14 2008 @@ -97,7 +97,7 @@ #define FUNCTION_CLOSE 5 #define MAX_FUNCTIONS 6 -#define IN_FLIGHT_REQUESTS 3 +#define IN_FLIGHT_REQUESTS 4 #define EXTRA_LOCK_BUFFERS 2 /* Number of extra buffers needed * for ancillary data on packet
16 years, 3 months
1
0
0
0
[gbrunmar] 36370: D3D9: * Added stubs for IDirect3DTexture9 methods * Implemented IDirect3DTexture9::GetDevice() * Moved device locking to the D3D9BaseObject instead of in each child object
by gbrunmar@svn.reactos.org
Author: gbrunmar Date: Sun Sep 21 07:25:38 2008 New Revision: 36370 URL:
http://svn.reactos.org/svn/reactos?rev=36370&view=rev
Log: D3D9: * Added stubs for IDirect3DTexture9 methods * Implemented IDirect3DTexture9::GetDevice() * Moved device locking to the D3D9BaseObject instead of in each child object Modified: trunk/reactos/dll/directx/d3d9/d3d9_baseobject.c trunk/reactos/dll/directx/d3d9/d3d9_baseobject.h trunk/reactos/dll/directx/d3d9/d3d9_device.c trunk/reactos/dll/directx/d3d9/d3d9_mipmap.c trunk/reactos/dll/directx/d3d9/d3d9_mipmap.h trunk/reactos/dll/directx/d3d9/d3d9_resource.h trunk/reactos/dll/directx/d3d9/d3d9_swapchain.c trunk/reactos/dll/directx/d3d9/d3d9_texture.h Modified: trunk/reactos/dll/directx/d3d9/d3d9_baseobject.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/d3d9/d3d9_base…
============================================================================== --- trunk/reactos/dll/directx/d3d9/d3d9_baseobject.c [iso-8859-1] (original) +++ trunk/reactos/dll/directx/d3d9/d3d9_baseobject.c [iso-8859-1] Sun Sep 21 07:25:38 2008 @@ -66,7 +66,7 @@ { if (pBaseObject->pUnknown) { - return pBaseObject->pUnknown->lpVtbl->QueryInterface((IUnknown*) &pBaseObject->pUnknown->lpVtbl, &IID_IDirect3DDevice9, (void**)ppDevice); + return IUnknown_QueryInterface(pBaseObject->pUnknown, &IID_IDirect3DDevice9, (void**)ppDevice); } return E_NOINTERFACE; @@ -74,10 +74,15 @@ HRESULT D3D9BaseObject_GetDeviceInt(D3D9BaseObject* pBaseObject, DIRECT3DDEVICE9_INT** ppDevice) { + if (NULL == ppDevice) + return D3DERR_INVALIDCALL; + + *ppDevice = NULL; + if (pBaseObject->pUnknown) { LPDIRECT3DDEVICE9 pDevice; - if (FAILED(pBaseObject->pUnknown->lpVtbl->QueryInterface((IUnknown*) &pBaseObject->pUnknown->lpVtbl, &IID_IDirect3DDevice9, (void**)&pDevice))) + if (FAILED(IUnknown_QueryInterface(pBaseObject->pUnknown, &IID_IDirect3DDevice9, (void**)&pDevice))) return E_NOINTERFACE; *ppDevice = IDirect3DDevice9ToImpl(pDevice); @@ -86,3 +91,23 @@ return E_NOINTERFACE; } + +VOID D3D9BaseObject_LockDevice(D3D9BaseObject* pBaseObject) +{ + DIRECT3DDEVICE9_INT* pDevice; + if (FAILED(D3D9BaseObject_GetDeviceInt(pBaseObject, &pDevice))) + return; + + if (pDevice->bLockDevice) + EnterCriticalSection(&pDevice->CriticalSection); +} + +VOID D3D9BaseObject_UnlockDevice(D3D9BaseObject* pBaseObject) +{ + DIRECT3DDEVICE9_INT* pDevice; + if (FAILED(D3D9BaseObject_GetDeviceInt(pBaseObject, &pDevice))) + return; + + if (pDevice->bLockDevice) + LeaveCriticalSection(&pDevice->CriticalSection); +} Modified: trunk/reactos/dll/directx/d3d9/d3d9_baseobject.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/d3d9/d3d9_base…
============================================================================== --- trunk/reactos/dll/directx/d3d9/d3d9_baseobject.h [iso-8859-1] (original) +++ trunk/reactos/dll/directx/d3d9/d3d9_baseobject.h [iso-8859-1] Sun Sep 21 07:25:38 2008 @@ -44,5 +44,7 @@ ULONG D3D9BaseObject_Release(D3D9BaseObject* pBaseObject); HRESULT D3D9BaseObject_GetDevice(D3D9BaseObject* pBaseObject, IDirect3DDevice9** ppDevice); HRESULT D3D9BaseObject_GetDeviceInt(D3D9BaseObject* pBaseObject, struct _Direct3DDevice9_INT** ppDevice); +VOID D3D9BaseObject_LockDevice(D3D9BaseObject* pBaseObject); +VOID D3D9BaseObject_UnlockDevice(D3D9BaseObject* pBaseObject); #endif // _D3D9_BASEOBJECT_H_ Modified: trunk/reactos/dll/directx/d3d9/d3d9_device.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/d3d9/d3d9_devi…
============================================================================== --- trunk/reactos/dll/directx/d3d9/d3d9_device.c [iso-8859-1] (original) +++ trunk/reactos/dll/directx/d3d9/d3d9_device.c [iso-8859-1] Sun Sep 21 07:25:38 2008 @@ -15,7 +15,7 @@ #define LOCK_D3DDEVICE9() if (This->bLockDevice) EnterCriticalSection(&This->CriticalSection); #define UNLOCK_D3DDEVICE9() if (This->bLockDevice) LeaveCriticalSection(&This->CriticalSection); -/* Convert a IDirect3D9 pointer safely to the internal implementation struct */ +/* Convert a IDirect3DDevice9 pointer safely to the internal implementation struct */ LPDIRECT3DDEVICE9_INT IDirect3DDevice9ToImpl(LPDIRECT3DDEVICE9 iface) { if (NULL == iface) Modified: trunk/reactos/dll/directx/d3d9/d3d9_mipmap.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/d3d9/d3d9_mipm…
============================================================================== --- trunk/reactos/dll/directx/d3d9/d3d9_mipmap.c [iso-8859-1] (original) +++ trunk/reactos/dll/directx/d3d9/d3d9_mipmap.c [iso-8859-1] Sun Sep 21 07:25:38 2008 @@ -8,10 +8,252 @@ #include "d3d9_mipmap.h" #include "debug.h" #include "d3d9_device.h" +#include "d3d9_helpers.h" +#include <d3d9.h> + +#define LOCK_D3DDEVICE9() D3D9BaseObject_LockDevice(&This->BaseTexture.BaseResource.BaseObject) +#define UNLOCK_D3DDEVICE9() D3D9BaseObject_UnlockDevice(&This->BaseTexture.BaseResource.BaseObject) + +/* Convert a IDirect3DTexture9 pointer safely to the internal implementation struct */ +LPD3D9MIPMAP IDirect3DTexture9ToImpl(LPDIRECT3DTEXTURE9 iface) +{ + if (NULL == iface) + return NULL; + + return (LPD3D9MIPMAP)((ULONG_PTR)iface - FIELD_OFFSET(D3D9MipMap, lpVtbl)); +} + +/* IUnknown */ +static HRESULT WINAPI D3D9MipMap_QueryInterface(LPDIRECT3DTEXTURE9 iface, REFIID riid, void** ppvObject) +{ + LPD3D9MIPMAP This = IDirect3DTexture9ToImpl(iface); + + if (IsEqualGUID(riid, &IID_IUnknown) || + IsEqualGUID(riid, &IID_IDirect3DTexture9) || + IsEqualGUID(riid, &IID_IDirect3DBaseTexture9) || + IsEqualGUID(riid, &IID_IDirect3DResource9)) + { + IUnknown_AddRef(iface); + *ppvObject = &This->lpVtbl; + return D3D_OK; + } + + *ppvObject = NULL; + return E_NOINTERFACE; +} + +ULONG WINAPI D3D9MipMap_AddRef(LPDIRECT3DTEXTURE9 iface) +{ + LPD3D9MIPMAP This = IDirect3DTexture9ToImpl(iface); + return D3D9BaseObject_AddRef(&This->BaseTexture.BaseResource.BaseObject); +} + +ULONG WINAPI D3D9MipMap_Release(LPDIRECT3DTEXTURE9 iface) +{ + LPD3D9MIPMAP This = IDirect3DTexture9ToImpl(iface); + return D3D9BaseObject_Release(&This->BaseTexture.BaseResource.BaseObject); +} + +/* IDirect3DBaseTexture9 */ + +/*++ +* @name IDirect3DTexture9::GetDevice +* @implemented +* +* The function D3D9MipMap_GetDevice sets the ppDevice argument +* to the device connected to create the swap chain. +* +* @param LPDIRECT3DTEXTURE9 iface +* Pointer to a IDirect3DTexture9 object returned from IDirect3D9Device::CreateTexture() +* +* @param IDirect3DDevice9** ppDevice +* Pointer to a IDirect3DDevice9* structure to be set to the device object. +* +* @return HRESULT +* If the method successfully sets the ppDevice value, the return value is D3D_OK. +* If ppDevice is a bad pointer the return value will be D3DERR_INVALIDCALL. +* If the texture didn't contain any device, the return value will be D3DERR_INVALIDDEVICE. +* +*/HRESULT WINAPI D3D9MipMap_GetDevice(LPDIRECT3DTEXTURE9 iface, IDirect3DDevice9** ppDevice) +{ + LPD3D9MIPMAP This = IDirect3DTexture9ToImpl(iface); + LOCK_D3DDEVICE9(); + + if (NULL == ppDevice) + { + DPRINT1("Invalid ppDevice parameter specified"); + UNLOCK_D3DDEVICE9(); + return D3DERR_INVALIDCALL; + } + + if (FAILED(D3D9BaseObject_GetDevice(&This->BaseTexture.BaseResource.BaseObject, ppDevice))) + { + DPRINT1("Invalid This parameter speficied"); + UNLOCK_D3DDEVICE9(); + return D3DERR_INVALIDDEVICE; + } + + UNLOCK_D3DDEVICE9(); + return D3D_OK; +} + +HRESULT WINAPI D3D9MipMap_SetPrivateData(LPDIRECT3DTEXTURE9 iface, REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) +{ + UNIMPLEMENTED + return D3D_OK; +} + +HRESULT WINAPI D3D9MipMap_GetPrivateData(LPDIRECT3DTEXTURE9 iface, REFGUID refguid, void* pData, DWORD* pSizeOfData) +{ + UNIMPLEMENTED + return D3D_OK; +} + +HRESULT WINAPI D3D9MipMap_FreePrivateData(LPDIRECT3DTEXTURE9 iface, REFGUID refguid) +{ + UNIMPLEMENTED + return D3D_OK; +} + +DWORD WINAPI D3D9MipMap_SetPriority(LPDIRECT3DTEXTURE9 iface, DWORD PriorityNew) +{ + UNIMPLEMENTED + return 0; +} + +DWORD WINAPI D3D9MipMap_GetPriority(LPDIRECT3DTEXTURE9 iface) +{ + UNIMPLEMENTED + return 0; +} + +void WINAPI D3D9MipMap_PreLoad(LPDIRECT3DTEXTURE9 iface) +{ + UNIMPLEMENTED +} + +D3DRESOURCETYPE WINAPI D3D9MipMap_GetType(LPDIRECT3DTEXTURE9 iface) +{ + UNIMPLEMENTED + return D3DRTYPE_TEXTURE; +} + +DWORD WINAPI D3D9MipMap_SetLOD(LPDIRECT3DTEXTURE9 iface, DWORD LODNew) +{ + UNIMPLEMENTED + return 0; +} + +DWORD WINAPI D3D9MipMap_GetLOD(LPDIRECT3DTEXTURE9 iface) +{ + UNIMPLEMENTED + return 0; +} + +DWORD WINAPI D3D9MipMap_GetLevelCount(LPDIRECT3DTEXTURE9 iface) +{ + UNIMPLEMENTED + return 0; +} + +HRESULT WINAPI D3D9MipMap_SetAutoGenFilterType(LPDIRECT3DTEXTURE9 iface, D3DTEXTUREFILTERTYPE FilterType) +{ + UNIMPLEMENTED + return D3D_OK; +} + +D3DTEXTUREFILTERTYPE WINAPI D3D9MipMap_GetAutoGenFilterType(LPDIRECT3DTEXTURE9 iface) +{ + UNIMPLEMENTED + return D3DRTYPE_TEXTURE; +} + +void WINAPI D3D9MipMap_GenerateMipSubLevels(LPDIRECT3DTEXTURE9 iface) +{ + UNIMPLEMENTED +} + +/* IDirect3DTexture9 */ +HRESULT WINAPI D3D9MipMap_GetLevelDesc(LPDIRECT3DTEXTURE9 iface, UINT Level, D3DSURFACE_DESC* pDesc) +{ + UNIMPLEMENTED + return D3D_OK; +} + +HRESULT WINAPI D3D9MipMap_GetSurfaceLevel(LPDIRECT3DTEXTURE9 iface, UINT Level, IDirect3DSurface9** ppSurfaceLevel) +{ + UNIMPLEMENTED + return D3D_OK; +} + +HRESULT WINAPI D3D9MipMap_LockRect(LPDIRECT3DTEXTURE9 iface, UINT Level, D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) +{ + UNIMPLEMENTED + return D3D_OK; +} + +HRESULT WINAPI D3D9MipMap_UnlockRect(LPDIRECT3DTEXTURE9 iface, UINT Level) +{ + UNIMPLEMENTED + return D3D_OK; +} + +HRESULT WINAPI D3D9MipMap_AddDirtyRect(LPDIRECT3DTEXTURE9 iface, CONST RECT* pDirtyRect) +{ + UNIMPLEMENTED + return D3D_OK; +} + +#if !defined(__cplusplus) || defined(CINTERFACE) +static IDirect3DTexture9Vtbl D3D9MipMap_Vtbl = +{ + /* IUnknown methods */ + D3D9MipMap_QueryInterface, + D3D9MipMap_AddRef, + D3D9MipMap_Release, + + /* IDirect3DBaseTexture9 methods */ + D3D9MipMap_GetDevice, + D3D9MipMap_SetPrivateData, + D3D9MipMap_GetPrivateData, + D3D9MipMap_FreePrivateData, + D3D9MipMap_SetPriority, + D3D9MipMap_GetPriority, + D3D9MipMap_PreLoad, + D3D9MipMap_GetType, + D3D9MipMap_SetLOD, + D3D9MipMap_GetLOD, + D3D9MipMap_GetLevelCount, + D3D9MipMap_SetAutoGenFilterType, + D3D9MipMap_GetAutoGenFilterType, + D3D9MipMap_GenerateMipSubLevels, + + /* IDirect3DTexture9 methods */ + D3D9MipMap_GetLevelDesc, + D3D9MipMap_GetSurfaceLevel, + D3D9MipMap_LockRect, + D3D9MipMap_UnlockRect, + D3D9MipMap_AddDirtyRect, +}; +#endif // !defined(__cplusplus) || defined(CINTERFACE) HRESULT CreateD3D9MipMap(DIRECT3DDEVICE9_INT* pDevice, UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9** ppTexture) { + LPD3D9MIPMAP pThisTexture; + if (FAILED(AlignedAlloc((LPVOID*)&pThisTexture, sizeof(D3D9MipMap)))) + { + DPRINT1("Could not create D3D9MipMap"); + return E_OUTOFMEMORY; + } + + pThisTexture->lpVtbl = &D3D9MipMap_Vtbl; + + pThisTexture->dwWidth = Width; + pThisTexture->dwHeight = Height; + pThisTexture->Format = Format; + + *ppTexture = (IDirect3DTexture9*)pThisTexture->lpVtbl; + UNIMPLEMENTED; return D3D_OK; } - Modified: trunk/reactos/dll/directx/d3d9/d3d9_mipmap.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/d3d9/d3d9_mipm…
============================================================================== --- trunk/reactos/dll/directx/d3d9/d3d9_mipmap.h [iso-8859-1] (original) +++ trunk/reactos/dll/directx/d3d9/d3d9_mipmap.h [iso-8859-1] Sun Sep 21 07:25:38 2008 @@ -14,12 +14,46 @@ typedef struct _D3D9MipMap { -/* 0x0000 */ D3D9Texture BaseTexture; -/* 0x0068 */ DWORD dwUnknown68; +/* 0x0000 */ Direct3DBaseTexture9_INT BaseTexture; +/* 0x0060 */ struct IDirect3DTexture9Vtbl* lpVtbl; +/* 0x0064 */ LPDWORD dwUnknown64; +/* 0x0068 */ D3DFORMAT Format; /* 0x006c */ DWORD dwUnknown6c; /* 0x0070 */ DWORD dwUnknown70; /* 0x0074 */ DWORD dwUnknown74; -} D3D9MipMap; +/* 0x0078 */ DWORD dwUnknown78; +/* 0x007c */ DWORD dwUnknown7c; +/* 0x0080 */ DWORD dwWidth; +/* 0x0084 */ DWORD dwHeight; +/* 0x0088 */ DWORD dwUnknown88; +/* 0x008c */ DWORD dwUnknown8c; +/* 0x0090 */ DWORD dwUnknown90; +/* 0x0094 */ DWORD dwUnknown94; +/* 0x0098 */ DWORD dwUnknown98; +/* 0x009c */ DWORD dwUnknown9c; +/* 0x00a0 */ DWORD dwUnknowna0; +/* 0x00a4 */ DWORD dwUnknowna4; +/* 0x00a8 */ DWORD dwUnknowna8; +/* 0x00ac */ DWORD dwUnknownac; +/* 0x00b0 */ DWORD dwUnknownb0; +/* 0x00b4 */ DWORD dwUnknownb4; +/* 0x00b8 */ DWORD dwUnknownb8; +/* 0x00bc */ DWORD dwUnknownbc; +/* 0x00c0 */ DWORD dwUnknownc0; +/* 0x00c4 */ DWORD dwUnknownc4; +/* 0x00c8 */ DWORD dwUnknownc8; +/* 0x00cc */ DWORD dwUnknowncc; +/* 0x00d0 */ DWORD dwUnknownd0; +/* 0x00d4 */ DWORD dwUnknownd4; +/* 0x00d8 */ DWORD dwUnknownd8; +/* 0x00dc */ DWORD dwUnknowndc; +/* 0x00e0 */ DWORD dwUnknowne0; +/* 0x00e4 */ DWORD dwUnknowne4; +/* 0x00e8 */ DWORD dwUnknowne8; +/* 0x00ec */ DWORD dwUnknownec; +/* 0x00f0 */ DWORD dwUnknownf0; +/* 0x00f4 */ DWORD dwUnknownf4; +} D3D9MipMap, FAR* LPD3D9MIPMAP; HRESULT CreateD3D9MipMap(struct _Direct3DDevice9_INT* pDevice, UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9** ppTexture); Modified: trunk/reactos/dll/directx/d3d9/d3d9_resource.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/d3d9/d3d9_reso…
============================================================================== --- trunk/reactos/dll/directx/d3d9/d3d9_resource.h [iso-8859-1] (original) +++ trunk/reactos/dll/directx/d3d9/d3d9_resource.h [iso-8859-1] Sun Sep 21 07:25:38 2008 @@ -10,7 +10,7 @@ #include "d3d9_baseobject.h" -typedef struct _D3D9Resource +typedef struct _Direct3DResource9_INT { /* 0x0000 */ D3D9BaseObject BaseObject; /* 0x0020 */ DWORD dwUnknown20; @@ -19,9 +19,11 @@ /* 0x002c */ DWORD dwUnknown2c; /* 0x0030 */ DWORD dwUnknown30; /* 0x0034 */ DWORD dwUnknown34; -/* 0x0038 */ DWORD dwUnknown38; +/* 0x0038 */ D3DPOOL Pool; /* 0x003c */ DWORD dwUnknown3c; -/* 0x0040 */ DWORD dwUnknown40; -} D3D9Resource; +/* 0x0040 */ LPDWORD dwUnknown40; +} Direct3DResource9_INT; + + #endif // _D3D9_RESOURCE_H_ Modified: trunk/reactos/dll/directx/d3d9/d3d9_swapchain.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/d3d9/d3d9_swap…
============================================================================== --- trunk/reactos/dll/directx/d3d9/d3d9_swapchain.c [iso-8859-1] (original) +++ trunk/reactos/dll/directx/d3d9/d3d9_swapchain.c [iso-8859-1] Sun Sep 21 07:25:38 2008 @@ -14,10 +14,8 @@ #include "d3d9_device.h" #include "d3d9_cursor.h" -#define LOCK_D3DDEVICE9() if (This->BaseObject.pUnknown && ((LPDIRECT3DDEVICE9_INT)This->BaseObject.pUnknown)->bLockDevice) \ - EnterCriticalSection(&((LPDIRECT3DDEVICE9_INT)This->BaseObject.pUnknown)->CriticalSection); -#define UNLOCK_D3DDEVICE9() if (This->BaseObject.pUnknown && ((LPDIRECT3DDEVICE9_INT)This->BaseObject.pUnknown)->bLockDevice) \ - LeaveCriticalSection(&((LPDIRECT3DDEVICE9_INT)This->BaseObject.pUnknown)->CriticalSection); +#define LOCK_D3DDEVICE9() D3D9BaseObject_LockDevice(&This->BaseObject) +#define UNLOCK_D3DDEVICE9() D3D9BaseObject_UnlockDevice(&This->BaseObject) /* Convert a IDirect3DSwapChain9 pointer safely to the internal implementation struct */ static LPDIRECT3DSWAPCHAIN9_INT IDirect3DSwapChain9ToImpl(LPDIRECT3DSWAPCHAIN9 iface) Modified: trunk/reactos/dll/directx/d3d9/d3d9_texture.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/d3d9/d3d9_text…
============================================================================== --- trunk/reactos/dll/directx/d3d9/d3d9_texture.h [iso-8859-1] (original) +++ trunk/reactos/dll/directx/d3d9/d3d9_texture.h [iso-8859-1] Sun Sep 21 07:25:38 2008 @@ -10,18 +10,18 @@ #include "d3d9_resource.h" -typedef struct _D3D9Texture +typedef struct _Direct3DBaseTexture9_INT { -/* 0x0000 */ D3D9Resource BaseResource; -/* 0x0044 */ DWORD dwUnknown44; -/* 0x0048 */ DWORD dwUnknown48; +/* 0x0000 */ struct IDirect3DBaseTexture9Vtbl* lpVtbl; +/* 0x0004 */ DWORD dwUnknown04; +/* 0x0008 */ Direct3DResource9_INT BaseResource; /* 0x004c */ DWORD dwUnknown4c; /* 0x0050 */ DWORD dwUnknown50; -/* 0x0054 */ DWORD dwUnknown54; -/* 0x0058 */ DWORD dwUnknown58; -/* 0x005c */ DWORD dwUnknown5c; -/* 0x0060 */ DWORD dwUnknown60; -/* 0x0064 */ DWORD dwUnknown64; -} D3D9Texture; +/* 0x0054 */ DWORD Usage; +/* 0x0058 */ WORD MipMapLevels; +/* 0x005a */ WORD dUnknown5a; +/* 0x005c */ WORD MipMapLevels2; +/* 0x005e */ WORD dUnknown5e; +} Direct3DBaseTexture9_INT; #endif // _D3D9_TEXTURE_H_
16 years, 3 months
1
0
0
0
[cwittich] 36369: fix two nice typo's (array subscript was above array bounds)
by cwittich@svn.reactos.org
Author: cwittich Date: Sun Sep 21 07:12:37 2008 New Revision: 36369 URL:
http://svn.reactos.org/svn/reactos?rev=36369&view=rev
Log: fix two nice typo's (array subscript was above array bounds) Modified: trunk/reactos/dll/win32/shell32/shfldr_fonts.c Modified: trunk/reactos/dll/win32/shell32/shfldr_fonts.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shfldr_f…
============================================================================== --- trunk/reactos/dll/win32/shell32/shfldr_fonts.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/shfldr_fonts.c [iso-8859-1] Sun Sep 21 07:12:37 2008 @@ -912,14 +912,14 @@ if (LoadStringW(shell32_hInstance, IDS_OPEN, szBuffer, sizeof(szBuffer)/sizeof(WCHAR))) { - szBuffer[(sizeof(szBuffer)/sizeof(char))-1] = L'\0'; + szBuffer[(sizeof(szBuffer)/sizeof(WCHAR))-1] = L'\0'; _InsertMenuItemW(hMenu, indexMenu++, TRUE, idCmdFirst + Count, MFT_STRING, szBuffer, MFS_DEFAULT); Count++; } if (LoadStringW(shell32_hInstance, IDS_PRINT_VERB, szBuffer, sizeof(szBuffer)/sizeof(WCHAR))) { - szBuffer[(sizeof(szBuffer)/sizeof(char))-1] = L'\0'; + szBuffer[(sizeof(szBuffer)/sizeof(WCHAR))-1] = L'\0'; _InsertMenuItemW(hMenu, indexMenu++, TRUE, idCmdFirst + Count++, MFT_STRING, szBuffer, MFS_ENABLED); }
16 years, 3 months
1
0
0
0
[cwittich] 36368: sync msiexec with wine 1.1.5
by cwittich@svn.reactos.org
Author: cwittich Date: Sun Sep 21 07:00:07 2008 New Revision: 36368 URL:
http://svn.reactos.org/svn/reactos?rev=36368&view=rev
Log: sync msiexec with wine 1.1.5 Modified: trunk/reactos/base/system/msiexec/msiexec.c trunk/reactos/base/system/msiexec/service.c Modified: trunk/reactos/base/system/msiexec/msiexec.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/msiexec/msiexe…
============================================================================== --- trunk/reactos/base/system/msiexec/msiexec.c [iso-8859-1] (original) +++ trunk/reactos/base/system/msiexec/msiexec.c [iso-8859-1] Sun Sep 21 07:00:07 2008 @@ -344,14 +344,14 @@ CHAR path[MAX_PATH+12]; DWORD ret = 0; - scm = OpenSCManager(NULL, SERVICES_ACTIVE_DATABASE, SC_MANAGER_CREATE_SERVICE); + scm = OpenSCManagerA(NULL, SERVICES_ACTIVE_DATABASEA, SC_MANAGER_CREATE_SERVICE); if (!scm) { fprintf(stderr, "Failed to open the service control manager.\n"); return 1; } - GetSystemDirectory(path, MAX_PATH); + GetSystemDirectoryA(path, MAX_PATH); lstrcatA(path, "\\msiexec.exe /V"); service = CreateServiceA(scm, "MSIServer", "MSIServer", GENERIC_ALL, Modified: trunk/reactos/base/system/msiexec/service.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/msiexec/servic…
============================================================================== --- trunk/reactos/base/system/msiexec/service.c [iso-8859-1] (original) +++ trunk/reactos/base/system/msiexec/service.c [iso-8859-1] Sun Sep 21 07:00:07 2008 @@ -132,7 +132,7 @@ UpdateSCMStatus(SERVICE_START_PENDING, NO_ERROR, 0); - kill_event = CreateEvent(0, TRUE, FALSE, 0); + kill_event = CreateEventW(0, TRUE, FALSE, 0); if (!kill_event) { fprintf(stderr, "Failed to create event\n"); @@ -156,7 +156,7 @@ { char service_name[] = "MSIServer"; - const SERVICE_TABLE_ENTRY service[] = + const SERVICE_TABLE_ENTRYA service[] = { {service_name, ServiceMain}, {NULL, NULL}, @@ -164,7 +164,7 @@ WINE_TRACE("Starting MSIServer service\n"); - if (!StartServiceCtrlDispatcher(service)) + if (!StartServiceCtrlDispatcherA(service)) { fprintf(stderr, "Failed to start MSIServer service\n"); return 1;
16 years, 3 months
1
0
0
0
[fireball] 36367: - FileOffset is 32bit long, not 64bit, so no reason in additional casting. - Fix a ULONG -> BOOLEAN conversion warning.
by fireball@svn.reactos.org
Author: fireball Date: Sun Sep 21 06:34:04 2008 New Revision: 36367 URL:
http://svn.reactos.org/svn/reactos?rev=36367&view=rev
Log: - FileOffset is 32bit long, not 64bit, so no reason in additional casting. - Fix a ULONG -> BOOLEAN conversion warning. Modified: trunk/reactos/lib/cmlib/hivecell.c trunk/reactos/lib/cmlib/hivewrt.c Modified: trunk/reactos/lib/cmlib/hivecell.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hivecell.c?rev=3…
============================================================================== --- trunk/reactos/lib/cmlib/hivecell.c [iso-8859-1] (original) +++ trunk/reactos/lib/cmlib/hivecell.c [iso-8859-1] Sun Sep 21 06:34:04 2008 @@ -124,6 +124,8 @@ HvIsCellDirty(IN PHHIVE Hive, IN HCELL_INDEX Cell) { + BOOLEAN IsDirty = FALSE; + /* Sanity checks */ ASSERT(Hive->ReadOnly == FALSE); @@ -132,7 +134,11 @@ return TRUE; /* Check if the dirty bit is set */ - return RtlCheckBit(&Hive->DirtyVector, Cell / HV_BLOCK_SIZE); + if (RtlCheckBit(&Hive->DirtyVector, Cell / HV_BLOCK_SIZE)) + IsDirty = TRUE; + + /* Return result as boolean*/ + return IsDirty; } static ULONG __inline CMAPI Modified: trunk/reactos/lib/cmlib/hivewrt.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hivewrt.c?rev=36…
============================================================================== --- trunk/reactos/lib/cmlib/hivewrt.c [iso-8859-1] (original) +++ trunk/reactos/lib/cmlib/hivewrt.c [iso-8859-1] Sun Sep 21 06:34:04 2008 @@ -189,7 +189,7 @@ } BlockPtr = (PVOID)RegistryHive->Storage[Stable].BlockList[BlockIndex].BlockAddress; - FileOffset = (ULONGLONG)(BlockIndex + 1) * (ULONGLONG)HV_BLOCK_SIZE; + FileOffset = (BlockIndex + 1) * HV_BLOCK_SIZE; /* Write hive block */ Success = RegistryHive->FileWrite(RegistryHive, HFILE_TYPE_PRIMARY,
16 years, 3 months
1
0
0
0
[cwittich] 36366: fix wrong casts
by cwittich@svn.reactos.org
Author: cwittich Date: Sun Sep 21 01:52:54 2008 New Revision: 36366 URL:
http://svn.reactos.org/svn/reactos?rev=36366&view=rev
Log: fix wrong casts Modified: trunk/rosapps/applications/downloader/main.c Modified: trunk/rosapps/applications/downloader/main.c URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/downloader/ma…
============================================================================== --- trunk/rosapps/applications/downloader/main.c [iso-8859-1] (original) +++ trunk/rosapps/applications/downloader/main.c [iso-8859-1] Sun Sep 21 01:52:54 2008 @@ -81,7 +81,7 @@ { TV_INSERTSTRUCTW Insert; - Insert.item.lParam = (UINT)Category; + Insert.item.lParam = (LPARAM)Category; Insert.item.mask = TVIF_TEXT|TVIF_PARAM|TVIF_IMAGE|TVIF_SELECTEDIMAGE;; Insert.item.pszText = Category->Name; Insert.item.cchTextMax = lstrlenW(Category->Name); @@ -126,7 +126,7 @@ CurrentApplication = Category->Apps; while(CurrentApplication) { - Insert.item.lParam = (UINT)CurrentApplication; + Insert.item.lParam = (LPARAM)CurrentApplication; Insert.item.pszText = CurrentApplication->Name; Insert.item.cchTextMax = lstrlenW(CurrentApplication->Name); Insert.item.iImage = 10;
16 years, 3 months
1
0
0
0
[cwittich] 36365: fix brackets
by cwittich@svn.reactos.org
Author: cwittich Date: Sun Sep 21 01:42:21 2008 New Revision: 36365 URL:
http://svn.reactos.org/svn/reactos?rev=36365&view=rev
Log: fix brackets Modified: trunk/reactos/lib/3rdparty/mingw/getopt.c Modified: trunk/reactos/lib/3rdparty/mingw/getopt.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/mingw/getopt.…
============================================================================== --- trunk/reactos/lib/3rdparty/mingw/getopt.c [iso-8859-1] (original) +++ trunk/reactos/lib/3rdparty/mingw/getopt.c [iso-8859-1] Sun Sep 21 01:42:21 2008 @@ -82,7 +82,7 @@ ++ s_nArgChar; /* unrecognized option */ - if(_toptopt == _T(':') || (pcOptChar = _tcschr(optstring, _toptopt)) == NULL) + if((_toptopt == _T(':')) || ((pcOptChar = _tcschr(optstring, _toptopt)) == NULL)) { /* print an error message */ if(_topterr && optstring[0] != _T(':'))
16 years, 3 months
1
0
0
0
[cgutman] 36364: - Remove more useless code
by cgutman@svn.reactos.org
Author: cgutman Date: Sat Sep 20 22:21:34 2008 New Revision: 36364 URL:
http://svn.reactos.org/svn/reactos?rev=36364&view=rev
Log: - Remove more useless code Modified: branches/aicom-network-fixes/drivers/network/ndis/ndis/io.c Modified: branches/aicom-network-fixes/drivers/network/ndis/ndis/io.c URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
============================================================================== --- branches/aicom-network-fixes/drivers/network/ndis/ndis/io.c [iso-8859-1] (original) +++ branches/aicom-network-fixes/drivers/network/ndis/ndis/io.c [iso-8859-1] Sat Sep 20 22:21:34 2008 @@ -28,37 +28,15 @@ * SystemArgument2 = Unused */ { - BOOLEAN WasBusy; PLOGICAL_ADAPTER Adapter = GET_LOGICAL_ADAPTER(DeferredContext); NDIS_DbgPrint(MAX_TRACE, ("Called.\n")); ASSERT(KeGetCurrentIrql() == DISPATCH_LEVEL); - - /* XXX try to grok WasBusy */ - KeAcquireSpinLockAtDpcLevel(&Adapter->NdisMiniportBlock.Lock); - { - WasBusy = Adapter->MiniportBusy; - Adapter->MiniportBusy = TRUE; - } - KeReleaseSpinLockFromDpcLevel(&Adapter->NdisMiniportBlock.Lock); /* Call the deferred interrupt service handler for this adapter */ (*Adapter->NdisMiniportBlock.DriverHandle->MiniportCharacteristics.HandleInterruptHandler)( Adapter->NdisMiniportBlock.MiniportAdapterContext); - - KeAcquireSpinLockAtDpcLevel(&Adapter->NdisMiniportBlock.Lock); - { - if ((!WasBusy) && (Adapter->WorkQueueHead)) - { - KeInsertQueueDpc(&Adapter->NdisMiniportBlock.DeferredDpc, NULL, NULL); - } - else - { - Adapter->MiniportBusy = WasBusy; - } - } - KeReleaseSpinLockFromDpcLevel(&Adapter->NdisMiniportBlock.Lock); /* re-enable the interrupt */ NDIS_DbgPrint(MAX_TRACE, ("re-enabling the interrupt\n"));
16 years, 3 months
1
0
0
0
← Newer
1
...
21
22
23
24
25
26
27
...
75
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Results per page:
10
25
50
100
200