Kernel: Set interval and average trb length on configure endpoint
Real controllers seem to require this while spec 4.8.2.4 says that they should be left as zero.
This commit is contained in:
@@ -43,11 +43,7 @@ namespace Kernel
|
||||
BAN::ErrorOr<void> initialize_control_endpoint() override;
|
||||
|
||||
private:
|
||||
XHCIDevice(XHCIController& controller, uint32_t port_id, uint32_t slot_id)
|
||||
: m_controller(controller)
|
||||
, m_port_id(port_id)
|
||||
, m_slot_id(slot_id)
|
||||
{}
|
||||
XHCIDevice(XHCIController& controller, uint32_t port_id, uint32_t slot_id);
|
||||
~XHCIDevice();
|
||||
BAN::ErrorOr<void> update_actual_max_packet_size();
|
||||
|
||||
@@ -55,6 +51,8 @@ namespace Kernel
|
||||
|
||||
void advance_endpoint_enqueue(Endpoint&, bool chain);
|
||||
|
||||
static uint64_t calculate_port_bits_per_second(XHCIController&, uint32_t port_id);
|
||||
|
||||
private:
|
||||
static constexpr uint32_t m_transfer_ring_trb_count = PAGE_SIZE / sizeof(XHCI::TRB);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user