• Home
  • Raw
  • Download

Lines Matching refs:hwif

51 static void ali_fifo_control(ide_hwif_t *hwif, ide_drive_t *drive, int on)  in ali_fifo_control()  argument
53 struct pci_dev *pdev = to_pci_dev(hwif->dev); in ali_fifo_control()
54 int pio_fifo = 0x54 + hwif->channel; in ali_fifo_control()
64 static void ali_program_timings(ide_hwif_t *hwif, ide_drive_t *drive, in ali_program_timings() argument
67 struct pci_dev *dev = to_pci_dev(hwif->dev); in ali_program_timings()
68 int port = hwif->channel ? 0x5c : 0x58; in ali_program_timings()
69 int udmat = 0x56 + hwif->channel; in ali_program_timings()
102 static void ali_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in ali_set_pio_mode() argument
126 ali_fifo_control(hwif, drive, (drive->media == ide_disk) ? 0x05 : 0x00); in ali_set_pio_mode()
128 ali_program_timings(hwif, drive, &t, 0); in ali_set_pio_mode()
153 return drive->hwif->ultra_mask; in ali_udma_filter()
164 static void ali_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in ali_set_dma_mode() argument
167 struct pci_dev *dev = to_pci_dev(hwif->dev); in ali_set_dma_mode()
190 ali_program_timings(hwif, drive, &t, 0); in ali_set_dma_mode()
192 ali_program_timings(hwif, drive, NULL, in ali_set_dma_mode()
381 static u8 ali_cable_detect(ide_hwif_t *hwif) in ali_cable_detect() argument
383 struct pci_dev *dev = to_pci_dev(hwif->dev); in ali_cable_detect()
400 if ((tmpbyte & (1 << hwif->channel)) == 0) in ali_cable_detect()
418 static void init_hwif_ali15x3(ide_hwif_t *hwif) in init_hwif_ali15x3() argument
435 if ((hwif->channel && ideic == 0x03) || in init_hwif_ali15x3()
436 (!hwif->channel && !ideic)) { in init_hwif_ali15x3()
443 } else if (hwif->channel && !(ideic & 0x01)) { in init_hwif_ali15x3()
452 hwif->irq = irq; in init_hwif_ali15x3()
467 static int init_dma_ali15x3(ide_hwif_t *hwif, const struct ide_port_info *d) in init_dma_ali15x3() argument
469 struct pci_dev *dev = to_pci_dev(hwif->dev); in init_dma_ali15x3()
470 unsigned long base = ide_pci_dma_base(hwif, d); in init_dma_ali15x3()
475 hwif->dma_base = base; in init_dma_ali15x3()
477 if (ide_pci_check_simplex(hwif, d) < 0) in init_dma_ali15x3()
483 if (!hwif->channel) in init_dma_ali15x3()
487 hwif->name, base, base + 7); in init_dma_ali15x3()
489 if (ide_allocate_dma_engine(hwif)) in init_dma_ali15x3()