class PORTSC

Defined at line 535 of file ../../src/devices/usb/drivers/xhci/registers.h

Section 5.4.8

Public Members

 field_PLC_538
 field_PRC_540
 field_OCC_542
 field_WRC_544
 field_PEC_546
 field_CSC_549
 field_LWS_551
 field_PIC_553
 field_PortSpeed_555
 field_PP_557
 field_PLS_574
 field_PR_578
 field_OCA_580
 field_PED_583
 field_CCS_585

Public Methods

template <, >
typename SelfType::ValueType PLC ()

Port link change

Defined at line 538 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_PLC (typename SelfType::ValueType val)

Port link change

Defined at line 538 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType PRC ()

Port reset change

Defined at line 540 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_PRC (typename SelfType::ValueType val)

Port reset change

Defined at line 540 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType OCC ()

Overcurrent change

Defined at line 542 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_OCC (typename SelfType::ValueType val)

Overcurrent change

Defined at line 542 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType WRC ()

Warm port reset for USB 3.0 ports

Defined at line 544 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_WRC (typename SelfType::ValueType val)

Warm port reset for USB 3.0 ports

Defined at line 544 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType PEC ()

Port enabled/disabled changed. Only applicable to USB 2.0 ports

Defined at line 546 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_PEC (typename SelfType::ValueType val)

Port enabled/disabled changed. Only applicable to USB 2.0 ports

Defined at line 546 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType CSC ()

Events -- each event must be ACKed by writing a 1 to it if set

Connect status change

Defined at line 549 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_CSC (typename SelfType::ValueType val)

Events -- each event must be ACKed by writing a 1 to it if set

Connect status change

Defined at line 549 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType LWS ()

Write a 1 to this field before writing to PLS

Defined at line 551 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_LWS (typename SelfType::ValueType val)

Write a 1 to this field before writing to PLS

Defined at line 551 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType PIC ()

Port Indicator Control

Defined at line 553 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_PIC (typename SelfType::ValueType val)

Port Indicator Control

Defined at line 553 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType PortSpeed ()

Speed ID (see 7.2.1 to find actual speed this represents)

Defined at line 555 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_PortSpeed (typename SelfType::ValueType val)

Speed ID (see 7.2.1 to find actual speed this represents)

Defined at line 555 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType PP ()

Port Power bit

Defined at line 557 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_PP (typename SelfType::ValueType val)

Port Power bit

Defined at line 557 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
LinkState PLS ()

Port Link State. Must write a 1 to LWS prior to writing this field.

Defined at line 574 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_PLS (LinkState val)

Port Link State. Must write a 1 to LWS prior to writing this field.

Defined at line 574 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType PR ()

Port reset

For USB 2.0, write this bit to transition from POLLING to ENABLED state.

For USB 3.0, writing this bit will cause a hot reset.

Defined at line 578 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_PR (typename SelfType::ValueType val)

Port reset

For USB 2.0, write this bit to transition from POLLING to ENABLED state.

For USB 3.0, writing this bit will cause a hot reset.

Defined at line 578 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType OCA ()

Overcurrent active. Not sure how to handle this?

Defined at line 580 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_OCA (typename SelfType::ValueType val)

Overcurrent active. Not sure how to handle this?

Defined at line 580 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType PED ()

Port enabled (write a 1 to disable it)

Reset the port to enable it again

Defined at line 583 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_PED (typename SelfType::ValueType val)

Port enabled (write a 1 to disable it)

Reset the port to enable it again

Defined at line 583 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
typename SelfType::ValueType CCS ()

Current connect status (1 when a device is connected)

Defined at line 585 of file ../../src/devices/usb/drivers/xhci/registers.h

template <, >
SelfType & set_CCS (typename SelfType::ValueType val)

Current connect status (1 when a device is connected)

Defined at line 585 of file ../../src/devices/usb/drivers/xhci/registers.h

hwreg::RegisterAddr<PORTSC> Get (uint8_t cap_length, uint16_t port)

Defined at line 586 of file ../../src/devices/usb/drivers/xhci/registers.h

Enumerations

enum LinkState
Name Value
U0 0
U1 1
U2 2
U3 3
Disabled 4
RxDetect 5
Inactive 6
Polling 7
Recovery 8
HotReset 9
ComplianceMode 10
TestMode 11
Resume 15

Defined at line 558 of file ../../src/devices/usb/drivers/xhci/registers.h

Records