Lines Matching +full:0 +full:x04000

20 	{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7961),
22 { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7922),
24 { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0608),
26 { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0616),
65 { 0x820d0000, 0x30000, 0x10000 }, /* WF_LMAC_TOP (WF_WTBLON) */ in __mt7921_reg_addr()
66 { 0x820ed000, 0x24800, 0x00800 }, /* WF_LMAC_TOP BN0 (WF_MIB) */ in __mt7921_reg_addr()
67 { 0x820e4000, 0x21000, 0x00400 }, /* WF_LMAC_TOP BN0 (WF_TMAC) */ in __mt7921_reg_addr()
68 { 0x820e7000, 0x21e00, 0x00200 }, /* WF_LMAC_TOP BN0 (WF_DMA) */ in __mt7921_reg_addr()
69 { 0x820eb000, 0x24200, 0x00400 }, /* WF_LMAC_TOP BN0 (WF_LPON) */ in __mt7921_reg_addr()
70 { 0x820e2000, 0x20800, 0x00400 }, /* WF_LMAC_TOP BN0 (WF_AGG) */ in __mt7921_reg_addr()
71 { 0x820e3000, 0x20c00, 0x00400 }, /* WF_LMAC_TOP BN0 (WF_ARB) */ in __mt7921_reg_addr()
72 { 0x820e5000, 0x21400, 0x00800 }, /* WF_LMAC_TOP BN0 (WF_RMAC) */ in __mt7921_reg_addr()
73 { 0x00400000, 0x80000, 0x10000 }, /* WF_MCU_SYSRAM */ in __mt7921_reg_addr()
74 { 0x00410000, 0x90000, 0x10000 }, /* WF_MCU_SYSRAM (configure register) */ in __mt7921_reg_addr()
75 { 0x40000000, 0x70000, 0x10000 }, /* WF_UMAC_SYSRAM */ in __mt7921_reg_addr()
76 { 0x54000000, 0x02000, 0x01000 }, /* WFDMA PCIE0 MCU DMA0 */ in __mt7921_reg_addr()
77 { 0x55000000, 0x03000, 0x01000 }, /* WFDMA PCIE0 MCU DMA1 */ in __mt7921_reg_addr()
78 { 0x58000000, 0x06000, 0x01000 }, /* WFDMA PCIE1 MCU DMA0 (MEM_DMA) */ in __mt7921_reg_addr()
79 { 0x59000000, 0x07000, 0x01000 }, /* WFDMA PCIE1 MCU DMA1 */ in __mt7921_reg_addr()
80 { 0x7c000000, 0xf0000, 0x10000 }, /* CONN_INFRA */ in __mt7921_reg_addr()
81 { 0x7c020000, 0xd0000, 0x10000 }, /* CONN_INFRA, WFDMA */ in __mt7921_reg_addr()
82 { 0x7c060000, 0xe0000, 0x10000 }, /* CONN_INFRA, conn_host_csr_top */ in __mt7921_reg_addr()
83 { 0x80020000, 0xb0000, 0x10000 }, /* WF_TOP_MISC_OFF */ in __mt7921_reg_addr()
84 { 0x81020000, 0xc0000, 0x10000 }, /* WF_TOP_MISC_ON */ in __mt7921_reg_addr()
85 { 0x820c0000, 0x08000, 0x04000 }, /* WF_UMAC_TOP (PLE) */ in __mt7921_reg_addr()
86 { 0x820c8000, 0x0c000, 0x02000 }, /* WF_UMAC_TOP (PSE) */ in __mt7921_reg_addr()
87 { 0x820cc000, 0x0e000, 0x01000 }, /* WF_UMAC_TOP (PP) */ in __mt7921_reg_addr()
88 { 0x820cd000, 0x0f000, 0x01000 }, /* WF_MDP_TOP */ in __mt7921_reg_addr()
89 { 0x74030000, 0x10000, 0x10000 }, /* PCIE_MAC_IREG */ in __mt7921_reg_addr()
90 { 0x820ce000, 0x21c00, 0x00200 }, /* WF_LMAC_TOP (WF_SEC) */ in __mt7921_reg_addr()
91 { 0x820cf000, 0x22000, 0x01000 }, /* WF_LMAC_TOP (WF_PF) */ in __mt7921_reg_addr()
92 { 0x820e0000, 0x20000, 0x00400 }, /* WF_LMAC_TOP BN0 (WF_CFG) */ in __mt7921_reg_addr()
93 { 0x820e1000, 0x20400, 0x00200 }, /* WF_LMAC_TOP BN0 (WF_TRB) */ in __mt7921_reg_addr()
94 { 0x820e9000, 0x23400, 0x00200 }, /* WF_LMAC_TOP BN0 (WF_WTBLOFF) */ in __mt7921_reg_addr()
95 { 0x820ea000, 0x24000, 0x00200 }, /* WF_LMAC_TOP BN0 (WF_ETBF) */ in __mt7921_reg_addr()
96 { 0x820ec000, 0x24600, 0x00200 }, /* WF_LMAC_TOP BN0 (WF_INT) */ in __mt7921_reg_addr()
97 { 0x820f0000, 0xa0000, 0x00400 }, /* WF_LMAC_TOP BN1 (WF_CFG) */ in __mt7921_reg_addr()
98 { 0x820f1000, 0xa0600, 0x00200 }, /* WF_LMAC_TOP BN1 (WF_TRB) */ in __mt7921_reg_addr()
99 { 0x820f2000, 0xa0800, 0x00400 }, /* WF_LMAC_TOP BN1 (WF_AGG) */ in __mt7921_reg_addr()
100 { 0x820f3000, 0xa0c00, 0x00400 }, /* WF_LMAC_TOP BN1 (WF_ARB) */ in __mt7921_reg_addr()
101 { 0x820f4000, 0xa1000, 0x00400 }, /* WF_LMAC_TOP BN1 (WF_TMAC) */ in __mt7921_reg_addr()
102 { 0x820f5000, 0xa1400, 0x00800 }, /* WF_LMAC_TOP BN1 (WF_RMAC) */ in __mt7921_reg_addr()
103 { 0x820f7000, 0xa1e00, 0x00200 }, /* WF_LMAC_TOP BN1 (WF_DMA) */ in __mt7921_reg_addr()
104 { 0x820f9000, 0xa3400, 0x00200 }, /* WF_LMAC_TOP BN1 (WF_WTBLOFF) */ in __mt7921_reg_addr()
105 { 0x820fa000, 0xa4000, 0x00200 }, /* WF_LMAC_TOP BN1 (WF_ETBF) */ in __mt7921_reg_addr()
106 { 0x820fb000, 0xa4200, 0x00400 }, /* WF_LMAC_TOP BN1 (WF_LPON) */ in __mt7921_reg_addr()
107 { 0x820fc000, 0xa4600, 0x00200 }, /* WF_LMAC_TOP BN1 (WF_INT) */ in __mt7921_reg_addr()
108 { 0x820fd000, 0xa4800, 0x00800 }, /* WF_LMAC_TOP BN1 (WF_MIB) */ in __mt7921_reg_addr()
112 if (addr < 0x100000) in __mt7921_reg_addr()
115 for (i = 0; i < ARRAY_SIZE(fixed_map); i++) { in __mt7921_reg_addr()
128 if ((addr >= 0x18000000 && addr < 0x18c00000) || in __mt7921_reg_addr()
129 (addr >= 0x70000000 && addr < 0x78000000) || in __mt7921_reg_addr()
130 (addr >= 0x7c000000 && addr < 0x7c400000)) in __mt7921_reg_addr()
136 return 0; in __mt7921_reg_addr()
176 MT_TX_RING_BASE, 0); in mt7921_dma_init()
180 mt76_wr(dev, MT_WFDMA0_TX_RING0_EXT_CTRL, 0x4); in mt7921_dma_init()
206 MT_RX_BUF_SIZE, MT_WFDMA0(0x540)); in mt7921_dma_init()
218 if (ret < 0) in mt7921_dma_init()
281 ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); in mt7921_pci_probe()
293 if (ret < 0) in mt7921_pci_probe()
322 mt76_mmio_init(&dev->mt76, pcim_iomap_table(pdev)[0]); in mt7921_pci_probe()
350 (mt7921_l1_rr(dev, MT_HW_REV) & 0xff); in mt7921_pci_probe()
357 mt76_wr(dev, irq_map.host_irq_enable, 0); in mt7921_pci_probe()
359 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0xff); in mt7921_pci_probe()
374 return 0; in mt7921_pci_probe()
412 if (err < 0) in mt7921_pci_suspend()
434 MT_WFDMA0_GLO_CFG_RX_DMA_BUSY, 0, 1000); in mt7921_pci_suspend()
441 mt76_wr(dev, dev->irq_map->host_irq_enable, 0); in mt7921_pci_suspend()
442 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0x0); in mt7921_pci_suspend()
450 return 0; in mt7921_pci_suspend()
466 if (err < 0) in mt7921_pci_suspend()
481 if (err < 0) in mt7921_pci_resume()
487 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0xff); in mt7921_pci_resume()
516 if (err < 0) in mt7921_pci_resume()