Lines Matching +full:ide +full:- +full:port
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 1995-1996 Linus Torvalds & author (see below)
10 * of the UMC 8672 IDE interface.
12 * Version 0.01 Initial version, hacked out of ide.c,
16 * Version 0.02 now configs/compiles separate from ide.c -ml
17 * Version 0.03 enhanced auto-tune, fix display bug
18 * Version 0.05 replace sti() with restore_flags() -ml
19 * add detection of possible race condition -ml
35 * are some lines present). 0 - 11 are allowed speed values. These values are
49 #include <linux/ide.h>
57 * Default speeds. These can be changed with "auto-tune" and/or hdparm.
74 static void out_umc(char port, char wert) in out_umc() argument
76 outb_p(port, 0x108); in out_umc()
80 static inline u8 in_umc(char port) in in_umc() argument
82 outb_p(port, 0x108); in in_umc()
95 for (i = 3; i >= 0; i--) in umc_set_speeds()
110 ide_hwif_t *mate = hwif->mate; in umc_set_pio_mode()
112 const u8 pio = drive->pio_mode - XFER_PIO_0; in umc_set_pio_mode()
115 drive->name, pio, pio_to_umc[pio]); in umc_set_pio_mode()
117 spin_lock_irqsave(&mate->lock, flags); in umc_set_pio_mode()
118 if (mate && mate->handler) { in umc_set_pio_mode()
121 current_speeds[drive->name[2] - 'a'] = pio_to_umc[pio]; in umc_set_pio_mode()
125 spin_unlock_irqrestore(&mate->lock, flags); in umc_set_pio_mode()
145 printk(KERN_ERR "umc8672: ports 0x108-0x109 already in use.\n"); in umc8672_probe()
177 return -ENODEV; in umc8672_init()
183 MODULE_DESCRIPTION("Support for UMC 8672 IDE chipset");