projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
thunderbolt: Introduce tb_port_is_nhi()
[linux-2.6-microblaze.git]
/
drivers
/
thunderbolt
/
tb.h
diff --git
a/drivers/thunderbolt/tb.h
b/drivers/thunderbolt/tb.h
index
a1d5de5
..
6aee18b
100644
(file)
--- a/
drivers/thunderbolt/tb.h
+++ b/
drivers/thunderbolt/tb.h
@@
-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;
}
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;
static inline bool tb_port_is_pcie_down(const struct tb_port *port)
{
return port && port->config.type == TB_TYPE_PCIE_DOWN;