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