forked from jannau/thunderbolt-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tbtutils.h
19 lines (16 loc) · 739 Bytes
/
tbtutils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-License-Identifier: LGPL-2.0
/*
* Copyright (C) 2023 Rajat Khandelwal <[email protected]>
* Copyright (C) 2023 Intel Corporation
*/
#include "tb_cfg.h"
char* trim_host_pci_id(u8 domain);
void reset_host_interface(const struct vfio_hlvl_params *params);
void allocate_tx_desc(const struct vfio_hlvl_params *params);
void allocate_rx_desc(const struct vfio_hlvl_params *params);
void init_host_tx(const struct vfio_hlvl_params *params);
void init_host_rx(const struct vfio_hlvl_params *params);
int request_router_cfg(const char *pci_id, const struct vfio_hlvl_params *params,
u64 route, u32 addr, u64 dwords);
int tbt_hw_init(const char *pci_id);
void free_tx_rx_desc(const struct vfio_hlvl_params *params);