Skip to content

Commit

Permalink
Debugging USB Stack
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Sep 30, 2024
1 parent cdd3643 commit e62ecb9
Show file tree
Hide file tree
Showing 59 changed files with 95 additions and 78 deletions.
4 changes: 2 additions & 2 deletions boot/bootdata/livecd.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MinimalUI=Yes

[Operating Systems]
LiveCD="LiveCD"
LiveCD_Debug="LiveCD (Debug)"
LiveCD_Debug="LiveCD (Debug) Network"
LiveCD_Macpi="LiveCD ACPI SMP (Debug)"
LiveCD_Aacpi="LiveCD ACPI APIC (Debug)"
LiveCD_VBoxDebug="LiveCD (VBox Debug)"
Expand All @@ -23,7 +23,7 @@ Options=/FASTDETECT /MININT
[LiveCD_Debug]
BootType=Windows2003
SystemPath=\reactos
Options=/DEBUG /DEBUGPORT=COM1 /BAUDRATE=115200 /SOS /FASTDETECT /MININT
Options=/DEBUG /DEBUGPORT=NET /HOST_IP=10.0.0.175 /HOST_PORT=50000 /ENCRYPTION_KEY=make.reactos.great.again /W2003 /CPUFREQ=3000 /SOS /FASTDETECT /MININT

[LiveCD_Macpi]
BootType=Windows2003
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbccgp/descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "usbccgp.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

NTSTATUS
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbccgp/fdo.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "usbccgp.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

NTSTATUS
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbccgp/function.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "usbccgp.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

NTSTATUS
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbccgp/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "usbccgp.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

/* Driver verifier */
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbccgp/pdo.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include <ntddk.h>

#define NDEBUG
//#define NDEBUG
#include <debug.h>

NTSTATUS
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbccgp/usbccgp.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "usbccgp.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

/* Driver verifier */
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbd/usbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/

#define _USBD_
#define NDEBUG
//#define NDEBUG
#include <ntddk.h>
#include <usbdi.h>
#include <usbdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbehci/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "usbehci.h"

//#define NDEBUG
////#define NDEBUG
#include <debug.h>

VOID
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/usbehci/roothub.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#include "usbehci.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_EHCI_ROOT_HUB
//#define NDEBUG_EHCI_ROOT_HUB
#include "dbg_ehci.h"

MPSTATUS
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/usbehci/usbehci.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#include "usbehci.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_EHCI_TRACE
//#define NDEBUG_EHCI_TRACE
#include "dbg_ehci.h"

USBPORT_REGISTRATION_PACKET RegPacket;
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbhub/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "usbhub.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

VOID
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/usbhub/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#include "usbhub.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_USBHUB_IOCTL
//#define NDEBUG_USBHUB_IOCTL
#include "dbg_uhub.h"

NTSTATUS
Expand Down
6 changes: 3 additions & 3 deletions drivers/usb/usbhub/pnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

#include "usbhub.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_USBHUB_PNP
#define NDEBUG_USBHUB_ENUM
//#define NDEBUG_USBHUB_PNP
//#define NDEBUG_USBHUB_ENUM
#include "dbg_uhub.h"

NTSTATUS
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/usbhub/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#include "usbhub.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_USBHUB_POWER
//#define NDEBUG_USBHUB_POWER
#include "dbg_uhub.h"

VOID
Expand Down
6 changes: 3 additions & 3 deletions drivers/usb/usbhub/usbhub.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

#include "usbhub.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_USBHUB_SCE
#define NDEBUG_USBHUB_PNP
//#define NDEBUG_USBHUB_SCE
//#define NDEBUG_USBHUB_PNP
#include "dbg_uhub.h"

#include <ntddstor.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbohci/roothub.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "usbohci.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

OHCI_REG_RH_DESCRIPTORA
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/usbohci/usbohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#include "usbohci.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_OHCI_TRACE
//#define NDEBUG_OHCI_TRACE
#include "dbg_ohci.h"

USBPORT_REGISTRATION_PACKET RegPacket;
Expand Down
8 changes: 4 additions & 4 deletions drivers/usb/usbport/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_USBPORT_MINIPORT
#define NDEBUG_USBPORT_URB
//#define NDEBUG_USBPORT_USB2
//#define NDEBUG_USBPORT_MINIPORT
//#define NDEBUG_USBPORT_URB
////#define NDEBUG_USBPORT_USB2
#include "usbdebug.h"

ULONG
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbport/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

NTSTATUS
Expand Down
6 changes: 3 additions & 3 deletions drivers/usb/usbport/endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_USBPORT_CORE
//#define NDEBUG_USBPORT_CORE
#include "usbdebug.h"

ULONG
Expand Down Expand Up @@ -1592,7 +1592,7 @@ USBPORT_DmaEndpointWorker(IN PUSBPORT_ENDPOINT Endpoint)
{
PDEVICE_OBJECT FdoDevice;
ULONG PrevState;
ULONG EndpointState;
ULONG EndpointState = 0;
BOOLEAN IsPaused = FALSE;

DPRINT_CORE("USBPORT_DmaEndpointWorker ... \n");
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbport/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

VOID
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbport/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

VOID
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbport/iso.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

USBD_STATUS
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/usbport/pnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_USBPORT_CORE
//#define NDEBUG_USBPORT_CORE
#include "usbdebug.h"

IO_COMPLETION_ROUTINE USBPORT_FdoStartCompletion;
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbport/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

VOID
Expand Down
8 changes: 4 additions & 4 deletions drivers/usb/usbport/queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_USBPORT_CORE
#define NDEBUG_USBPORT_QUEUE
#define NDEBUG_USBPORT_URB
//#define NDEBUG_USBPORT_CORE
//#define NDEBUG_USBPORT_QUEUE
//#define NDEBUG_USBPORT_URB
#include "usbdebug.h"

VOID
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/usbport/roothub.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_USBPORT_CORE
//#define NDEBUG_USBPORT_CORE
#include "usbdebug.h"

RHSTATUS
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbport/trfsplit.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

ULONG
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/usbport/urb.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_USBPORT_URB
//#define NDEBUG_USBPORT_URB
#include "usbdebug.h"

NTSTATUS
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbport/usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

static const UCHAR CMASKS[USB2_MICROFRAMES] = {
Expand Down
8 changes: 4 additions & 4 deletions drivers/usb/usbport/usbport.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

#include "usbport.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>

#define NDEBUG_USBPORT_CORE
#define NDEBUG_USBPORT_INTERRUPT
#define NDEBUG_USBPORT_TIMER
//#define NDEBUG_USBPORT_CORE
//#define NDEBUG_USBPORT_INTERRUPT
//#define NDEBUG_USBPORT_TIMER
#include "usbdebug.h"

LIST_ENTRY USBPORT_MiniPortDrivers = {NULL, NULL};
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbstor/descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "usbstor.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>


Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/usbstor/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "usbstor.h"

#define NDEBUG
//#define NDEBUG
#include <debug.h>


Expand Down
Loading

0 comments on commit e62ecb9

Please sign in to comment.