Lines Matching +full:0 +full:x2f
70 VIA_BAD_PREQ = 0x01, /* Crashes if PREQ# till DDACK# set */
71 VIA_BAD_CLK66 = 0x02, /* 66 MHz clock doesn't work correctly */
72 VIA_SET_FIFO = 0x04, /* Needs to have FIFO split set */
73 VIA_NO_UNMASK = 0x08, /* Doesn't work with IRQ unmasking on */
74 VIA_BAD_ID = 0x10, /* Has wrong vendor ID (0x1107) */
75 VIA_BAD_AST = 0x20, /* Don't touch Address Setup Timing */
76 VIA_NO_ENABLES = 0x40, /* Has no enablebits */
77 VIA_SATA_PATA = 0x80, /* SATA/PATA combined configuration */
81 VIA_IDFLAG_SINGLE = (1 << 0), /* single channel controller) */
96 { "vx855", PCI_DEVICE_ID_VIA_VX855, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST | VIA_SATA_PATA },
97 { "vx800", PCI_DEVICE_ID_VIA_VX800, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST | VIA_SATA_PATA },
98 { "vt8261", PCI_DEVICE_ID_VIA_8261, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST },
99 { "vt8237s", PCI_DEVICE_ID_VIA_8237S, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST },
100 { "vt8251", PCI_DEVICE_ID_VIA_8251, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST },
101 { "cx700", PCI_DEVICE_ID_VIA_CX700, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST | VIA_SATA_PATA },
102 { "vt6410", PCI_DEVICE_ID_VIA_6410, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST | VIA_NO_ENABLES },
103 { "vt6415", PCI_DEVICE_ID_VIA_6415, 0x00, 0xff, ATA_UDMA6, VIA_BAD_AST | VIA_NO_ENABLES },
104 { "vt8237a", PCI_DEVICE_ID_VIA_8237A, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST },
105 { "vt8237", PCI_DEVICE_ID_VIA_8237, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST },
106 { "vt8235", PCI_DEVICE_ID_VIA_8235, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST },
107 { "vt8233a", PCI_DEVICE_ID_VIA_8233A, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST },
108 { "vt8233c", PCI_DEVICE_ID_VIA_8233C_0, 0x00, 0x2f, ATA_UDMA5, },
109 { "vt8233", PCI_DEVICE_ID_VIA_8233_0, 0x00, 0x2f, ATA_UDMA5, },
110 { "vt8231", PCI_DEVICE_ID_VIA_8231, 0x00, 0x2f, ATA_UDMA5, },
111 { "vt82c686b", PCI_DEVICE_ID_VIA_82C686, 0x40, 0x4f, ATA_UDMA5, },
112 { "vt82c686a", PCI_DEVICE_ID_VIA_82C686, 0x10, 0x2f, ATA_UDMA4, },
113 { "vt82c686", PCI_DEVICE_ID_VIA_82C686, 0x00, 0x0f, ATA_UDMA2, VIA_BAD_CLK66 },
114 { "vt82c596b", PCI_DEVICE_ID_VIA_82C596, 0x10, 0x2f, ATA_UDMA4, },
115 { "vt82c596a", PCI_DEVICE_ID_VIA_82C596, 0x00, 0x0f, ATA_UDMA2, VIA_BAD_CLK66 },
116 { "vt82c586b", PCI_DEVICE_ID_VIA_82C586_0, 0x47, 0x4f, ATA_UDMA2, VIA_SET_FIFO },
117 { "vt82c586b", PCI_DEVICE_ID_VIA_82C586_0, 0x40, 0x46, ATA_UDMA2, VIA_SET_FIFO | VIA_BAD_PREQ },
118 { "vt82c586b", PCI_DEVICE_ID_VIA_82C586_0, 0x30, 0x3f, ATA_UDMA2, VIA_SET_FIFO },
119 { "vt82c586a", PCI_DEVICE_ID_VIA_82C586_0, 0x20, 0x2f, ATA_UDMA2, VIA_SET_FIFO },
120 { "vt82c586", PCI_DEVICE_ID_VIA_82C586_0, 0x00, 0x0f, 0x00, VIA_SET_FIFO },
121 { "vt82c576", PCI_DEVICE_ID_VIA_82C576, 0x00, 0x2f, 0x00, VIA_SET_FIFO | VIA_NO_UNMASK },
122 …{ "vt82c576", PCI_DEVICE_ID_VIA_82C576, 0x00, 0x2f, 0x00, VIA_SET_FIFO | VIA_NO_UNMASK | VI…
123 { "vtxxxx", PCI_DEVICE_ID_VIA_ANON, 0x00, 0x2f, ATA_UDMA6, VIA_BAD_AST },
163 if (pdev->subsystem_vendor == 0x161F && pdev->subsystem_device == 0x2032) in via_cable_override()
165 return 0; in via_cable_override()
189 if ((config->flags & VIA_SATA_PATA) && ap->port_no == 0) in via_cable_detect()
199 pci_read_config_dword(pdev, 0x50, &ata66); in via_cable_detect()
202 if (ata66 & (0x10100000 >> (16 * ap->port_no))) in via_cable_detect()
218 { 0x40, 1, 0x02, 0x02 }, in via_pre_reset()
219 { 0x40, 1, 0x01, 0x01 } in via_pre_reset()
282 pci_read_config_byte(pdev, 0x4C, &setup); in via_do_set_mode()
285 pci_write_config_byte(pdev, 0x4C, setup); in via_do_set_mode()
289 pci_write_config_byte(pdev, 0x4F - ap->port_no, in via_do_set_mode()
291 pci_write_config_byte(pdev, 0x48 + offset, in via_do_set_mode()
298 ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 5) - 2)) : 0x03; in via_do_set_mode()
301 ut = t.udma ? (0xe8 | (clamp_val(t.udma, 2, 9) - 2)) : 0x0f; in via_do_set_mode()
304 ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 9) - 2)) : 0x07; in via_do_set_mode()
307 ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 9) - 2)) : 0x07; in via_do_set_mode()
315 pci_read_config_byte(pdev, 0x50 + offset, &udma_etc); in via_do_set_mode()
318 udma_etc &= ~0x20; in via_do_set_mode()
322 udma_etc &= 0x10; in via_do_set_mode()
326 pci_write_config_byte(pdev, 0x50 + offset, udma_etc); in via_do_set_mode()
333 int set_ast = (config->flags & VIA_BAD_AST) ? 0 : 1; in via_set_piomode()
341 int set_ast = (config->flags & VIA_BAD_AST) ? 0 : 1; in via_set_dmamode()
363 if (strcmp(model_num, "TS64GSSD25-M") == 0) { in via_mode_filter()
395 int newctl = 0; in via_tf_load()
436 if (ret < 0) in via_port_start()
443 return 0; in via_port_start()
479 /* 0x40 low bits indicate enabled channels */ in via_config_fifo()
480 pci_read_config_byte(pdev, 0x40 , &enable); in via_config_fifo()
484 static const u8 fifo_setting[4] = {0x00, 0x60, 0x00, 0x20}; in via_config_fifo()
487 pci_read_config_byte(pdev, 0x43, &fifo); in via_config_fifo()
491 fifo &= 0x7F; in via_config_fifo()
493 fifo &= 0x9f; in via_config_fifo()
496 pci_write_config_byte(pdev, 0x43, fifo); in via_config_fifo()
509 pci_read_config_dword(pdev, 0x50, &timing); in via_fixup()
510 timing |= 0x80008; in via_fixup()
511 pci_write_config_dword(pdev, 0x50, timing); in via_fixup()
515 pci_read_config_dword(pdev, 0x50, &timing); in via_fixup()
516 timing &= ~0x80008; in via_fixup()
517 pci_write_config_dword(pdev, 0x50, timing); in via_fixup()
604 if ((id->device == 0x0415 || id->device == 0x3164) && in via_init_one()
613 /* 0x40 low bits indicate enabled channels */ in via_init_one()
614 pci_read_config_byte(pdev, 0x40 , &enable); in via_init_one()
616 if (enable == 0) in via_init_one()
622 case 0x00: in via_init_one()
624 ppi[0] = &via_mwdma_info_borked; in via_init_one()
626 ppi[0] = &via_mwdma_info; in via_init_one()
629 ppi[0] = &via_udma33_info; in via_init_one()
632 ppi[0] = &via_udma66_info; in via_init_one()
635 ppi[0] = &via_udma100_info; in via_init_one()
638 ppi[0] = &via_udma133_info; in via_init_one()
648 return ata_pci_bmdma_init_one(pdev, ppi, &via_sht, (void *)config, 0); in via_init_one()
674 return 0; in via_reinit_one()
679 { PCI_VDEVICE(VIA, 0x0415), },
680 { PCI_VDEVICE(VIA, 0x0571), },
681 { PCI_VDEVICE(VIA, 0x0581), },
682 { PCI_VDEVICE(VIA, 0x1571), },
683 { PCI_VDEVICE(VIA, 0x3164), },
684 { PCI_VDEVICE(VIA, 0x5324), },
685 { PCI_VDEVICE(VIA, 0xC409), VIA_IDFLAG_SINGLE },
686 { PCI_VDEVICE(VIA, 0x9001), VIA_IDFLAG_SINGLE },