thunderbolt: Introduce tb_port_is_nhi()
[linux-2.6-microblaze.git] / drivers / thunderbolt / tb.h
index a1d5de5..6aee18b 100644 (file)
@@ -464,6 +464,11 @@ static inline bool tb_port_is_null(const struct tb_port *port)
        return port && port->port && port->config.type == TB_TYPE_PORT;
 }
 
+static inline bool tb_port_is_nhi(const struct tb_port *port)
+{
+       return port && port->config.type == TB_TYPE_NHI;
+}
+
 static inline bool tb_port_is_pcie_down(const struct tb_port *port)
 {
        return port && port->config.type == TB_TYPE_PCIE_DOWN;