Lines Matching refs:hwif

17 static void tc86c001_set_mode(ide_hwif_t *hwif, ide_drive_t *drive)  in tc86c001_set_mode()  argument
19 unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00); in tc86c001_set_mode()
45 static void tc86c001_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tc86c001_set_pio_mode() argument
48 tc86c001_set_mode(hwif, drive); in tc86c001_set_pio_mode()
67 ide_hwif_t *hwif = drive->hwif; in tc86c001_timer_expiry() local
68 ide_expiry_t *expiry = ide_get_hwifdata(hwif); in tc86c001_timer_expiry()
69 u8 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); in tc86c001_timer_expiry()
72 hwif->expiry = expiry; in tc86c001_timer_expiry()
75 unsigned long sc_base = hwif->config_data; in tc86c001_timer_expiry()
77 u8 dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); in tc86c001_timer_expiry()
83 outb(dma_cmd & ~0x01, hwif->dma_base + ATA_DMA_CMD); in tc86c001_timer_expiry()
92 outb(0x00, hwif->dma_base + ATA_DMA_CMD); in tc86c001_timer_expiry()
94 outb(0x01, hwif->dma_base + ATA_DMA_CMD); in tc86c001_timer_expiry()
114 ide_hwif_t *hwif = drive->hwif; in tc86c001_dma_start() local
115 unsigned long sc_base = hwif->config_data; in tc86c001_dma_start()
117 unsigned long nsectors = blk_rq_sectors(hwif->rq); in tc86c001_dma_start()
128 ide_set_hwifdata(hwif, hwif->expiry); in tc86c001_dma_start()
129 hwif->expiry = &tc86c001_timer_expiry; in tc86c001_dma_start()
134 static u8 tc86c001_cable_detect(ide_hwif_t *hwif) in tc86c001_cable_detect() argument
136 struct pci_dev *dev = to_pci_dev(hwif->dev); in tc86c001_cable_detect()
147 static void init_hwif_tc86c001(ide_hwif_t *hwif) in init_hwif_tc86c001() argument
149 struct pci_dev *dev = to_pci_dev(hwif->dev); in init_hwif_tc86c001()
163 hwif->config_data = sc_base; in init_hwif_tc86c001()
165 if (!hwif->dma_base) in init_hwif_tc86c001()
175 hwif->rqsize = 0xffff; in init_hwif_tc86c001()