Lines Matching +full:0 +full:xf004
49 jreg = ast_get_index_reg_mask(ast, AST_IO_VGACRI, 0xd0, 0xff); in ast_detect_widescreen()
50 if (!(jreg & 0x80)) in ast_detect_widescreen()
52 else if (jreg & 0x01) in ast_detect_widescreen()
86 jreg = ast_get_index_reg_mask(ast, AST_IO_VGACRI, 0xa3, 0xff); in ast_detect_tx_chip()
87 if (jreg & 0x80) in ast_detect_tx_chip()
97 jreg = ast_get_index_reg_mask(ast, AST_IO_VGACRI, 0xd1, 0xff); in ast_detect_tx_chip()
99 case 0x04: in ast_detect_tx_chip()
102 case 0x08: in ast_detect_tx_chip()
112 case 0x0c: in ast_detect_tx_chip()
116 if (ast_get_index_reg_mask(ast, AST_IO_VGACRI, 0xD1, TX_TYPE_MASK) == in ast_detect_tx_chip()
151 mcr_cfg = 0x00000577; in ast_get_dram_info()
154 mcr_scu_mpll = 0x000050C0; in ast_get_dram_info()
157 mcr_scu_strap = 0; in ast_get_dram_info()
160 ast_write32(ast, 0xf004, 0x1e6e0000); in ast_get_dram_info()
161 ast_write32(ast, 0xf000, 0x1); in ast_get_dram_info()
162 mcr_cfg = ast_read32(ast, 0x10004); in ast_get_dram_info()
163 mcr_scu_mpll = ast_read32(ast, 0x10120); in ast_get_dram_info()
164 mcr_scu_strap = ast_read32(ast, 0x10170); in ast_get_dram_info()
174 return 0; in ast_get_dram_info()
177 if (mcr_cfg & 0x40) in ast_get_dram_info()
183 switch (mcr_cfg & 0x03) { in ast_get_dram_info()
184 case 0: in ast_get_dram_info()
199 switch (mcr_cfg & 0x03) { in ast_get_dram_info()
200 case 0: in ast_get_dram_info()
215 switch (mcr_cfg & 0x0c) { in ast_get_dram_info()
216 case 0: in ast_get_dram_info()
221 if (mcr_cfg & 0x40) in ast_get_dram_info()
226 case 0xc: in ast_get_dram_info()
232 if (mcr_scu_strap & 0x2000) in ast_get_dram_info()
237 denum = mcr_scu_mpll & 0x1f; in ast_get_dram_info()
238 num = (mcr_scu_mpll & 0x3fe0) >> 5; in ast_get_dram_info()
239 dsel = (mcr_scu_mpll & 0xc000) >> 14; in ast_get_dram_info()
242 div = 0x4; in ast_get_dram_info()
246 div = 0x2; in ast_get_dram_info()
249 div = 0x1; in ast_get_dram_info()
253 return 0; in ast_get_dram_info()
297 if (ast->vram_size < pci_resource_len(pdev, 0)) { in ast_device_create()
298 ast->dp501_fw_buf = pci_iomap_range(pdev, 0, ast->vram_size, 0); in ast_device_create()