Loading drivers/thunderbolt/tb.h +12 −0 Original line number Diff line number Diff line Loading @@ -758,6 +758,18 @@ static inline bool tb_switch_is_titan_ridge(const struct tb_switch *sw) return false; } static inline bool tb_switch_is_ice_lake(const struct tb_switch *sw) { if (sw->config.vendor_id == PCI_VENDOR_ID_INTEL) { switch (sw->config.device_id) { case PCI_DEVICE_ID_INTEL_ICL_NHI0: case PCI_DEVICE_ID_INTEL_ICL_NHI1: return true; } } return false; } /** * tb_switch_is_usb4() - Is the switch USB4 compliant * @sw: Switch to check Loading Loading
drivers/thunderbolt/tb.h +12 −0 Original line number Diff line number Diff line Loading @@ -758,6 +758,18 @@ static inline bool tb_switch_is_titan_ridge(const struct tb_switch *sw) return false; } static inline bool tb_switch_is_ice_lake(const struct tb_switch *sw) { if (sw->config.vendor_id == PCI_VENDOR_ID_INTEL) { switch (sw->config.device_id) { case PCI_DEVICE_ID_INTEL_ICL_NHI0: case PCI_DEVICE_ID_INTEL_ICL_NHI1: return true; } } return false; } /** * tb_switch_is_usb4() - Is the switch USB4 compliant * @sw: Switch to check Loading