]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/thunderbolt/tb.h
thunderbolt: Rework capability handling
[mirror_ubuntu-bionic-kernel.git] / drivers / thunderbolt / tb.h
index 61d57ba64035752f9b73e90082c16415de49463f..0b78bc4fbe61b0d78565190558c3f8323257faf3 100644 (file)
@@ -173,7 +173,7 @@ static inline int tb_port_read(struct tb_port *port, void *buffer,
                           length);
 }
 
-static inline int tb_port_write(struct tb_port *port, void *buffer,
+static inline int tb_port_write(struct tb_port *port, const void *buffer,
                                enum tb_cfg_space space, u32 offset, u32 length)
 {
        return tb_cfg_write(port->sw->tb->ctl,
@@ -233,7 +233,8 @@ int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged);
 int tb_port_add_nfc_credits(struct tb_port *port, int credits);
 int tb_port_clear_counter(struct tb_port *port, int counter);
 
-int tb_find_cap(struct tb_port *port, enum tb_cfg_space space, enum tb_cap cap);
+int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec);
+int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap);
 
 struct tb_path *tb_path_alloc(struct tb *tb, int num_hops);
 void tb_path_free(struct tb_path *path);