Lines Matching refs:hwif
16 static void tc86c001_set_mode(ide_hwif_t *hwif, ide_drive_t *drive)
18 unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00);
44 static void tc86c001_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
47 tc86c001_set_mode(hwif, drive);
52 ide_hwif_t *hwif = drive->hwif;
53 ide_expiry_t *expiry = ide_get_hwifdata(hwif);
54 u8 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS);
57 hwif->expiry = expiry;
60 unsigned long sc_base = hwif->config_data;
62 u8 dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD);
68 outb(dma_cmd & ~0x01, hwif->dma_base + ATA_DMA_CMD);
77 outb(0x00, hwif->dma_base + ATA_DMA_CMD);
79 outb(0x01, hwif->dma_base + ATA_DMA_CMD);
99 ide_hwif_t *hwif = drive->hwif;
100 unsigned long sc_base = hwif->config_data;
102 unsigned long nsectors = blk_rq_sectors(hwif->rq);
113 ide_set_hwifdata(hwif, hwif->expiry);
114 hwif->expiry = &tc86c001_timer_expiry;
119 static u8 tc86c001_cable_detect(ide_hwif_t *hwif)
121 struct pci_dev *dev = to_pci_dev(hwif->dev);
132 static void __devinit init_hwif_tc86c001(ide_hwif_t *hwif)
134 struct pci_dev *dev = to_pci_dev(hwif->dev);
148 hwif->config_data = sc_base;
150 if (!hwif->dma_base)
160 hwif->rqsize = 0xffff;