Lines Matching refs:hwif

24 static void pdc202xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive)
26 struct pci_dev *dev = to_pci_dev(hwif->dev);
79 static void pdc202xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
82 pdc202xx_set_mode(hwif, drive);
85 static int pdc202xx_test_irq(ide_hwif_t *hwif)
87 struct pci_dev *dev = to_pci_dev(hwif->dev);
91 if (hwif->channel) {
106 static u8 pdc2026x_cable_detect(ide_hwif_t *hwif)
108 struct pci_dev *dev = to_pci_dev(hwif->dev);
109 u16 CIS, mask = hwif->channel ? (1 << 11) : (1 << 10);
125 static void pdc_old_enable_66MHz_clock(ide_hwif_t *hwif)
127 unsigned long clock_reg = hwif->extra_base + 0x01;
130 outb(clock | (hwif->channel ? 0x08 : 0x02), clock_reg);
133 static void pdc_old_disable_66MHz_clock(ide_hwif_t *hwif)
135 unsigned long clock_reg = hwif->extra_base + 0x01;
138 outb(clock & ~(hwif->channel ? 0x08 : 0x02), clock_reg);
141 static void pdc2026x_init_hwif(ide_hwif_t *hwif)
143 pdc_old_disable_66MHz_clock(hwif);
149 pdc_old_enable_66MHz_clock(drive->hwif);
151 ide_hwif_t *hwif = drive->hwif;
152 struct request *rq = hwif->rq;
153 unsigned long high_16 = hwif->extra_base - 16;
154 unsigned long atapi_reg = high_16 + (hwif->channel ? 0x24 : 0x20);
158 outb(clock | (hwif->channel ? 0x08 : 0x02), high_16 + 0x11);
171 ide_hwif_t *hwif = drive->hwif;
172 unsigned long high_16 = hwif->extra_base - 16;
173 unsigned long atapi_reg = high_16 + (hwif->channel ? 0x24 : 0x20);
178 outb(clock & ~(hwif->channel ? 0x08:0x02), high_16 + 0x11);
181 pdc_old_disable_66MHz_clock(drive->hwif);