]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - drivers/thunderbolt/tunnel_pci.h
Merge remote-tracking branches 'asoc/topic/ac97', 'asoc/topic/ac97-mfd', 'asoc/topic...
[mirror_ubuntu-focal-kernel.git] / drivers / thunderbolt / tunnel_pci.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Thunderbolt Cactus Ridge driver - PCIe tunnel
4 *
5 * Copyright (c) 2014 Andreas Noever <andreas.noever@gmail.com>
6 */
7
8 #ifndef TB_PCI_H_
9 #define TB_PCI_H_
10
11 #include "tb.h"
12
13 struct tb_pci_tunnel {
14 struct tb *tb;
15 struct tb_port *up_port;
16 struct tb_port *down_port;
17 struct tb_path *path_to_up;
18 struct tb_path *path_to_down;
19 struct list_head list;
20 };
21
22 struct tb_pci_tunnel *tb_pci_alloc(struct tb *tb, struct tb_port *up,
23 struct tb_port *down);
24 void tb_pci_free(struct tb_pci_tunnel *tunnel);
25 int tb_pci_activate(struct tb_pci_tunnel *tunnel);
26 int tb_pci_restart(struct tb_pci_tunnel *tunnel);
27 void tb_pci_deactivate(struct tb_pci_tunnel *tunnel);
28 bool tb_pci_is_invalid(struct tb_pci_tunnel *tunnel);
29
30 #endif
31