Lines Matching refs:hwif
68 static void piix_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in piix_set_pio_mode() argument
70 struct pci_dev *dev = to_pci_dev(hwif->dev); in piix_set_pio_mode()
72 int master_port = hwif->channel ? 0x42 : 0x40; in piix_set_pio_mode()
111 slave_data &= hwif->channel ? 0x0f : 0xf0; in piix_set_pio_mode()
113 (hwif->channel ? 4 : 0); in piix_set_pio_mode()
137 static void piix_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in piix_set_dma_mode() argument
139 struct pci_dev *dev = to_pci_dev(hwif->dev); in piix_set_dma_mode()
140 u8 maslave = hwif->channel ? 0x42 : 0x40; in piix_set_dma_mode()
195 piix_set_pio_mode(hwif, drive); in piix_set_dma_mode()
227 ide_hwif_t *hwif = drive->hwif; in ich_clear_irq() local
235 if (drive->waiting_for_dma || hwif->dma_base == 0) in ich_clear_irq()
239 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); in ich_clear_irq()
241 outb(dma_stat, hwif->dma_base + ATA_DMA_STATUS); in ich_clear_irq()
271 static u8 piix_cable_detect(ide_hwif_t *hwif) in piix_cable_detect() argument
273 struct pci_dev *pdev = to_pci_dev(hwif->dev); in piix_cable_detect()
275 u8 reg54h = 0, mask = hwif->channel ? 0xc0 : 0x30; in piix_cable_detect()
300 static void init_hwif_piix(ide_hwif_t *hwif) in init_hwif_piix() argument
302 if (!hwif->dma_base) in init_hwif_piix()
306 hwif->ultra_mask = hwif->mwdma_mask = hwif->swdma_mask = 0; in init_hwif_piix()