Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions kernel/src/arch_impl/aarch64/timer_interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,12 @@ pub extern "C" fn timer_interrupt_handler() {
print_timer_count_decimal(crate::drivers::usb::xhci::EP0_GET_REPORT_OK.load(Ordering::Relaxed));
raw_serial_str(b" ge=");
print_timer_count_decimal(crate::drivers::usb::xhci::EP0_GET_REPORT_ERR.load(Ordering::Relaxed));
raw_serial_str(b" mr=");
print_timer_count_decimal(crate::drivers::usb::xhci::EP0_MOUSE_GET_REPORT_COUNT.load(Ordering::Relaxed));
raw_serial_str(b" mk=");
print_timer_count_decimal(crate::drivers::usb::xhci::EP0_MOUSE_GET_REPORT_OK.load(Ordering::Relaxed));
raw_serial_str(b" me=");
print_timer_count_decimal(crate::drivers::usb::xhci::EP0_MOUSE_GET_REPORT_ERR.load(Ordering::Relaxed));
raw_serial_str(b"]\n");
}
}
Expand Down
2 changes: 2 additions & 0 deletions kernel/src/drivers/usb/descriptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ pub struct SetupPacket {
pub mod descriptor_type {
pub const DEVICE: u8 = 1;
pub const CONFIGURATION: u8 = 2;
pub const STRING: u8 = 3;
pub const INTERFACE: u8 = 4;
pub const ENDPOINT: u8 = 5;
pub const HID_REPORT: u8 = 0x22;
Expand Down Expand Up @@ -133,6 +134,7 @@ pub mod request {

/// USB HID Class Requests
pub mod hid_request {
pub const GET_REPORT: u8 = 0x01;
pub const SET_REPORT: u8 = 0x09;
pub const SET_IDLE: u8 = 0x0A;
pub const SET_PROTOCOL: u8 = 0x0B;
Expand Down
Loading
Loading