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