Lines Matching +full:0 +full:x5b

31 	USE_DPLL	=	(1 << 0)
41 * 0:3 data_high_time. Inactive time of DIOW_/DIOR_ for PIO and MW DMA.
50 * 21 CLK frequency for UDMA: 0=ATA clock, 1=dual ATA clock.
64 { XFER_UDMA_7, 0x1c869c62 },
65 { XFER_UDMA_6, 0x1c869c62 },
66 { XFER_UDMA_5, 0x1c8a9c62 },
67 { XFER_UDMA_4, 0x1c8a9c62 },
68 { XFER_UDMA_3, 0x1c8e9c62 },
69 { XFER_UDMA_2, 0x1c929c62 },
70 { XFER_UDMA_1, 0x1c9a9c62 },
71 { XFER_UDMA_0, 0x1c829c62 },
73 { XFER_MW_DMA_2, 0x2c829c62 },
74 { XFER_MW_DMA_1, 0x2c829c66 },
75 { XFER_MW_DMA_0, 0x2c829d2e },
77 { XFER_PIO_4, 0x0c829c62 },
78 { XFER_PIO_3, 0x0c829c84 },
79 { XFER_PIO_2, 0x0c829ca6 },
80 { XFER_PIO_1, 0x0d029d26 },
81 { XFER_PIO_0, 0x0d029d5e },
105 return 0xffffffffU; /* silence compiler warning */ in hpt3x2n_find_mode()
119 mask &= ~((0xE << ATA_SHIFT_UDMA) | ATA_MASK_MWDMA); in hpt372n_filter()
136 pci_read_config_byte(pdev, 0x5B, &scr2); in hpt3x2n_cable_detect()
137 pci_write_config_byte(pdev, 0x5B, scr2 & ~0x01); in hpt3x2n_cable_detect()
142 pci_read_config_byte(pdev, 0x5A, &ata66); in hpt3x2n_cable_detect()
144 pci_write_config_byte(pdev, 0x5B, scr2); in hpt3x2n_cable_detect()
166 { 0x50, 1, 0x04, 0x04 }, in hpt3x2n_pre_reset()
167 { 0x54, 1, 0x04, 0x04 } in hpt3x2n_pre_reset()
175 pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); in hpt3x2n_pre_reset()
179 pci_read_config_byte(pdev, 0x51 + 4 * ap->port_no, &mcr2); in hpt3x2n_pre_reset()
180 mcr2 &= ~0x07; in hpt3x2n_pre_reset()
181 pci_write_config_byte(pdev, 0x51 + 4 * ap->port_no, mcr2); in hpt3x2n_pre_reset()
190 int addr = 0x40 + 4 * (adev->devno + 2 * ap->port_no); in hpt3x2n_set_mode()
195 mask = 0xcfc3ffff; in hpt3x2n_set_mode()
197 mask = 0x31c001ff; in hpt3x2n_set_mode()
199 mask = 0x303c0000; in hpt3x2n_set_mode()
245 int mscreg = 0x50 + 4 * ap->port_no; in hpt3x2n_bmdma_stop()
248 pci_read_config_byte(pdev, 0x6A, &bwsr_stat); in hpt3x2n_bmdma_stop()
251 pci_write_config_byte(pdev, mscreg, msc_stat | 0x30); in hpt3x2n_bmdma_stop()
258 * @source: 0x21 or 0x23 for PLL or PCI sourced clock
276 iowrite8(0x80, bmdma+0x73); in hpt3x2n_set_clock()
277 iowrite8(0x80, bmdma+0x77); in hpt3x2n_set_clock()
280 iowrite8(source, bmdma+0x7B); in hpt3x2n_set_clock()
281 iowrite8(0xC0, bmdma+0x79); in hpt3x2n_set_clock()
284 iowrite8(ioread8(bmdma+0x70) | 0x32, bmdma+0x70); in hpt3x2n_set_clock()
285 iowrite8(ioread8(bmdma+0x74) | 0x32, bmdma+0x74); in hpt3x2n_set_clock()
288 iowrite8(0x00, bmdma+0x79); in hpt3x2n_set_clock()
291 iowrite8(0x00, bmdma+0x73); in hpt3x2n_set_clock()
292 iowrite8(0x00, bmdma+0x77); in hpt3x2n_set_clock()
304 return 0; in hpt3x2n_use_dpll()
316 if (rc != 0) in hpt3x2n_qc_defer()
321 return 0; in hpt3x2n_qc_defer()
335 hpt3x2n_set_clock(ap, dpll ? 0x21 : 0x23); in hpt3x2n_qc_issue()
385 for (tries = 0; tries < 0x5000; tries++) { in hpt3xn_calibrate_dpll()
387 pci_read_config_byte(dev, 0x5b, &reg5b); in hpt3xn_calibrate_dpll()
388 if (reg5b & 0x80) { in hpt3xn_calibrate_dpll()
390 for (tries = 0; tries < 0x1000; tries++) { in hpt3xn_calibrate_dpll()
391 pci_read_config_byte(dev, 0x5b, &reg5b); in hpt3xn_calibrate_dpll()
393 if ((reg5b & 0x80) == 0) in hpt3xn_calibrate_dpll()
394 return 0; in hpt3xn_calibrate_dpll()
397 pci_read_config_dword(dev, 0x5c, &reg5c); in hpt3xn_calibrate_dpll()
398 pci_write_config_dword(dev, 0x5c, reg5c & ~0x100); in hpt3xn_calibrate_dpll()
403 return 0; in hpt3xn_calibrate_dpll()
415 fcnt = inl(pci_resource_start(pdev, 4) + 0x90); in hpt3x2n_pci_clock()
416 if ((fcnt >> 12) != 0xABCDE) { in hpt3x2n_pci_clock()
417 u32 total = 0; in hpt3x2n_pci_clock()
424 for (i = 0; i < 128; i++) { in hpt3x2n_pci_clock()
425 pci_read_config_word(pdev, 0x78, &sr); in hpt3x2n_pci_clock()
426 total += sr & 0x1FF; in hpt3x2n_pci_clock()
431 fcnt &= 0x1FF; in hpt3x2n_pci_clock()
528 ppi[0] = &info_hpt372n; in hpt3x2n_init_one()
539 pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0x78); in hpt3x2n_init_one()
540 pci_write_config_byte(dev, PCI_MIN_GNT, 0x08); in hpt3x2n_init_one()
541 pci_write_config_byte(dev, PCI_MAX_LAT, 0x08); in hpt3x2n_init_one()
543 pci_read_config_byte(dev, 0x5A, &irqmask); in hpt3x2n_init_one()
544 irqmask &= ~0x10; in hpt3x2n_init_one()
545 pci_write_config_byte(dev, 0x5a, irqmask); in hpt3x2n_init_one()
555 pci_read_config_byte(dev, 0x50, &mcr1); in hpt3x2n_init_one()
556 mcr1 &= ~0x04; in hpt3x2n_init_one()
557 pci_write_config_byte(dev, 0x50, mcr1); in hpt3x2n_init_one()
570 pci_write_config_dword(dev, 0x5C, (f_high << 16) | f_low | 0x100); in hpt3x2n_init_one()
572 pci_write_config_byte(dev, 0x5B, 0x21); in hpt3x2n_init_one()
575 for (adjust = 0; adjust < 8; adjust++) { in hpt3x2n_init_one()
578 pci_write_config_dword(dev, 0x5C, (f_high << 16) | f_low); in hpt3x2n_init_one()
600 outb(inb(iobase + 0x9c) | 0x04, iobase + 0x9c); in hpt3x2n_init_one()
603 return ata_pci_bmdma_init_one(dev, ppi, &hpt3x2n_sht, hpriv, 0); in hpt3x2n_init_one()