Lines Matching +full:0 +full:x5b

44  * 0:3    data_high_time. Inactive time of DIOW_/DIOR_ for PIO and MW DMA.
53 * 21 CLK frequency for UDMA: 0=ATA clock, 1=dual ATA clock.
65 { XFER_UDMA_6, 0x12446231 }, /* 0x12646231 ?? */
66 { XFER_UDMA_5, 0x12446231 },
67 { XFER_UDMA_4, 0x12446231 },
68 { XFER_UDMA_3, 0x126c6231 },
69 { XFER_UDMA_2, 0x12486231 },
70 { XFER_UDMA_1, 0x124c6233 },
71 { XFER_UDMA_0, 0x12506297 },
73 { XFER_MW_DMA_2, 0x22406c31 },
74 { XFER_MW_DMA_1, 0x22406c33 },
75 { XFER_MW_DMA_0, 0x22406c97 },
77 { XFER_PIO_4, 0x06414e31 },
78 { XFER_PIO_3, 0x06414e42 },
79 { XFER_PIO_2, 0x06414e53 },
80 { XFER_PIO_1, 0x06814e93 },
81 { XFER_PIO_0, 0x06814ea7 }
85 { XFER_UDMA_6, 0x12848242 },
86 { XFER_UDMA_5, 0x12848242 },
87 { XFER_UDMA_4, 0x12ac8242 },
88 { XFER_UDMA_3, 0x128c8242 },
89 { XFER_UDMA_2, 0x120c8242 },
90 { XFER_UDMA_1, 0x12148254 },
91 { XFER_UDMA_0, 0x121882ea },
93 { XFER_MW_DMA_2, 0x22808242 },
94 { XFER_MW_DMA_1, 0x22808254 },
95 { XFER_MW_DMA_0, 0x228082ea },
97 { XFER_PIO_4, 0x0a81f442 },
98 { XFER_PIO_3, 0x0a81f443 },
99 { XFER_PIO_2, 0x0a81f454 },
100 { XFER_PIO_1, 0x0ac1f465 },
101 { XFER_PIO_0, 0x0ac1f48a }
105 { XFER_UDMA_6, 0x1c869c62 },
106 { XFER_UDMA_5, 0x1cae9c62 }, /* 0x1c8a9c62 */
107 { XFER_UDMA_4, 0x1c8a9c62 },
108 { XFER_UDMA_3, 0x1c8e9c62 },
109 { XFER_UDMA_2, 0x1c929c62 },
110 { XFER_UDMA_1, 0x1c9a9c62 },
111 { XFER_UDMA_0, 0x1c829c62 },
113 { XFER_MW_DMA_2, 0x2c829c62 },
114 { XFER_MW_DMA_1, 0x2c829c66 },
115 { XFER_MW_DMA_0, 0x2c829d2e },
117 { XFER_PIO_4, 0x0c829c62 },
118 { XFER_PIO_3, 0x0c829c84 },
119 { XFER_PIO_2, 0x0c829ca6 },
120 { XFER_PIO_1, 0x0d029d26 },
121 { XFER_PIO_0, 0x0d029d5e }
221 return 0xffffffffU; /* silence compiler warning */ in hpt37x_find_mode()
233 if (i >= 0) { in hpt_dma_blacklisted()
237 return 0; in hpt_dma_blacklisted()
266 "IC35L010AVER07-0",
267 "IC35L020AVER07-0",
268 "IC35L030AVER07-0",
269 "IC35L040AVER07-0",
270 "IC35L060AVER07-0",
288 mask &= ~(0xE0 << ATA_SHIFT_UDMA); in hpt370_filter()
304 mask &= ~(0xE0 << ATA_SHIFT_UDMA); in hpt370a_filter()
320 mask &= ~((0xE << ATA_SHIFT_UDMA) | ATA_MASK_MWDMA); in hpt372_filter()
337 pci_read_config_byte(pdev, 0x5B, &scr2); in hpt37x_cable_detect()
338 pci_write_config_byte(pdev, 0x5B, scr2 & ~0x01); in hpt37x_cable_detect()
343 pci_read_config_byte(pdev, 0x5A, &ata66); in hpt37x_cable_detect()
345 pci_write_config_byte(pdev, 0x5B, scr2); in hpt37x_cable_detect()
363 unsigned int mcrbase = 0x50 + 4 * ap->port_no; in hpt374_fn1_cable_detect()
369 /* Set bit 15 of 0x52 to enable TCBLID as input */ in hpt374_fn1_cable_detect()
370 pci_write_config_word(pdev, mcrbase + 2, mcr3 | 0x8000); in hpt374_fn1_cable_detect()
371 pci_read_config_byte(pdev, 0x5A, &ata66); in hpt374_fn1_cable_detect()
394 { 0x50, 1, 0x04, 0x04 }, in hpt37x_pre_reset()
395 { 0x54, 1, 0x04, 0x04 } in hpt37x_pre_reset()
402 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt37x_pre_reset()
416 addr1 = 0x40 + 4 * (adev->devno + 2 * ap->port_no); in hpt370_set_mode()
417 addr2 = 0x51 + 4 * ap->port_no; in hpt370_set_mode()
421 fast &= ~0x02; in hpt370_set_mode()
422 fast |= 0x01; in hpt370_set_mode()
427 mask = 0xcfc3ffff; in hpt370_set_mode()
429 mask = 0x31c001ff; in hpt370_set_mode()
431 mask = 0x303c0000; in hpt370_set_mode()
486 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt370_bmdma_stop()
496 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt370_bmdma_stop()
510 addr1 = 0x40 + 4 * (adev->devno + 2 * ap->port_no); in hpt372_set_mode()
511 addr2 = 0x51 + 4 * ap->port_no; in hpt372_set_mode()
515 fast &= ~0x07; in hpt372_set_mode()
520 mask = 0xcfc3ffff; in hpt372_set_mode()
522 mask = 0x31c001ff; in hpt372_set_mode()
524 mask = 0x303c0000; in hpt372_set_mode()
570 int mscreg = 0x50 + 4 * ap->port_no; in hpt37x_bmdma_stop()
573 pci_read_config_byte(pdev, 0x6A, &bwsr_stat); in hpt37x_bmdma_stop()
576 pci_write_config_byte(pdev, mscreg, msc_stat | 0x30); in hpt37x_bmdma_stop()
651 * Turn the timing data intoa clock slot (0 for 33, 1 for 40, 2 for 50
659 return 0; /* 33Mhz slot */ in hpt37x_clock_slot()
681 for (tries = 0; tries < 0x5000; tries++) { in hpt37x_calibrate_dpll()
683 pci_read_config_byte(dev, 0x5b, &reg5b); in hpt37x_calibrate_dpll()
684 if (reg5b & 0x80) { in hpt37x_calibrate_dpll()
686 for (tries = 0; tries < 0x1000; tries++) { in hpt37x_calibrate_dpll()
687 pci_read_config_byte(dev, 0x5b, &reg5b); in hpt37x_calibrate_dpll()
689 if ((reg5b & 0x80) == 0) in hpt37x_calibrate_dpll()
690 return 0; in hpt37x_calibrate_dpll()
693 pci_read_config_dword(dev, 0x5c, &reg5c); in hpt37x_calibrate_dpll()
694 pci_write_config_dword(dev, 0x5c, reg5c & ~0x100); in hpt37x_calibrate_dpll()
699 return 0; in hpt37x_calibrate_dpll()
713 return 0; in hpt374_read_freq()
715 freq = inl(io_base + 0x90); in hpt374_read_freq()
718 freq = inl(io_base + 0x90); in hpt374_read_freq()
736 * HPT366 4 (HPT366) 0 Other driver
851 ppi[0] = &info_hpt370; in hpt37x_init_one()
853 prefer_dpll = 0; in hpt37x_init_one()
856 ppi[0] = &info_hpt370a; in hpt37x_init_one()
858 prefer_dpll = 0; in hpt37x_init_one()
861 ppi[0] = &info_hpt372; in hpt37x_init_one()
874 ppi[0] = &info_hpt372; in hpt37x_init_one()
881 ppi[0] = &info_hpt302; in hpt37x_init_one()
888 ppi[0] = &info_hpt302; in hpt37x_init_one()
894 pci_read_config_byte(dev, 0x50, &mcr1); in hpt37x_init_one()
895 mcr1 &= ~0x04; in hpt37x_init_one()
896 pci_write_config_byte(dev, 0x50, mcr1); in hpt37x_init_one()
912 pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0x78); in hpt37x_init_one()
913 pci_write_config_byte(dev, PCI_MIN_GNT, 0x08); in hpt37x_init_one()
914 pci_write_config_byte(dev, PCI_MAX_LAT, 0x08); in hpt37x_init_one()
916 pci_read_config_byte(dev, 0x5A, &irqmask); in hpt37x_init_one()
917 irqmask &= ~0x10; in hpt37x_init_one()
918 pci_write_config_byte(dev, 0x5a, irqmask); in hpt37x_init_one()
927 pci_write_config_byte(dev, 0x5b, 0x23); in hpt37x_init_one()
934 outb(0x0e, iobase + 0x9c); in hpt37x_init_one()
939 * from FN 0 on the HPT374. in hpt37x_init_one()
944 if (freq == 0) in hpt37x_init_one()
947 freq = inl(iobase + 0x90); in hpt37x_init_one()
949 if ((freq >> 12) != 0xABCDE) { in hpt37x_init_one()
952 u32 total = 0; in hpt37x_init_one()
957 for (i = 0; i < 128; i++) { in hpt37x_init_one()
958 pci_read_config_byte(dev, 0x78, &sr); in hpt37x_init_one()
959 total += sr & 0x1FF; in hpt37x_init_one()
964 freq &= 0x1FF; in hpt37x_init_one()
983 dpll = (ppi[0]->udma_mask & 0xC0) ? 3 : 2; in hpt37x_init_one()
991 pci_write_config_byte(dev, 0x5b, 0x21); in hpt37x_init_one()
992 pci_write_config_dword(dev, 0x5C, in hpt37x_init_one()
993 (f_high << 16) | f_low | 0x100); in hpt37x_init_one()
995 for (adjust = 0; adjust < 8; adjust++) { in hpt37x_init_one()
1006 pci_write_config_dword(dev, 0x5C, in hpt37x_init_one()
1007 (f_high << 16) | f_low | 0x100); in hpt37x_init_one()
1028 if (clock_slot < 2 && ppi[0] == &info_hpt370) in hpt37x_init_one()
1029 ppi[0] = &info_hpt370_33; in hpt37x_init_one()
1030 if (clock_slot < 2 && ppi[0] == &info_hpt370a) in hpt37x_init_one()
1031 ppi[0] = &info_hpt370a_33; in hpt37x_init_one()
1038 return ata_pci_bmdma_init_one(dev, ppi, &hpt37x_sht, private_data, 0); in hpt37x_init_one()