Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit51fe8e4

Browse files
committed
# adjust/tidy debug headers.
poseidon.library# add a DumpPipe helper to display debug info about a pipe.# correct BOS parsing.# add helpers for USB2/3 pipe settings. pGetRootPort, pBuildRouteString, and pGetTTInfo. use them in psdAllocPipe to populate details passed to the hardware.pciusb.device# rework device ctx & slot allocation code to support devices downstream of hubs connected to the controller. using helper functions.# adjust command submit handling to fix issues.# correct SET_ADDRESS/CLEAR_FEATURE(ENDPOINT_HALT) handling.
1 parent9fde18b commit51fe8e4

File tree

10 files changed

+807
-249
lines changed

10 files changed

+807
-249
lines changed

‎compiler/include/devices/usbhardware.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndefDEVICES_USBHARDWARE_H
22
#defineDEVICES_USBHARDWARE_H
33
/*
4-
**$VER: usbhardware.h 3.0 (25.11.2025)
4+
**$VER: usbhardware.h 3.1 (27.11.2025)
55
**
66
**standard usb hardware device include file
77
**
@@ -50,7 +50,7 @@
5050

5151
/* V3 extension fields (for USB3/xHCI etc.) */
5252
#defineIOUSBHWREQ_V3_FIELDS \
53-
UWORDiouh_HubPort;/* root-hub port (1-based) */\
53+
UWORDiouh_RootPort;/* root-hub port (1-based) */\
5454
/* SuperSpeed endpoint companion info */ \
5555
UBYTEiouh_SS_MaxBurst;/* bMaxBurst */\
5656
UBYTEiouh_SS_Mult;/* Mult for isoch */\

‎rom/usb/pciusb/debug.h‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#defineDEBUG 0
1111
#endif
1212

13+
//#define PCIUSB_ANSI_DEBUG
14+
1315
#if defined(AROS_USE_LOGRES)
1416
#ifndef__LOG_NOLIBBASE__
1517
#define__LOG_NOLIBBASE__
@@ -66,4 +68,17 @@ void dumpmem_pciusb(void *mem, unsigned long int len);
6668
//#define PCIUSB_XHCI_DEBUG
6769
//#define XHCI_LONGDEBUGNAK
6870
#endif
71+
72+
#if !defined(AROS_USE_LOGRES)&& defined(PCIUSB_ANSI_DEBUG)
73+
#defineDEBUGCOLOR_SET "\033[32m"
74+
#defineDEBUGWARNCOLOR_SET "\033[31m"
75+
#defineDEBUGFUNCCOLOR_SET "\033[32;1m"
76+
#defineDEBUGCOLOR_RESET "\033[0m"
77+
#else
78+
#defineDEBUGCOLOR_SET
79+
#defineDEBUGWARNCOLOR_SET
80+
#defineDEBUGFUNCCOLOR_SET
81+
#defineDEBUGCOLOR_RESET
82+
#endif
83+
6984
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp