1 | /* SPDX-License-Identifier: GPL-2.0-only |
2 | * |
3 | * Copyright (c) 2021, MediaTek Inc. |
4 | * Copyright (c) 2021-2022, Intel Corporation. |
5 | * |
6 | * Authors: |
7 | * Haijun Liu <haijun.liu@mediatek.com> |
8 | * Sreehari Kancharla <sreehari.kancharla@intel.com> |
9 | * |
10 | * Contributors: |
11 | * Moises Veleta <moises.veleta@intel.com> |
12 | * Ricardo Martinez <ricardo.martinez@linux.intel.com> |
13 | */ |
14 | |
15 | #ifndef __T7XX_PCIE_MAC_H__ |
16 | #define __T7XX_PCIE_MAC_H__ |
17 | |
18 | #include "t7xx_pci.h" |
19 | #include "t7xx_reg.h" |
20 | |
21 | #define IREG_BASE(t7xx_dev) ((t7xx_dev)->base_addr.pcie_mac_ireg_base) |
22 | |
23 | void t7xx_pcie_mac_interrupts_en(struct t7xx_pci_dev *t7xx_dev); |
24 | void t7xx_pcie_mac_interrupts_dis(struct t7xx_pci_dev *t7xx_dev); |
25 | void t7xx_pcie_mac_atr_init(struct t7xx_pci_dev *t7xx_dev); |
26 | void t7xx_pcie_mac_clear_int(struct t7xx_pci_dev *t7xx_dev, enum t7xx_int int_type); |
27 | void t7xx_pcie_mac_set_int(struct t7xx_pci_dev *t7xx_dev, enum t7xx_int int_type); |
28 | void t7xx_pcie_mac_clear_int_status(struct t7xx_pci_dev *t7xx_dev, enum t7xx_int int_type); |
29 | void t7xx_pcie_set_mac_msix_cfg(struct t7xx_pci_dev *t7xx_dev, unsigned int irq_count); |
30 | |
31 | #endif /* __T7XX_PCIE_MAC_H__ */ |
32 | |