swh:1:snp:173f8deb0c56c557784b4fd217e7608ac6197844
Raw File
Tip revision: 39dae59d66acd86d1de24294bd2f343fd5e7a625 authored by Linus Torvalds on 05 November 2017, 21:05:14 UTC
Linux 4.14-rc8
Tip revision: 39dae59
tunnel_pci.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Thunderbolt Cactus Ridge driver - PCIe tunnel
 *
 * Copyright (c) 2014 Andreas Noever <andreas.noever@gmail.com>
 */

#ifndef TB_PCI_H_
#define TB_PCI_H_

#include "tb.h"

struct tb_pci_tunnel {
	struct tb *tb;
	struct tb_port *up_port;
	struct tb_port *down_port;
	struct tb_path *path_to_up;
	struct tb_path *path_to_down;
	struct list_head list;
};

struct tb_pci_tunnel *tb_pci_alloc(struct tb *tb, struct tb_port *up,
				   struct tb_port *down);
void tb_pci_free(struct tb_pci_tunnel *tunnel);
int tb_pci_activate(struct tb_pci_tunnel *tunnel);
int tb_pci_restart(struct tb_pci_tunnel *tunnel);
void tb_pci_deactivate(struct tb_pci_tunnel *tunnel);
bool tb_pci_is_invalid(struct tb_pci_tunnel *tunnel);

#endif

back to top