mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt792x: introduce mt792x_irq_map
mt792x_irq_map will be use to share the irq code shared between mt7921 and mt7925 Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Deren Wu <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
0034ae2890
commit
8419c4e793
@@ -114,6 +114,19 @@ struct mt792x_phy {
|
||||
bool roc_grant;
|
||||
};
|
||||
|
||||
struct mt792x_irq_map {
|
||||
u32 host_irq_enable;
|
||||
struct {
|
||||
u32 all_complete_mask;
|
||||
u32 mcu_complete_mask;
|
||||
} tx;
|
||||
struct {
|
||||
u32 data_complete_mask;
|
||||
u32 wm_complete_mask;
|
||||
u32 wm2_complete_mask;
|
||||
} rx;
|
||||
};
|
||||
|
||||
struct mt792x_hif_ops {
|
||||
int (*init_reset)(struct mt792x_dev *dev);
|
||||
int (*reset)(struct mt792x_dev *dev);
|
||||
@@ -145,6 +158,7 @@ struct mt792x_dev {
|
||||
struct mt76_connac_pm pm;
|
||||
struct mt76_connac_coredump coredump;
|
||||
const struct mt792x_hif_ops *hif_ops;
|
||||
const struct mt792x_irq_map *irq_map;
|
||||
|
||||
struct work_struct ipv6_ns_work;
|
||||
/* IPv6 addresses for WoWLAN */
|
||||
|
||||
Reference in New Issue
Block a user