Lines Matching refs:hwif
21 static void slc90e66_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
23 struct pci_dev *dev = to_pci_dev(hwif->dev);
25 int master_port = hwif->channel ? 0x42 : 0x40;
58 slave_data &= hwif->channel ? 0x0f : 0xf0;
60 (hwif->channel ? 4 : 0);
75 static void slc90e66_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
77 struct pci_dev *dev = to_pci_dev(hwif->dev);
78 u8 maslave = hwif->channel ? 0x42 : 0x40;
114 slc90e66_set_pio_mode(hwif, drive);
118 static u8 slc90e66_cable_detect(ide_hwif_t *hwif)
120 struct pci_dev *dev = to_pci_dev(hwif->dev);
121 u8 reg47 = 0, mask = hwif->channel ? 0x01 : 0x02;