Skip to content
Open
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
7 changes: 6 additions & 1 deletion XhciImodAmd.p
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
// Restricted AMD xHCI interrupt-moderation module.

#define PCI_VENDOR_ID_AMD 0x1022
#define PCI_DEVICE_ID_AMD_USB_15B6 0x15B6
#define PCI_DEVICE_ID_AMD_USB_15B7 0x15B7
#define PCI_DEVICE_ID_AMD_USB_15B8 0x15B8
#define PCI_DEVICE_ID_AMD_USB_43F7 0x43F7
#define PCI_DEVICE_ID_AMD_USB_43FD 0x43FD

#define PCI_CFG_COMMAND 0x04
Expand Down Expand Up @@ -67,7 +70,9 @@ new g_max_intrs = 0;

bool:is_allowed_device(device_id) {
switch (device_id) {
case PCI_DEVICE_ID_AMD_USB_15B7, PCI_DEVICE_ID_AMD_USB_43FD:
case PCI_DEVICE_ID_AMD_USB_15B6, PCI_DEVICE_ID_AMD_USB_15B7,
PCI_DEVICE_ID_AMD_USB_15B8, PCI_DEVICE_ID_AMD_USB_43F7,
PCI_DEVICE_ID_AMD_USB_43FD:
return true;
}
return false;
Expand Down