|
PS2SDK
PS2 Homebrew Libraries
|
Include dependency graph for usbdpriv.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | _argOption |
| struct | _usbdConfig |
| struct | _timerCbStruct |
| struct | _ioRequest |
| struct | _device |
| struct | _hcTd |
| struct | _hcIsoTd |
| struct | _hcEdHcArea |
| union | _hcEdHcAreaU |
| struct | _hcEd |
| struct | _endpoint |
| struct | _usbHub |
| struct | _hcCA |
| struct | _ohciRegs |
| struct | _memPool |
| struct | _usbdReportDescriptor |
| struct | _usbdKernelResources |
| union | _ioRequest.__unnamed__ |
Typedefs | |
| typedef struct _argOption | UsbdArgOption_t |
| typedef struct _usbdConfig | UsbdConfig_t |
| typedef void(* | TimerCallback) (void *arg) |
| typedef void(* | InternCallback) (struct _ioRequest *arg) |
| typedef struct _timerCbStruct | UsbdTimerCbStruct_t |
| typedef struct _ioRequest | UsbdIoRequest_t |
| typedef struct _device | UsbdDevice_t |
| typedef struct _hcTd | UsbdHcTD_t |
| typedef struct _hcIsoTd | UsbdHcIsoTD_t |
| typedef struct _hcEd | UsbdHcED_t |
| typedef struct _endpoint | UsbdEndpoint_t |
| typedef struct _usbHub | UsbdUsbHub_t |
| typedef struct _hcCA | HcCA |
| typedef struct _ohciRegs | OhciRegs |
| typedef struct _memPool | UsbdMemoryPool_t |
| typedef struct _usbdReportDescriptor | UsbdReportDescriptor_t |
| typedef struct _usbdKernelResources | UsbdKernelResources_t |
Functions | |
| void | hubResetDevicePort (UsbdDevice_t *dev) |
| int | initHubDriver (void) |
| void | deinitHubDriver (void) |
| UsbdDevice_t * | fetchDeviceById (int devId) |
| UsbdEndpoint_t * | fetchEndpointById (int id) |
| UsbdDevice_t * | getDeviceTreeRoot (void) |
| UsbdDevice_t * | attachChildDevice (UsbdDevice_t *parent, u32 portNum) |
| void | freeDevice (UsbdDevice_t *dev) |
| UsbdIoRequest_t * | allocIoRequest (void) |
| void | freeIoRequest (UsbdIoRequest_t *req) |
| UsbdEndpoint_t * | allocEndpointForDevice (UsbdDevice_t *dev, u32 align) |
| int | cleanUpFunc (UsbdDevice_t *dev, UsbdEndpoint_t *ep) |
| UsbdHcTD_t * | allocTd (void) |
| void | freeTd (UsbdHcTD_t *argTd) |
| UsbdHcIsoTD_t * | allocIsoTd (void) |
| void | freeIsoTd (UsbdHcIsoTD_t *argTd) |
| int | addTimerCallback (UsbdTimerCbStruct_t *arg, TimerCallback func, void *cbArg, int delay) |
| int | cancelTimerCallback (UsbdTimerCbStruct_t *arg) |
| void | handleTimerList (void) |
| UsbdEndpoint_t * | openDeviceEndpoint (UsbdDevice_t *dev, const UsbEndpointDescriptor *endpDesc, u32 alignFlag) |
| int | removeEndpointFromDevice (UsbdDevice_t *dev, UsbdEndpoint_t *ep) |
| void | handleIoReqList (UsbdEndpoint_t *ep) |
| void | usbdRebootInner (void) |
| void | hubResetDevice (UsbdDevice_t *dev) |
| int | checkDelayedResets (UsbdDevice_t *dev) |
| void | handleRhsc (void) |
| void | processDoneQueue_GenTd (UsbdHcTD_t *arg) |
| void | processDoneQueue_IsoTd (UsbdHcIsoTD_t *arg) |
| void | hcdProcessIntr (void) |
| void | PostIntrEnableFunction (void) |
| int | initHcdStructs (void) |
| void | deinitHcd (void) |
| void * | AllocSysMemoryWrap (int size) |
| int | FreeSysMemoryWrap (void *ptr) |
| int | usbdLock (void) |
| int | usbdUnlock (void) |
| void | usbdReboot (int ac) |
| int | handleStaticDeviceDescriptor (UsbdDevice_t *dev, UsbDeviceDescriptor *devDescStart, UsbDeviceDescriptor *devDescEnd) |
| int | callUsbDriverFunc (int(*func)(int devId), int devId, void *gpSeg) |
| int | doRegisterDriver (sceUsbdLddOps *drv, void *drvGpSeg) |
| int | doRegisterAutoLoader (sceUsbdLddOps *drv, void *drvGpSeg) |
| int | doUnregisterDriver (sceUsbdLddOps *drv) |
| int | doUnregisterAutoLoader (void) |
| void * | doGetDeviceStaticDescriptor (int devId, void *data, u8 type) |
| int | doGetDeviceLocation (UsbdDevice_t *dev, u8 *path) |
| UsbdEndpoint_t * | doOpenEndpoint (UsbdDevice_t *dev, const UsbEndpointDescriptor *endpDesc, u32 alignFlag) |
| int | doCloseEndpoint (UsbdEndpoint_t *ep) |
| int | attachIoReqToEndpoint (UsbdEndpoint_t *ep, UsbdIoRequest_t *req, void *destdata, u16 length, void *callback) |
| int | doControlTransfer (UsbdEndpoint_t *ep, UsbdIoRequest_t *req, u8 requestType, u8 request, u16 value, u16 index, u16 length, void *destdata, void *callback) |
| int | hubTimedSetFuncAddress (UsbdDevice_t *dev) |
| void | flushPort (UsbdDevice_t *dev) |
| int | usbdInitInner (void) |
Variables | |
| UsbdConfig_t | usbConfig |
| UsbdMemoryPool_t * | memPool |
| UsbdKernelResources_t | usbKernelResources |
| UsbdIoRequest_t * | cbListStart |
| UsbdIoRequest_t * | cbListEnd |
| sceUsbdLddOps * | drvListStart |
| sceUsbdLddOps * | drvListEnd |
| sceUsbdLddOps * | drvAutoLoader |
USB Driver function prototypes and constants.
Definition in file usbdpriv.h.
| struct _argOption |
Definition at line 35 of file usbdpriv.h.
| Data Fields | ||
|---|---|---|
| const char * | param | |
| int * | value | |
| int * | value2 | |
| struct _usbdConfig |
Definition at line 42 of file usbdpriv.h.
| struct _timerCbStruct |
Definition at line 72 of file usbdpriv.h.
Collaboration diagram for _timerCbStruct:| Data Fields | ||
|---|---|---|
| u32 | m_isActive | |
| struct _timerCbStruct * | m_prev | |
| struct _timerCbStruct * | m_next | |
| TimerCallback | m_callbackProc | |
| void * | m_callbackArg | |
| u32 | m_delayCount | |
| struct _ioRequest |
Definition at line 82 of file usbdpriv.h.
Collaboration diagram for _ioRequest:| Data Fields | ||
|---|---|---|
| u32 | m_id | |
| u32 | m_busyFlag | |
| struct _ioRequest * | m_next | |
| struct _ioRequest * | m_prev | |
| struct _endpoint * | m_correspEndpoint | |
| UsbDeviceRequest | m_devReq | |
| void * | m_destPtr | |
| u32 | m_length | |
| InternCallback | m_callbackProc | |
| u32 | m_resultCode | |
| u32 | m_transferedBytes | |
| u32 | m_waitFrames | |
| void * | m_userCallbackArg | |
| union _ioRequest | __unnamed__ | |
| void * | m_gpSeg | |
| sceUsbdMultiIsochronousRequest | m_req | |
| struct _device |
Definition at line 107 of file usbdpriv.h.
Collaboration diagram for _device:| Data Fields | ||
|---|---|---|
| u32 | m_id | |
| struct _device * | m_next | |
| struct _device * | m_prev | |
| struct _endpoint * | m_endpointListStart | |
| struct _endpoint * | m_endpointListEnd | |
| sceUsbdLddOps * | m_devDriver | |
| u8 | m_deviceStatus | |
| u8 | m_functionAddress | |
| u8 | m_isLowSpeedDevice | |
| u8 | m_resetFlag | |
| u32 | m_magicPowerValue | |
| struct _device * | m_childListStart | |
| struct _device * | m_childListEnd | |
| struct _device * | m_parent | |
| u32 | m_attachedToPortNo | |
| void * | m_privDataField | |
| UsbdTimerCbStruct_t | m_timer | |
| UsbdIoRequest_t | m_ioRequest | |
| u32 | m_functionDelay | |
| void * | m_staticDeviceDescPtr | |
| void * | m_staticDeviceDescEndPtr | |
| u32 | m_fetchDescriptorCounter | |
| struct _usbdReportDescriptor * | m_reportDescriptorCurForFetch | |
| struct _usbdReportDescriptor * | m_reportDescriptorStart | |
| struct _usbdReportDescriptor * | m_reportDescriptorEnd | |
| struct _hcTd |
Definition at line 136 of file usbdpriv.h.
Collaboration diagram for _hcTd:| Data Fields | ||
|---|---|---|
| u32 | m_hcArea | |
| void * | m_curBufPtr | |
| struct _hcTd * | m_next | |
| void * | m_bufferEnd | |
| struct _hcIsoTd |
Definition at line 144 of file usbdpriv.h.
Collaboration diagram for _hcIsoTd:| Data Fields | ||
|---|---|---|
| u32 | m_hcArea | |
| void * | m_bufferPage0 | |
| struct _hcIsoTd * | m_next | |
| void * | m_bufferEnd | |
| u16 | m_psw[8] | |
| struct _hcEdHcArea |
Definition at line 153 of file usbdpriv.h.
| Data Fields | ||
|---|---|---|
| u16 | m_hcArea | |
| u16 | m_maxPacketSize | |
| union _hcEdHcAreaU |
Definition at line 159 of file usbdpriv.h.
Collaboration diagram for _hcEdHcAreaU:| Data Fields | ||
|---|---|---|
| struct _hcEdHcArea | stru | |
| u32 | asu32 | |
| struct _hcEd |
Definition at line 165 of file usbdpriv.h.
Collaboration diagram for _hcEd:| Data Fields | ||
|---|---|---|
| union _hcEdHcAreaU | m_hcArea | |
| UsbdHcTD_t * | m_tdTail | |
| UsbdHcTD_t * | m_tdHead | |
| struct _hcEd * | m_next | |
| struct _endpoint |
Definition at line 173 of file usbdpriv.h.
Collaboration diagram for _endpoint:| Data Fields | ||
|---|---|---|
| u32 | m_id | |
| u32 | m_inTdQueue | |
| struct _endpoint * | m_next | |
| struct _endpoint * | m_prev | |
| struct _endpoint * | m_busyNext | |
| struct _endpoint * | m_busyPrev | |
| UsbdDevice_t * | m_correspDevice | |
| UsbdIoRequest_t * | m_ioReqListStart | |
| UsbdIoRequest_t * | m_ioReqListEnd | |
| UsbdHcED_t * | m_hcEd | |
| u32 | m_endpointType | |
| u32 | m_isochronLastFrameNum | |
| UsbdTimerCbStruct_t | m_timer | |
| u32 | m_alignFlag | |
| u8 | m_schedulingIndex | |
| u8 | m_waitHigh | |
| u8 | m_waitLow | |
| u8 | m_packetSizeForScheduling | |
| struct _usbHub |
Definition at line 195 of file usbdpriv.h.
Collaboration diagram for _usbHub:| Data Fields | ||
|---|---|---|
| struct _usbHub * | m_next | |
| u32 | m_pad1[1] | |
| u32 | m_curAllocatedCount | |
| UsbdDevice_t * | m_dev | |
| UsbdEndpoint_t * | m_controlEp | |
| UsbdEndpoint_t * | m_statusChangeEp | |
| UsbdIoRequest_t | m_controlIoReq | |
| UsbdIoRequest_t | m_statusIoReq | |
| u32 | m_maxPower | |
| u32 | m_isSelfPowered | |
| UsbHubDescriptor | m_desc | |
| u32 | m_pad2[6] | |
| u32 | m_numChildDevices | |
| u32 | m_portCounter | |
| u32 | m_hubStatusCounter | |
| u16 | m_hubStatus | |
| u16 | m_hubStatusChange | |
| u32 | m_portStatusChange | |
| u8 | m_statusChangeInfo[8] | |
| u32 | m_pad3[6] | |
| struct _hcCA |
Definition at line 219 of file usbdpriv.h.
Collaboration diagram for _hcCA:| Data Fields | ||
|---|---|---|
| volatile UsbdHcED_t * | InterruptTable[32] | |
| volatile u16 | FrameNumber | |
| volatile u16 | pad | |
| volatile UsbdHcTD_t * | DoneHead | |
| volatile u8 | reserved[116] | |
| volatile u32 | pad2 | |
| struct _ohciRegs |
Definition at line 229 of file usbdpriv.h.
Collaboration diagram for _ohciRegs:| Data Fields | ||
|---|---|---|
| volatile u32 | HcRevision | |
| volatile u32 | HcControl | |
| volatile u32 | HcCommandStatus | |
| volatile u32 | HcInterruptStatus | |
| volatile u32 | HcInterruptEnable | |
| volatile u32 | HcInterruptDisable | |
| volatile HcCA * | HcHCCA | |
| volatile UsbdHcED_t * | HcPeriodCurrentEd | |
| volatile UsbdHcED_t * | HcControlHeadEd | |
| volatile UsbdHcED_t * | HcControlCurrentEd | |
| volatile UsbdHcED_t * | HcBulkHeadEd | |
| volatile UsbdHcED_t * | HcBulkCurrentEd | |
| volatile u32 | HcDoneHead | |
| volatile u32 | HcFmInterval | |
| volatile u32 | HcFmRemaining | |
| volatile u32 | HcFmNumber | |
| volatile u32 | HcPeriodicStart | |
| volatile u32 | HcLsThreshold | |
| volatile u32 | HcRhDescriptorA | |
| volatile u32 | HcRhDescriptorB | |
| volatile u32 | HcRhStatus | |
| volatile u32 | HcRhPortStatus[2] | |
| struct _memPool |
Definition at line 255 of file usbdpriv.h.
Collaboration diagram for _memPool:| Data Fields | ||
|---|---|---|
| volatile OhciRegs * | m_ohciRegs | |
| volatile HcCA * | m_hcHCCA | |
| struct _hcEd * | m_hcEdBuf | |
| struct _hcTd * | m_freeHcTdList | |
| struct _hcTd * | m_hcTdBuf | |
| struct _hcTd * | m_hcTdBufEnd | |
| struct _hcIsoTd * | m_freeHcIsoTdList | |
| struct _hcIsoTd * | m_hcIsoTdBuf | |
| struct _hcIsoTd * | m_hcIsoTdBufEnd | |
| struct _ioRequest ** | m_hcTdToIoReqLUT | |
| struct _ioRequest ** | m_hcIsoTdToIoReqLUT | |
| struct _ioRequest * | m_ioReqBufPtr | |
| struct _ioRequest * | m_freeIoReqList | |
| struct _ioRequest * | m_freeIoReqListEnd | |
| struct _device * | m_deviceTreeBuf | |
| struct _device * | m_freeDeviceListStart | |
| struct _device * | m_freeDeviceListEnd | |
| struct _endpoint * | m_endpointBuf | |
| struct _endpoint * | m_freeEpListStart | |
| struct _endpoint * | m_freeEpListEnd | |
| struct _endpoint * | m_tdQueueStart | |
| struct _endpoint * | m_tdQueueEnd | |
| u32 | m_interruptBandwidthSchedulingValues[32] | |
| u32 | m_delayResets | |
| int | m_interruptCounters[9] | |
| struct _timerCbStruct * | m_timerListStart | |
| struct _timerCbStruct * | m_timerListEnd | |
| struct _device * | m_deviceTreeRoot | |
| struct _usbdReportDescriptor |
Definition at line 298 of file usbdpriv.h.
Collaboration diagram for _usbdReportDescriptor:| Data Fields | ||
|---|---|---|
| struct _usbdReportDescriptor * | m_next | |
| struct _usbdReportDescriptor * | m_prev | |
| u32 | m_cfgNum | |
| u32 | m_ifNum | |
| u32 | m_length | |
| u8 | m_data[] | |
| struct _usbdKernelResources |
Definition at line 308 of file usbdpriv.h.
| Data Fields | ||
|---|---|---|
| int | m_usbdSema | |
| int | m_hcdTid | |
| int | m_hcdIrqEvent | |
| int | m_callbackTid | |
| int | m_callbackEvent | |
| union _ioRequest.__unnamed__ |
Definition at line 97 of file usbdpriv.h.
| Data Fields | ||
|---|---|---|
| void * | m_userCallbackProc | |
| sceUsbdDoneCallback | m_userCallbackProcRegular | |
| sceUsbdMultiIsochronousDoneCallback | m_userCallbackProcMultiIsochronous | |