mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt792x: replace shared PCIe MAC macros with per-chip struct
Replace hardcoded MT_PCIE_MAC_INT_ENABLE and MT_PCIE_MAC_PM macros with a per-chip mt792x_pcie_reg struct. Remove the shared macros from mt792x_regs.h and update mt792x_wpdma_reinit_cond() to use dev->pcie_reg. This is a preparation patch before enabling MT7928 PCIe support. Signed-off-by: Emery Hsin <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
5d3681c069
commit
610830a7da
@@ -238,6 +238,11 @@ struct mt792x_hif_ops {
|
||||
int (*fw_own)(struct mt792x_dev *dev);
|
||||
};
|
||||
|
||||
struct mt792x_pcie_reg {
|
||||
u32 imask;
|
||||
u32 pm;
|
||||
};
|
||||
|
||||
struct mt792x_dev {
|
||||
union { /* must be first */
|
||||
struct mt76_dev mt76;
|
||||
@@ -273,6 +278,7 @@ struct mt792x_dev {
|
||||
struct mt76_connac_coredump coredump;
|
||||
const struct mt792x_hif_ops *hif_ops;
|
||||
const struct mt792x_irq_map *irq_map;
|
||||
const struct mt792x_pcie_reg *pcie_reg;
|
||||
|
||||
struct work_struct ipv6_ns_work;
|
||||
struct delayed_work mlo_pm_work;
|
||||
|
||||
Reference in New Issue
Block a user