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
2025
January
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
January 2006
----- 2025 -----
January 2025
----- 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
23 participants
586 discussions
Start a n
N
ew thread
[ion] 20673: atapi, buslogic, cdrom, class2.
by ion@svn.reactos.org
atapi, buslogic, cdrom, class2. Modified: trunk/reactos/drivers/storage/atapi/atapi.c Modified: trunk/reactos/drivers/storage/cdrom/cdrom.c Modified: trunk/reactos/drivers/storage/include/class2.h _____ Modified: trunk/reactos/drivers/storage/atapi/atapi.c --- trunk/reactos/drivers/storage/atapi/atapi.c 2006-01-07 21:45:51 UTC (rev 20672) +++ trunk/reactos/drivers/storage/atapi/atapi.c 2006-01-07 21:50:29 UTC (rev 20673) @@ -63,6 +63,10 @@ #define VERSION "0.0.1" +NTSTATUS NTAPI +DriverEntry(IN PDRIVER_OBJECT DriverObject, + IN PUNICODE_STRING RegistryPath); + // ------------------------------------------------------- File Static Data #ifdef ENABLE_DMA @@ -98,9 +102,9 @@ PUCHAR DataBuffer; ULONG DataTransferLength; - BOOLEAN FASTCALL (*Handler)(IN struct _ATAPI_MINIPORT_EXTENSION* DevExt); + BOOLEAN (FASTCALL *Handler)(IN struct _ATAPI_MINIPORT_EXTENSION* DevExt); #ifdef ENABLE_DMA - BOOL UseDma; + BOOLEAN UseDma; ULONG PRDCount; ULONG PRDMaxCount; PPRD PRDTable; @@ -168,7 +172,7 @@ static BOOLEAN AtapiInitDma(PATAPI_MINIPORT_EXTENSION DevExt, PSCSI_REQUEST_BLOCK Srb, - BYTE cmd); + UCHAR cmd); #endif static ULONG STDCALL @@ -208,8 +212,8 @@ static VOID AtapiExecuteCommand(PATAPI_MINIPORT_EXTENSION DevExt, - BYTE command, - BOOLEAN FASTCALL (*Handler)(PATAPI_MINIPORT_EXTENSION)); + UCHAR command, + BOOLEAN (FASTCALL *Handler)(PATAPI_MINIPORT_EXTENSION)); static BOOLEAN STDCALL AtapiInterrupt(IN PVOID DeviceExtension); @@ -338,7 +342,7 @@ // RETURNS: // NTSTATUS -STDCALL NTSTATUS +NTSTATUS NTAPI DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath) { @@ -1106,7 +1110,7 @@ AtapiInterrupt(IN PVOID DeviceExtension) { PATAPI_MINIPORT_EXTENSION DevExt; - BYTE Status; + UCHAR Status; DevExt = (PATAPI_MINIPORT_EXTENSION)DeviceExtension; if (DevExt->Handler == NULL) @@ -1149,7 +1153,7 @@ AtapiConfigDma(PATAPI_MINIPORT_EXTENSION DeviceExtension, ULONG UnitNumber) { BOOLEAN Result = FALSE; - BYTE Status; + UCHAR Status; if (UnitNumber < 2) { @@ -2156,7 +2160,7 @@ #ifdef ENABLE_DMA if (DeviceExtension->UseDma) { - BYTE DmaCommand; + UCHAR DmaCommand; /* start DMA */ DmaCommand = IDEReadDMACommand(DeviceExtension->BusMasterRegisterBase); IDEWriteDMACommand(DeviceExtension->BusMasterRegisterBase, DmaCommand|0x01); @@ -2382,7 +2386,7 @@ UCHAR Command; ULONG Retries; UCHAR Status; - BOOLEAN FASTCALL (*Handler)(PATAPI_MINIPORT_EXTENSION DevExt); + BOOLEAN (FASTCALL *Handler)(PATAPI_MINIPORT_EXTENSION DevExt); DPRINT("AtapiReadWrite() called!\n"); DPRINT("SCSIOP_WRITE: TargetId: %lu\n", @@ -2585,7 +2589,7 @@ #ifdef ENABLE_DMA if (DeviceExtension->UseDma) { - BYTE DmaCommand; + UCHAR DmaCommand; /* start DMA */ DmaCommand = IDEReadDMACommand(DeviceExtension->BusMasterRegisterBase); IDEWriteDMACommand(DeviceExtension->BusMasterRegisterBase, DmaCommand|0x01); @@ -2602,7 +2606,7 @@ /* Wait for controller ready */ for (Retries = 0; Retries < IDE_MAX_WRITE_RETRIES; Retries++) { - BYTE Status = IDEReadStatus(DeviceExtension->CommandPortBase); + UCHAR Status = IDEReadStatus(DeviceExtension->CommandPortBase); if (!(Status & IDE_SR_BUSY) || (Status & IDE_SR_ERR)) { break; @@ -2989,12 +2993,12 @@ static BOOLEAN FASTCALL AtapiDmaPacketInterrupt(PATAPI_MINIPORT_EXTENSION DevExt) { - BYTE SrbStatus; - BYTE DmaCommand; - BYTE DmaStatus; - BYTE Status; - BYTE Error; - BYTE SensKey; + UCHAR SrbStatus; + UCHAR DmaCommand; + UCHAR DmaStatus; + UCHAR Status; + UCHAR Error; + UCHAR SensKey; DPRINT("AtapiPacketDmaInterrupt\n"); @@ -3043,16 +3047,16 @@ AtapiPacketInterrupt(PATAPI_MINIPORT_EXTENSION DevExt) { PSCSI_REQUEST_BLOCK Srb; - BYTE Status; - BYTE IntReason; + UCHAR Status; + UCHAR IntReason; ULONG TransferSize; ULONG JunkSize = 0; - BOOL IsLastBlock; - PBYTE TargetAddress; + BOOLEAN IsLastBlock; + PUCHAR TargetAddress; ULONG Retries; - BYTE SrbStatus; - BYTE Error; - BYTE SensKey; + UCHAR SrbStatus; + UCHAR Error; + UCHAR SensKey; DPRINT("AtapiPacketInterrupt()\n"); @@ -3183,7 +3187,7 @@ static BOOLEAN FASTCALL AtapiNoDataInterrupt(PATAPI_MINIPORT_EXTENSION DevExt) { - BYTE Status; + UCHAR Status; DPRINT("AtapiNoDataInterrupt()\n"); @@ -3199,9 +3203,9 @@ static BOOLEAN FASTCALL AtapiDmaInterrupt(PATAPI_MINIPORT_EXTENSION DevExt) { - BYTE DmaCommand; - BYTE DmaStatus; - BYTE Status; + UCHAR DmaCommand; + UCHAR DmaStatus; + UCHAR Status; DPRINT("AtapiDmaInterrupt()\n"); @@ -3448,8 +3452,8 @@ static VOID AtapiExecuteCommand(PATAPI_MINIPORT_EXTENSION DevExt, - BYTE command, - BOOLEAN FASTCALL (*Handler)(PATAPI_MINIPORT_EXTENSION)) + UCHAR command, + BOOLEAN (FASTCALL *Handler)(PATAPI_MINIPORT_EXTENSION)) { if (DevExt->Handler != NULL) { @@ -3464,7 +3468,7 @@ static BOOLEAN AtapiInitDma(PATAPI_MINIPORT_EXTENSION DevExt, PSCSI_REQUEST_BLOCK Srb, - BYTE cmd) + UCHAR cmd) { PVOID StartAddress; PVOID EndAddress; @@ -3472,7 +3476,7 @@ SCSI_PHYSICAL_ADDRESS PhysicalAddress; ULONG Length; ULONG tmpLength; - BYTE Status; + UCHAR Status; DPRINT("AtapiInitDma()\n"); _____ Modified: trunk/reactos/drivers/storage/cdrom/cdrom.c --- trunk/reactos/drivers/storage/cdrom/cdrom.c 2006-01-07 21:45:51 UTC (rev 20672) +++ trunk/reactos/drivers/storage/cdrom/cdrom.c 2006-01-07 21:50:29 UTC (rev 20673) @@ -946,9 +946,9 @@ */ static NTSTATUS CdromClassReadTocEntry (PDEVICE_OBJECT DeviceObject, - UINT TrackNo, + SIZE_T TrackNo, PVOID Buffer, - UINT Length) + SIZE_T Length) { PDEVICE_EXTENSION DeviceExtension; SCSI_REQUEST_BLOCK Srb; @@ -978,9 +978,9 @@ static NTSTATUS CdromClassReadLastSession (PDEVICE_OBJECT DeviceObject, - UINT TrackNo, + SIZE_T TrackNo, PVOID Buffer, - UINT Length) + SIZE_T Length) { PDEVICE_EXTENSION DeviceExtension; SCSI_REQUEST_BLOCK Srb; _____ Modified: trunk/reactos/drivers/storage/include/class2.h --- trunk/reactos/drivers/storage/include/class2.h 2006-01-07 21:45:51 UTC (rev 20672) +++ trunk/reactos/drivers/storage/include/class2.h 2006-01-07 21:50:29 UTC (rev 20673) @@ -18,36 +18,36 @@ struct _CLASS_INIT_DATA; -typedef VOID STDCALL -(*PCLASS_ERROR)(IN PDEVICE_OBJECT DeviceObject, +typedef VOID +(STDCALL *PCLASS_ERROR)(IN PDEVICE_OBJECT DeviceObject, IN PSCSI_REQUEST_BLOCK Srb, IN OUT NTSTATUS *Status, IN OUT BOOLEAN *Retry); -typedef BOOLEAN STDCALL -(*PCLASS_DEVICE_CALLBACK)(IN PINQUIRYDATA); +typedef BOOLEAN +(STDCALL *PCLASS_DEVICE_CALLBACK)(IN PINQUIRYDATA); -typedef NTSTATUS STDCALL -(*PCLASS_READ_WRITE)(IN PDEVICE_OBJECT DeviceObject, +typedef NTSTATUS +(STDCALL *PCLASS_READ_WRITE)(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp); -typedef BOOLEAN STDCALL -(*PCLASS_FIND_DEVICES)(IN PDRIVER_OBJECT DriverObject, +typedef BOOLEAN +(STDCALL *PCLASS_FIND_DEVICES)(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath, IN struct _CLASS_INIT_DATA *InitializationData, IN PDEVICE_OBJECT PortDeviceObject, IN ULONG PortNumber); -typedef NTSTATUS STDCALL -(*PCLASS_DEVICE_CONTROL)(IN PDEVICE_OBJECT DeviceObject, +typedef NTSTATUS +(STDCALL *PCLASS_DEVICE_CONTROL)(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp); -typedef NTSTATUS STDCALL -(*PCLASS_SHUTDOWN_FLUSH)(IN PDEVICE_OBJECT DeviceObject, +typedef NTSTATUS +(STDCALL *PCLASS_SHUTDOWN_FLUSH)(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp); -typedef NTSTATUS STDCALL -(*PCLASS_CREATE_CLOSE)(IN PDEVICE_OBJECT DeviceObject, +typedef NTSTATUS +(STDCALL *PCLASS_CREATE_CLOSE)(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
19 years
1
0
0
0
[ion] 20672: - Get NE2000 driver to build on msvc/ddk.
by ion@svn.reactos.org
- Get NE2000 driver to build on msvc/ddk. Modified: trunk/reactos/drivers/net/dd/ne2000/include/ne2000.h Modified: trunk/reactos/w32api/include/ddk/ndis.h _____ Modified: trunk/reactos/drivers/net/dd/ne2000/include/ne2000.h --- trunk/reactos/drivers/net/dd/ne2000/include/ne2000.h 2006-01-07 21:38:40 UTC (rev 20671) +++ trunk/reactos/drivers/net/dd/ne2000/include/ne2000.h 2006-01-07 21:45:51 UTC (rev 20672) @@ -7,6 +7,9 @@ #ifndef __NE2000_H #define __NE2000_H +#define NDIS_MINIPORT_DRIVER 1 +#define NDIS_LEGACY_MINIPORT 1 +#define NDIS51_MINIPORT 1 #include <ndis.h> #include <8390.h> #include <debug.h> @@ -59,7 +62,7 @@ PNDIS_PACKET Next; } MINIPORT_RESERVED, *PMINIPORT_RESERVED; -#define RESERVED(Packet) ((PMINIPORT_RESERVED)((Packet)->u.s1.MiniportReserved)) +#define RESERVED(Packet) ((PMINIPORT_RESERVED)((Packet)->MiniportReserved)) typedef UCHAR DRIVER_HARDWARE_ADDRESS[DRIVER_LENGTH_OF_ADDRESS]; _____ Modified: trunk/reactos/w32api/include/ddk/ndis.h --- trunk/reactos/w32api/include/ddk/ndis.h 2006-01-07 21:38:40 UTC (rev 20671) +++ trunk/reactos/w32api/include/ddk/ndis.h 2006-01-07 21:45:51 UTC (rev 20672) @@ -412,15 +412,15 @@ struct { UCHAR MiniportReserved[2 * sizeof(PVOID)]; UCHAR WrapperReserved[2 * sizeof(PVOID)]; - } s1; + }; struct { UCHAR MiniportReservedEx[3 * sizeof(PVOID)]; UCHAR WrapperReservedEx[sizeof(PVOID)]; - } s2; + }; struct { UCHAR MacReserved[4 * sizeof(PVOID)]; - } s3; - } u; + }; + }; ULONG_PTR Reserved[2]; UCHAR ProtocolReserved[1]; } NDIS_PACKET, *PNDIS_PACKET, **PPNDIS_PACKET;
19 years
1
0
0
0
[ion] 20671: - Get NDIS to compile on msvc/ddk (thanks to filip for his help)
by ion@svn.reactos.org
- Get NDIS to compile on msvc/ddk (thanks to filip for his help) - Get PCNET to compile on msvc/ddk. Modified: trunk/reactos/drivers/net/dd/pcnet/pcnet.h Modified: trunk/reactos/drivers/net/dd/pcnet/pcnet.xml Modified: trunk/reactos/drivers/net/ndis/include/miniport.h Modified: trunk/reactos/drivers/net/ndis/include/ndissys.h _____ Modified: trunk/reactos/drivers/net/dd/pcnet/pcnet.h --- trunk/reactos/drivers/net/dd/pcnet/pcnet.h 2006-01-07 20:52:25 UTC (rev 20670) +++ trunk/reactos/drivers/net/dd/pcnet/pcnet.h 2006-01-07 21:38:40 UTC (rev 20671) @@ -140,7 +140,7 @@ #define RESET_IN_PROGRESS 0x1 #if DBG -#define BREAKPOINT __asm__ ("int $3\n"); +#define BREAKPOINT DbgBreakPoint(); #else #define BREAKPOINT #endif _____ Modified: trunk/reactos/drivers/net/dd/pcnet/pcnet.xml --- trunk/reactos/drivers/net/dd/pcnet/pcnet.xml 2006-01-07 20:52:25 UTC (rev 20670) +++ trunk/reactos/drivers/net/dd/pcnet/pcnet.xml 2006-01-07 21:38:40 UTC (rev 20671) @@ -1,6 +1,9 @@ <module name="pcnet" type="kernelmodedriver" installbase="system32/drivers" installname="pcnet.sys"> <include base="pcnet">.</include> <define name="NDIS50_MINIPORT" /> + <define name="NDIS_MINIPORT_DRIVER" /> + <define name="NDIS_LEGACY_MINIPORT" /> + <define name="NDIS51_MINIPORT" /> <define name="__USE_W32API" /> <library>ndis</library> <library>ntoskrnl</library> _____ Modified: trunk/reactos/drivers/net/ndis/include/miniport.h --- trunk/reactos/drivers/net/ndis/include/miniport.h 2006-01-07 20:52:25 UTC (rev 20670) +++ trunk/reactos/drivers/net/ndis/include/miniport.h 2006-01-07 21:38:40 UTC (rev 20671) @@ -71,36 +71,6 @@ #define GET_MINIPORT_DRIVER(Handle)((PNDIS_M_DRIVER_BLOCK)Handle) -#ifndef NUMBER_OF_WORK_ITEM_TYPES - -typedef enum _NDIS_WORK_ITEM_TYPE { - NdisWorkItemRequest, - NdisWorkItemSend, - NdisWorkItemReturnPackets, - NdisWorkItemResetRequested, - NdisWorkItemResetInProgress, - NdisWorkItemHalt, - NdisWorkItemSendLoopback, - NdisWorkItemMiniportCallback, - NdisMaxWorkItems -} NDIS_WORK_ITEM_TYPE, *PNDIS_WORK_ITEM_TYPE; - -#define NUMBER_OF_WORK_ITEM_TYPES NdisMaxWorkItems -#define NUMBER_OF_SINGLE_WORK_ITEMS 6 - -typedef struct _NDIS_MINIPORT_WORK_ITEM { - SINGLE_LIST_ENTRY Link; - NDIS_WORK_ITEM_TYPE WorkItemType; - PVOID WorkItemContext; -} NDIS_MINIPORT_WORK_ITEM, *PNDIS_MINIPORT_WORK_ITEM; - -typedef struct _X_FILTER FDDI_FILTER, *PFDDI_FILTER; - -typedef VOID (NTAPI *W_MINIPORT_CALLBACK)( - IN NDIS_HANDLE MiniportAdapterContext, - IN PVOID CallbackContext); -#endif - /* Information about a logical adapter */ typedef struct _LOGICAL_ADAPTER { _____ Modified: trunk/reactos/drivers/net/ndis/include/ndissys.h --- trunk/reactos/drivers/net/ndis/include/ndissys.h 2006-01-07 20:52:25 UTC (rev 20670) +++ trunk/reactos/drivers/net/ndis/include/ndissys.h 2006-01-07 21:38:40 UTC (rev 20671) @@ -18,14 +18,6 @@ #include <afilter.h> #include <atm.h> -#if _MSC_VER -/* FIXME: These were removed and are no longer used! */ -#define NdisWorkItemSendLoopback NdisWorkItemReserved -#else /* _MSC_VER */ -/* FIXME: We miss the ATM headers. */ -typedef struct _ATM_ADDRESS *PATM_ADDRESS; -#endif /* _MSC_VER */ - struct _ADAPTER_BINDING; typedef struct _NDISI_PACKET_POOL { @@ -35,6 +27,460 @@ UCHAR Buffer[1]; } NDISI_PACKET_POOL, * PNDISI_PACKET_POOL; +/* WDK Compatibility. Taken from w32api DDK */ +#ifndef __NDIS_H +typedef struct _X_FILTER FDDI_FILTER, *PFDDI_FILTER; + +typedef VOID +(NTAPI *FDDI_RCV_COMPLETE_HANDLER)( + IN PFDDI_FILTER Filter); + +typedef VOID +(NTAPI *FDDI_RCV_INDICATE_HANDLER)( + IN PFDDI_FILTER Filter, + IN NDIS_HANDLE MacReceiveContext, + IN PCHAR Address, + IN UINT AddressLength, + IN PVOID HeaderBuffer, + IN UINT HeaderBufferSize, + IN PVOID LookaheadBuffer, + IN UINT LookaheadBufferSize, + IN UINT PacketSize); + +typedef enum _NDIS_WORK_ITEM_TYPE { + NdisWorkItemRequest, + NdisWorkItemSend, + NdisWorkItemReturnPackets, + NdisWorkItemResetRequested, + NdisWorkItemResetInProgress, + NdisWorkItemHalt, + NdisWorkItemSendLoopback, + NdisWorkItemMiniportCallback, + NdisMaxWorkItems +} NDIS_WORK_ITEM_TYPE, *PNDIS_WORK_ITEM_TYPE; + +#define NUMBER_OF_WORK_ITEM_TYPES NdisMaxWorkItems +#define NUMBER_OF_SINGLE_WORK_ITEMS 6 + +typedef struct _NDIS_MINIPORT_WORK_ITEM { + SINGLE_LIST_ENTRY Link; + NDIS_WORK_ITEM_TYPE WorkItemType; + PVOID WorkItemContext; +} NDIS_MINIPORT_WORK_ITEM, *PNDIS_MINIPORT_WORK_ITEM; + +typedef VOID (NTAPI *W_MINIPORT_CALLBACK)( + IN NDIS_HANDLE MiniportAdapterContext, + IN PVOID CallbackContext); + +typedef struct _NDIS_BIND_PATHS { + UINT Number; + NDIS_STRING Paths[1]; +} NDIS_BIND_PATHS, *PNDIS_BIND_PATHS; + +#if ARCNET +#define FILTERDBS_ARCNET_S \ + PARC_FILTER ArcDB; +#else /* !ARCNET */ +#define FILTERDBS_ARCNET_S \ + PVOID XXXDB; +#endif /* !ARCNET */ + +#define FILTERDBS_S \ + union { \ + PETH_FILTER EthDB; \ + PNULL_FILTER NullDB; \ + }; \ + PTR_FILTER TrDB; \ + PFDDI_FILTER FddiDB; \ + FILTERDBS_ARCNET_S + +typedef struct _NDIS_LOG { + PNDIS_MINIPORT_BLOCK Miniport; + KSPIN_LOCK LogLock; + PIRP Irp; + UINT TotalSize; + UINT CurrentSize; + UINT InPtr; + UINT OutPtr; + UCHAR LogBuf[1]; +} NDIS_LOG, *PNDIS_LOG; + +typedef enum _NDIS_PNP_DEVICE_STATE { + NdisPnPDeviceAdded, + NdisPnPDeviceStarted, + NdisPnPDeviceQueryStopped, + NdisPnPDeviceStopped, + NdisPnPDeviceQueryRemoved, + NdisPnPDeviceRemoved, + NdisPnPDeviceSurpriseRemoved +} NDIS_PNP_DEVICE_STATE; + +typedef struct _OID_LIST OID_LIST, *POID_LIST; + +struct _NDIS_MINIPORT_BLOCK { + PVOID Signature; + PNDIS_MINIPORT_BLOCK NextMiniport; + PNDIS_M_DRIVER_BLOCK DriverHandle; + NDIS_HANDLE MiniportAdapterContext; + UNICODE_STRING MiniportName; + PNDIS_BIND_PATHS BindPaths; + NDIS_HANDLE OpenQueue; + REFERENCE ShortRef; + NDIS_HANDLE DeviceContext; + UCHAR Padding1; + UCHAR LockAcquired; + UCHAR PmodeOpens; + UCHAR AssignedProcessor; + KSPIN_LOCK Lock; + PNDIS_REQUEST MediaRequest; + PNDIS_MINIPORT_INTERRUPT Interrupt; + ULONG Flags; + ULONG PnPFlags; + LIST_ENTRY PacketList; + PNDIS_PACKET FirstPendingPacket; + PNDIS_PACKET ReturnPacketsQueue; + ULONG RequestBuffer; + PVOID SetMCastBuffer; + PNDIS_MINIPORT_BLOCK PrimaryMiniport; + PVOID WrapperContext; + PVOID BusDataContext; + ULONG PnPCapabilities; + PCM_RESOURCE_LIST Resources; + NDIS_TIMER WakeUpDpcTimer; + UNICODE_STRING BaseName; + UNICODE_STRING SymbolicLinkName; + ULONG CheckForHangSeconds; + USHORT CFHangTicks; + USHORT CFHangCurrentTick; + NDIS_STATUS ResetStatus; + NDIS_HANDLE ResetOpen; + FILTERDBS_S + FILTER_PACKET_INDICATION_HANDLER PacketIndicateHandler; + NDIS_M_SEND_COMPLETE_HANDLER SendCompleteHandler; + NDIS_M_SEND_RESOURCES_HANDLER SendResourcesHandler; + NDIS_M_RESET_COMPLETE_HANDLER ResetCompleteHandler; + NDIS_MEDIUM MediaType; + ULONG BusNumber; + NDIS_INTERFACE_TYPE BusType; + NDIS_INTERFACE_TYPE AdapterType; + PDEVICE_OBJECT DeviceObject; + PDEVICE_OBJECT PhysicalDeviceObject; + PDEVICE_OBJECT NextDeviceObject; + PMAP_REGISTER_ENTRY MapRegisters; + PNDIS_AF_LIST CallMgrAfList; + PVOID MiniportThread; + PVOID SetInfoBuf; + USHORT SetInfoBufLen; + USHORT MaxSendPackets; + NDIS_STATUS FakeStatus; + PVOID LockHandler; + PUNICODE_STRING pAdapterInstanceName; + PNDIS_MINIPORT_TIMER TimerQueue; + UINT MacOptions; + PNDIS_REQUEST PendingRequest; + UINT MaximumLongAddresses; + UINT MaximumShortAddresses; + UINT CurrentLookahead; + UINT MaximumLookahead; + W_HANDLE_INTERRUPT_HANDLER HandleInterruptHandler; + W_DISABLE_INTERRUPT_HANDLER DisableInterruptHandler; + W_ENABLE_INTERRUPT_HANDLER EnableInterruptHandler; + W_SEND_PACKETS_HANDLER SendPacketsHandler; + NDIS_M_START_SENDS DeferredSendHandler; + ETH_RCV_INDICATE_HANDLER EthRxIndicateHandler; + TR_RCV_INDICATE_HANDLER TrRxIndicateHandler; + FDDI_RCV_INDICATE_HANDLER FddiRxIndicateHandler; + ETH_RCV_COMPLETE_HANDLER EthRxCompleteHandler; + TR_RCV_COMPLETE_HANDLER TrRxCompleteHandler; + FDDI_RCV_COMPLETE_HANDLER FddiRxCompleteHandler; + NDIS_M_STATUS_HANDLER StatusHandler; + NDIS_M_STS_COMPLETE_HANDLER StatusCompleteHandler; + NDIS_M_TD_COMPLETE_HANDLER TDCompleteHandler; + NDIS_M_REQ_COMPLETE_HANDLER QueryCompleteHandler; + NDIS_M_REQ_COMPLETE_HANDLER SetCompleteHandler; + NDIS_WM_SEND_COMPLETE_HANDLER WanSendCompleteHandler; + WAN_RCV_HANDLER WanRcvHandler; + WAN_RCV_COMPLETE_HANDLER WanRcvCompleteHandler; +#if defined(NDIS_WRAPPER) + PNDIS_MINIPORT_BLOCK NextGlobalMiniport; + SINGLE_LIST_ENTRY WorkQueue[NUMBER_OF_WORK_ITEM_TYPES]; + SINGLE_LIST_ENTRY SingleWorkItems[NUMBER_OF_SINGLE_WORK_ITEMS]; + UCHAR SendFlags; + UCHAR TrResetRing; + UCHAR ArcnetAddress; + UCHAR XState; + union { +#if ARCNET + PNDIS_ARC_BUF ArcBuf; +#endif + PVOID BusInterface; + }; + PNDIS_LOG Log; + ULONG SlotNumber; + PCM_RESOURCE_LIST AllocatedResources; + PCM_RESOURCE_LIST AllocatedResourcesTranslated; + SINGLE_LIST_ENTRY PatternList; + NDIS_PNP_CAPABILITIES PMCapabilities; + DEVICE_CAPABILITIES DeviceCaps; + ULONG WakeUpEnable; + DEVICE_POWER_STATE CurrentDevicePowerState; + PIRP pIrpWaitWake; + SYSTEM_POWER_STATE WaitWakeSystemState; + LARGE_INTEGER VcIndex; + KSPIN_LOCK VcCountLock; + LIST_ENTRY WmiEnabledVcs; + PNDIS_GUID pNdisGuidMap; + PNDIS_GUID pCustomGuidMap; + USHORT VcCount; + USHORT cNdisGuidMap; + USHORT cCustomGuidMap; + USHORT CurrentMapRegister; + PKEVENT AllocationEvent; + USHORT BaseMapRegistersNeeded; + USHORT SGMapRegistersNeeded; + ULONG MaximumPhysicalMapping; + NDIS_TIMER MediaDisconnectTimer; + USHORT MediaDisconnectTimeOut; + USHORT InstanceNumber; + NDIS_EVENT OpenReadyEvent; + NDIS_PNP_DEVICE_STATE PnPDeviceState; + NDIS_PNP_DEVICE_STATE OldPnPDeviceState; + PGET_SET_DEVICE_DATA SetBusData; + PGET_SET_DEVICE_DATA GetBusData; + KDPC DeferredDpc; +#if 0 + /* FIXME: */ + NDIS_STATS NdisStats; +#else + ULONG NdisStats; +#endif + PNDIS_PACKET IndicatedPacket[MAXIMUM_PROCESSORS]; + PKEVENT RemoveReadyEvent; + PKEVENT AllOpensClosedEvent; + PKEVENT AllRequestsCompletedEvent; + ULONG InitTimeMs; + NDIS_MINIPORT_WORK_ITEM WorkItemBuffer[NUMBER_OF_SINGLE_WORK_ITEMS]; + PDMA_ADAPTER SystemAdapterObject; + ULONG DriverVerifyFlags; + POID_LIST OidList; + USHORT InternalResetCount; + USHORT MiniportResetCount; + USHORT MediaSenseConnectCount; + USHORT MediaSenseDisconnectCount; + PNDIS_PACKET *xPackets; + ULONG UserModeOpenReferences; + union { + PVOID SavedSendHandler; + PVOID SavedWanSendHandler; + }; + PVOID SavedSendPacketsHandler; + PVOID SavedCancelSendPacketsHandler; + W_SEND_PACKETS_HANDLER WSendPacketsHandler; + ULONG MiniportAttributes; + PDMA_ADAPTER SavedSystemAdapterObject; + USHORT NumOpens; + USHORT CFHangXTicks; + ULONG RequestCount; + ULONG IndicatedPacketsCount; + ULONG PhysicalMediumType; + PNDIS_REQUEST LastRequest; + LONG DmaAdapterRefCount; + PVOID FakeMac; + ULONG LockDbg; + ULONG LockDbgX; + PVOID LockThread; + ULONG InfoFlags; + KSPIN_LOCK TimerQueueLock; + PKEVENT ResetCompletedEvent; + PKEVENT QueuedBindingCompletedEvent; + PKEVENT DmaResourcesReleasedEvent; + FILTER_PACKET_INDICATION_HANDLER SavedPacketIndicateHandler; + ULONG RegisteredInterrupts; + PNPAGED_LOOKASIDE_LIST SGListLookasideList; + ULONG ScatterGatherListSize; +#endif /* _NDIS_ */ +}; + +#if 1 +/* FIXME: */ +typedef PVOID QUEUED_CLOSE; +#endif + +#if defined(NDIS_WRAPPER) +#define NDIS_COMMON_OPEN_BLOCK_WRAPPER_S \ + ULONG Flags; \ + ULONG References; \ + KSPIN_LOCK SpinLock; \ + NDIS_HANDLE FilterHandle; \ + ULONG ProtocolOptions; \ + USHORT CurrentLookahead; \ + USHORT ConnectDampTicks; \ + USHORT DisconnectDampTicks; \ + W_SEND_HANDLER WSendHandler; \ + W_TRANSFER_DATA_HANDLER WTransferDataHandler; \ + W_SEND_PACKETS_HANDLER WSendPacketsHandler; \ + W_CANCEL_SEND_PACKETS_HANDLER CancelSendPacketsHandler; \ + ULONG WakeUpEnable; \ + PKEVENT CloseCompleteEvent; \ + QUEUED_CLOSE QC; \ + ULONG AfReferences; \ + PNDIS_OPEN_BLOCK NextGlobalOpen; +#else +#define NDIS_COMMON_OPEN_BLOCK_WRAPPER_S +#endif + +#define NDIS_COMMON_OPEN_BLOCK_S \ + PVOID MacHandle; \ + NDIS_HANDLE BindingHandle; \ + PNDIS_MINIPORT_BLOCK MiniportHandle; \ + PNDIS_PROTOCOL_BLOCK ProtocolHandle; \ + NDIS_HANDLE ProtocolBindingContext; \ + PNDIS_OPEN_BLOCK MiniportNextOpen; \ + PNDIS_OPEN_BLOCK ProtocolNextOpen; \ + NDIS_HANDLE MiniportAdapterContext; \ + BOOLEAN Reserved1; \ + BOOLEAN Reserved2; \ + BOOLEAN Reserved3; \ + BOOLEAN Reserved4; \ + PNDIS_STRING BindDeviceName; \ + KSPIN_LOCK Reserved5; \ + PNDIS_STRING RootDeviceName; \ + union { \ + SEND_HANDLER SendHandler; \ + WAN_SEND_HANDLER WanSendHandler; \ + }; \ + TRANSFER_DATA_HANDLER TransferDataHandler; \ + SEND_COMPLETE_HANDLER SendCompleteHandler; \ + TRANSFER_DATA_COMPLETE_HANDLER TransferDataCompleteHandler; \ + RECEIVE_HANDLER ReceiveHandler; \ + RECEIVE_COMPLETE_HANDLER ReceiveCompleteHandler; \ + WAN_RECEIVE_HANDLER WanReceiveHandler; \ + REQUEST_COMPLETE_HANDLER RequestCompleteHandler; \ + RECEIVE_PACKET_HANDLER ReceivePacketHandler; \ + SEND_PACKETS_HANDLER SendPacketsHandler; \ + RESET_HANDLER ResetHandler; \ + REQUEST_HANDLER RequestHandler; \ + RESET_COMPLETE_HANDLER ResetCompleteHandler; \ + STATUS_HANDLER StatusHandler; \ + STATUS_COMPLETE_HANDLER StatusCompleteHandler; \ + NDIS_COMMON_OPEN_BLOCK_WRAPPER_S + +typedef struct _NDIS_COMMON_OPEN_BLOCK { + NDIS_COMMON_OPEN_BLOCK_S +} NDIS_COMMON_OPEN_BLOCK; + +struct _NDIS_OPEN_BLOCK +{ +#ifdef __cplusplus + NDIS_COMMON_OPEN_BLOCK NdisCommonOpenBlock; +#else + NDIS_COMMON_OPEN_BLOCK_S +#endif +#if defined(NDIS_WRAPPER) + struct _NDIS_OPEN_CO + { + struct _NDIS_CO_AF_BLOCK * NextAf; + W_CO_CREATE_VC_HANDLER MiniportCoCreateVcHandler; + W_CO_REQUEST_HANDLER MiniportCoRequestHandler; + CO_CREATE_VC_HANDLER CoCreateVcHandler; + CO_DELETE_VC_HANDLER CoDeleteVcHandler; + PVOID CmActivateVcCompleteHandler; + PVOID CmDeactivateVcCompleteHandler; + PVOID CoRequestCompleteHandler; + LIST_ENTRY ActiveVcHead; + LIST_ENTRY InactiveVcHead; + LONG PendingAfNotifications; + PKEVENT AfNotifyCompleteEvent; + }; +#endif /* _NDIS_ */ +}; + +#define NDIS30_PROTOCOL_CHARACTERISTICS_S \ + UCHAR MajorNdisVersion; \ + UCHAR MinorNdisVersion; \ + USHORT Filler; \ + union { \ + UINT Reserved; \ + UINT Flags; \ + }; \ + OPEN_ADAPTER_COMPLETE_HANDLER OpenAdapterCompleteHandler; \ + CLOSE_ADAPTER_COMPLETE_HANDLER CloseAdapterCompleteHandler; \ + union { \ + SEND_COMPLETE_HANDLER SendCompleteHandler; \ + WAN_SEND_COMPLETE_HANDLER WanSendCompleteHandler; \ + }; \ + union { \ + TRANSFER_DATA_COMPLETE_HANDLER TransferDataCompleteHandler; \ + WAN_TRANSFER_DATA_COMPLETE_HANDLER WanTransferDataCompleteHandler; \ + }; \ + RESET_COMPLETE_HANDLER ResetCompleteHandler; \ + REQUEST_COMPLETE_HANDLER RequestCompleteHandler; \ + union { \ + RECEIVE_HANDLER ReceiveHandler; \ + WAN_RECEIVE_HANDLER WanReceiveHandler; \ + }; \ + RECEIVE_COMPLETE_HANDLER ReceiveCompleteHandler; \ + STATUS_HANDLER StatusHandler; \ + STATUS_COMPLETE_HANDLER StatusCompleteHandler; \ + NDIS_STRING Name; + +typedef struct _NDIS30_PROTOCOL_CHARACTERISTICS { + NDIS30_PROTOCOL_CHARACTERISTICS_S +} NDIS30_PROTOCOL_CHARACTERISTICS, *PNDIS30_PROTOCOL_CHARACTERISTICS; + +#define NDIS30_MINIPORT_CHARACTERISTICS_S \ + UCHAR MajorNdisVersion; \ + UCHAR MinorNdisVersion; \ + USHORT Filler; \ + UINT Reserved; \ + W_CHECK_FOR_HANG_HANDLER CheckForHangHandler; \ + W_DISABLE_INTERRUPT_HANDLER DisableInterruptHandler; \ + W_ENABLE_INTERRUPT_HANDLER EnableInterruptHandler; \ + W_HALT_HANDLER HaltHandler; \ + W_HANDLE_INTERRUPT_HANDLER HandleInterruptHandler; \ + W_INITIALIZE_HANDLER InitializeHandler; \ + W_ISR_HANDLER ISRHandler; \ + W_QUERY_INFORMATION_HANDLER QueryInformationHandler; \ + W_RECONFIGURE_HANDLER ReconfigureHandler; \ + W_RESET_HANDLER ResetHandler; \ + union { \ + W_SEND_HANDLER SendHandler; \ + WM_SEND_HANDLER WanSendHandler; \ + }u1; \ + W_SET_INFORMATION_HANDLER SetInformationHandler; \ + union { \ + W_TRANSFER_DATA_HANDLER TransferDataHandler; \ + WM_TRANSFER_DATA_HANDLER WanTransferDataHandler; \ + }u2; + +typedef struct _NDIS30_MINIPORT_CHARACTERISTICS { + NDIS30_MINIPORT_CHARACTERISTICS_S +} NDIS30_MINIPORT_CHARACTERISTICS, *PSNDIS30_MINIPORT_CHARACTERISTICS; + +#ifdef __cplusplus + +#define NDIS40_MINIPORT_CHARACTERISTICS_S \ + NDIS30_MINIPORT_CHARACTERISTICS Ndis30Chars; \ + W_RETURN_PACKET_HANDLER ReturnPacketHandler; \ + W_SEND_PACKETS_HANDLER SendPacketsHandler; \ + W_ALLOCATE_COMPLETE_HANDLER AllocateCompleteHandler; + +#else /* !__cplusplus */ + +#define NDIS40_MINIPORT_CHARACTERISTICS_S \ + NDIS30_MINIPORT_CHARACTERISTICS_S \ + W_RETURN_PACKET_HANDLER ReturnPacketHandler; \ + W_SEND_PACKETS_HANDLER SendPacketsHandler; \ + W_ALLOCATE_COMPLETE_HANDLER AllocateCompleteHandler; + +#endif /* !__cplusplus */ + +typedef struct _NDIS40_MINIPORT_CHARACTERISTICS { + NDIS40_MINIPORT_CHARACTERISTICS_S +} NDIS40_MINIPORT_CHARACTERISTICS, *PNDIS40_MINIPORT_CHARACTERISTICS; + +#endif + #include "miniport.h" #include "protocol.h"
19 years
1
0
0
0
[ion] 20670: - Fix ndis build, thanks to Filip.
by ion@svn.reactos.org
- Fix ndis build, thanks to Filip. Modified: trunk/reactos/drivers/net/ndis/include/ndissys.h Modified: trunk/reactos/drivers/net/ndis/ndis.xml _____ Modified: trunk/reactos/drivers/net/ndis/include/ndissys.h --- trunk/reactos/drivers/net/ndis/include/ndissys.h 2006-01-07 20:33:48 UTC (rev 20669) +++ trunk/reactos/drivers/net/ndis/include/ndissys.h 2006-01-07 20:52:25 UTC (rev 20670) @@ -12,15 +12,8 @@ typedef unsigned long NDIS_STATS; -/* This magical flag combo seems to work. Filip should verify this */ -#undef NDIS_WRAPPER -#define NDIS_LEGACY_DRIVER 1 -#define NDIS_LEGACY_MINIPORT 1 -#define NDIS_LEGACY_PROTOCOL 1 -#define NDIS51_MINIPORT 1 -#define NDIS_MINIPORT_DRIVER 1 +#include <ntifs.h> #include <ndis.h> -#undef EXPORT #include <xfilter.h> #include <afilter.h> #include <atm.h> _____ Modified: trunk/reactos/drivers/net/ndis/ndis.xml --- trunk/reactos/drivers/net/ndis/ndis.xml 2006-01-07 20:33:48 UTC (rev 20669) +++ trunk/reactos/drivers/net/ndis/ndis.xml 2006-01-07 20:52:25 UTC (rev 20670) @@ -6,6 +6,10 @@ <define name="NDIS51" /> <define name="NDIS50_MINIPORT" /> <define name="NDIS51_MINIPORT" /> + <define name="NDIS_LEGACY_DRIVER" /> + <define name="NDIS_LEGACY_MINIPORT" /> + <define name="NDIS_LEGACY_PROTOCOL" /> + <define name="NDIS_MINIPORT_DRIVER" /> <library>ntoskrnl</library> <library>hal</library> <directory name="include">
19 years
1
0
0
0
[ion] 20669: - Get NDIS (almost) compiling with msvc/ddk.
by ion@svn.reactos.org
- Get NDIS (almost) compiling with msvc/ddk. Modified: trunk/reactos/drivers/net/ndis/include/miniport.h Modified: trunk/reactos/drivers/net/ndis/include/ndissys.h Modified: trunk/reactos/drivers/net/ndis/ndis/buffer.c _____ Modified: trunk/reactos/drivers/net/ndis/include/miniport.h --- trunk/reactos/drivers/net/ndis/include/miniport.h 2006-01-07 20:00:43 UTC (rev 20668) +++ trunk/reactos/drivers/net/ndis/include/miniport.h 2006-01-07 20:33:48 UTC (rev 20669) @@ -8,6 +8,7 @@ #ifndef __MINIPORT_H #define __MINIPORT_H +#include <ndis.h> #include <ndissys.h> struct _ADAPTER_BINDING; @@ -70,6 +71,36 @@ #define GET_MINIPORT_DRIVER(Handle)((PNDIS_M_DRIVER_BLOCK)Handle) +#ifndef NUMBER_OF_WORK_ITEM_TYPES + +typedef enum _NDIS_WORK_ITEM_TYPE { + NdisWorkItemRequest, + NdisWorkItemSend, + NdisWorkItemReturnPackets, + NdisWorkItemResetRequested, + NdisWorkItemResetInProgress, + NdisWorkItemHalt, + NdisWorkItemSendLoopback, + NdisWorkItemMiniportCallback, + NdisMaxWorkItems +} NDIS_WORK_ITEM_TYPE, *PNDIS_WORK_ITEM_TYPE; + +#define NUMBER_OF_WORK_ITEM_TYPES NdisMaxWorkItems +#define NUMBER_OF_SINGLE_WORK_ITEMS 6 + +typedef struct _NDIS_MINIPORT_WORK_ITEM { + SINGLE_LIST_ENTRY Link; + NDIS_WORK_ITEM_TYPE WorkItemType; + PVOID WorkItemContext; +} NDIS_MINIPORT_WORK_ITEM, *PNDIS_MINIPORT_WORK_ITEM; + +typedef struct _X_FILTER FDDI_FILTER, *PFDDI_FILTER; + +typedef VOID (NTAPI *W_MINIPORT_CALLBACK)( + IN NDIS_HANDLE MiniportAdapterContext, + IN PVOID CallbackContext); +#endif + /* Information about a logical adapter */ typedef struct _LOGICAL_ADAPTER { _____ Modified: trunk/reactos/drivers/net/ndis/include/ndissys.h --- trunk/reactos/drivers/net/ndis/include/ndissys.h 2006-01-07 20:00:43 UTC (rev 20668) +++ trunk/reactos/drivers/net/ndis/include/ndissys.h 2006-01-07 20:33:48 UTC (rev 20669) @@ -11,9 +11,19 @@ #define __NDISSYS_H typedef unsigned long NDIS_STATS; + +/* This magical flag combo seems to work. Filip should verify this */ +#undef NDIS_WRAPPER +#define NDIS_LEGACY_DRIVER 1 +#define NDIS_LEGACY_MINIPORT 1 +#define NDIS_LEGACY_PROTOCOL 1 +#define NDIS51_MINIPORT 1 +#define NDIS_MINIPORT_DRIVER 1 #include <ndis.h> +#undef EXPORT #include <xfilter.h> #include <afilter.h> +#include <atm.h> #if _MSC_VER /* FIXME: These were removed and are no longer used! */ @@ -23,13 +33,6 @@ typedef struct _ATM_ADDRESS *PATM_ADDRESS; #endif /* _MSC_VER */ -/* FIXME: This should go away once NDK will be compatible with MS DDK headers. */ -#if _MSC_VER -NTSTATUS NTAPI ZwDuplicateObject(IN HANDLE, IN HANDLE, IN HANDLE, OUT PHANDLE, IN ACCESS_MASK, IN ULONG, IN ULONG); -#else -#include <ndk/ntndk.h> -#endif - struct _ADAPTER_BINDING; typedef struct _NDISI_PACKET_POOL { _____ Modified: trunk/reactos/drivers/net/ndis/ndis/buffer.c --- trunk/reactos/drivers/net/ndis/ndis/buffer.c 2006-01-07 20:00:43 UTC (rev 20668) +++ trunk/reactos/drivers/net/ndis/ndis/buffer.c 2006-01-07 20:33:48 UTC (rev 20669) @@ -8,7 +8,7 @@ * CSH 01/08-2000 Created */ -#include <buffer.h> +#include <ndissys.h> __inline ULONG SkipToOffset(
19 years
1
0
0
0
[fireball] 20668: push-include for #pragma pack(16)
by fireball@svn.reactos.org
push-include for #pragma pack(16) Added: trunk/reactos/w32api/include/pshpck16.h _____ Added: trunk/reactos/w32api/include/pshpck16.h --- trunk/reactos/w32api/include/pshpck16.h 2006-01-07 19:54:50 UTC (rev 20667) +++ trunk/reactos/w32api/include/pshpck16.h 2006-01-07 20:00:43 UTC (rev 20668) @@ -0,0 +1,7 @@ +#ifndef RC_INVOKED +# if ( __FreeBSD__ == 5 ) +# pragma pack(16) +# else +# pragma pack(push,16) +# endif // __FreeBSD__ +#endif // RC_INVOKED Property changes on: trunk/reactos/w32api/include/pshpck16.h ___________________________________________________________________ Name: svn:eol-style + native
19 years
1
0
0
0
[cwittich] 20667: increased buffer size to max needed size
by cwittich@svn.reactos.org
increased buffer size to max needed size replaced _stprintf with _sntprintf Modified: trunk/reactos/subsys/system/servman/query.c _____ Modified: trunk/reactos/subsys/system/servman/query.c --- trunk/reactos/subsys/system/servman/query.c 2006-01-07 19:28:04 UTC (rev 20666) +++ trunk/reactos/subsys/system/servman/query.c 2006-01-07 19:54:50 UTC (rev 20667) @@ -39,7 +39,7 @@ { HICON hiconItem; /* icon for list-view items */ HIMAGELIST hSmall; /* image list for other views */ - TCHAR buf[256]; + TCHAR buf[300]; /* Create the icon image lists */ hSmall = ImageList_Create(GetSystemMetrics(SM_CXSMICON), @@ -53,7 +53,7 @@ /* set the number of services in the status bar */ LoadString(hInstance, IDS_SERVICES_NUM_SERVICES, szNumServices, 32); - _stprintf(buf, szNumServices, NumServices); + _sntprintf(buf, 300, szNumServices, NumServices); SendMessage(hStatus, SB_SETTEXT, 0, (LPARAM)buf); @@ -67,7 +67,7 @@ DWORD dwValueSize; /* open the registry key for the service */ - _stprintf(buf, _T("System\\CurrentControlSet\\Services\\%s"), + _sntprintf(buf, 300, _T("System\\CurrentControlSet\\Services\\%s"), pServiceStatus[Index].lpServiceName); if( RegOpenKeyEx(HKEY_LOCAL_MACHINE,
19 years
1
0
0
0
[fireball] 20666: USB 2.6 Upgrading branch
by fireball@svn.reactos.org
USB 2.6 Upgrading branch Added: branches/usb2_6/ _____ Copied: branches/usb2_6 (from rev 20457, trunk)
19 years
1
0
0
0
[gedmurphy] 20665: Fix a buffer overflow. Thanks to Christoph for spotting this.
by gedmurphy@svn.reactos.org
Fix a buffer overflow. Thanks to Christoph for spotting this. Modified: trunk/reactos/subsys/system/servman/query.c _____ Modified: trunk/reactos/subsys/system/servman/query.c --- trunk/reactos/subsys/system/servman/query.c 2006-01-07 18:53:26 UTC (rev 20664) +++ trunk/reactos/subsys/system/servman/query.c 2006-01-07 19:14:03 UTC (rev 20665) @@ -39,7 +39,7 @@ { HICON hiconItem; /* icon for list-view items */ HIMAGELIST hSmall; /* image list for other views */ - TCHAR buf[40]; + TCHAR buf[256]; /* Create the icon image lists */ hSmall = ImageList_Create(GetSystemMetrics(SM_CXSMICON), @@ -85,14 +85,8 @@ ZeroMemory(&item, sizeof(LV_ITEM)); item.mask = LVIF_TEXT; - item.iImage = 0; item.pszText = pServiceStatus[Index].lpDisplayName; - /*_tcsncpy(item.pszText, - pServiceStatus[Index].lpDisplayName, - sizeof(pServiceStatus[Index].lpDisplayName));*/ - item.iItem = ListView_GetItemCount(hListView); - item.lParam = 0; item.iItem = ListView_InsertItem(hListView, &item); @@ -137,7 +131,12 @@ HeapFree(GetProcessHeap(), 0, Description); } - + else + { + item.pszText = '\0'; + item.iSubItem = 1; + SendMessage(hListView, LVM_SETITEMTEXT, item.iItem, (LPARAM) &item); + } /* set the status */
19 years
1
0
0
0
[jimtabor] 20664: Thx Filip, for pointing this out. Added the missing break, if wState did not get set to CBF_EDIT.
by jimtabor@svn.reactos.org
Thx Filip, for pointing this out. Added the missing break, if wState did not get set to CBF_EDIT. Modified: trunk/reactos/lib/user32/controls/combo.c _____ Modified: trunk/reactos/lib/user32/controls/combo.c --- trunk/reactos/lib/user32/controls/combo.c 2006-01-07 18:19:10 UTC (rev 20663) +++ trunk/reactos/lib/user32/controls/combo.c 2006-01-07 18:53:26 UTC (rev 20664) @@ -2314,9 +2314,10 @@ return (lphc->wState & CBF_EUI) ? TRUE : FALSE; case CB_GETCOMBOBOXINFO: return COMBO_GetComboBoxInfo(lphc, (COMBOBOXINFO *)lParam); - case CB_LIMITTEXT: - if( lphc->wState & CBF_EDIT ) - return SendMessageW(lphc->hWndEdit, EM_LIMITTEXT, wParam, lParam); + case CB_LIMITTEXT: + if( lphc->wState & CBF_EDIT ) + return SendMessageW(lphc->hWndEdit, EM_LIMITTEXT, wParam, lParam); + break; default: if (message >= WM_USER) WARN("unknown msg WM_USER+%04x wp=%04x lp=%08lx\n",
19 years
1
0
0
0
← Newer
1
...
39
40
41
42
43
44
45
...
59
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
Results per page:
10
25
50
100
200