Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
32 lines
764 B
C
32 lines
764 B
C
/* 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
|
|
|