mirror of
https://github.com/torvalds/linux.git
synced 2026-10-11 12:58:02 +02:00
wifi: mt76: mt792x: add per-chip PCIe register struct
Add a mt792x_pcie_reg struct and a pcie_reg pointer in mt792x_dev, so that each chip can supply its own PCIe register offsets. Users are converted in the following patches. This is a preparation patch before enabling MT7928 PCIe support. Signed-off-by: Emery Hsin <emery.hsin@mediatek.com> Link: https://patch.msgid.link/20260612075042.2577193-5-jb.tsai@mediatek.com Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
4590ceed74
commit
9ad48ff235
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user