• Home
  • Raw
  • Download

Lines Matching +full:0 +full:x108

34  * in the beginning of the driver, which sets the speed of drive 0 to 11 (there
35 * are some lines present). 0 - 11 are allowed speed values. These values are
60 #define UMC_DRIVE1 1 /* 0 to 11 allowed */
65 static const u8 pio_to_umc [5] = {0, 3, 7, 10, 11}; /* rough guesses */
67 /* 0 1 2 3 4 5 6 7 8 9 10 11 */
69 {0x0f, 0x0b, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1},
70 {0x03, 0x02, 0x02, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1},
71 {0xff, 0xcb, 0xc0, 0x58, 0x36, 0x33, 0x23, 0x22, 0x21, 0x11, 0x10, 0x0}
76 outb_p(port, 0x108); in out_umc()
77 outb_p(wert, 0x109); in out_umc()
82 outb_p(port, 0x108); in in_umc()
83 return inb_p(0x109); in in_umc()
90 outb_p(0x5A, 0x108); /* enable umc */ in umc_set_speeds()
92 out_umc(0xd7, (speedtab[0][speeds[2]] | (speedtab[0][speeds[3]]<<4))); in umc_set_speeds()
93 out_umc(0xd6, (speedtab[0][speeds[0]] | (speedtab[0][speeds[1]]<<4))); in umc_set_speeds()
94 tmp = 0; in umc_set_speeds()
95 for (i = 3; i >= 0; i--) in umc_set_speeds()
97 out_umc(0xdc, tmp); in umc_set_speeds()
98 for (i = 0; i < 4; i++) { in umc_set_speeds()
99 out_umc(0xd0 + i, speedtab[2][speeds[i]]); in umc_set_speeds()
100 out_umc(0xd8 + i, speedtab[2][speeds[i]]); in umc_set_speeds()
102 outb_p(0xa5, 0x108); /* disable umc */ in umc_set_speeds()
104 printk("umc8672: drive speeds [0 to 11]: %d %d %d %d\n", in umc_set_speeds()
105 speeds[0], speeds[1], speeds[2], speeds[3]); in umc_set_speeds()
144 if (!request_region(0x108, 2, "umc8672")) { in umc8672_probe()
145 printk(KERN_ERR "umc8672: ports 0x108-0x109 already in use.\n"); in umc8672_probe()
149 outb_p(0x5A, 0x108); /* enable umc */ in umc8672_probe()
150 if (in_umc (0xd5) != 0xa0) { in umc8672_probe()
153 release_region(0x108, 2); in umc8672_probe()
156 outb_p(0xa5, 0x108); /* disable umc */ in umc8672_probe()
161 return ide_legacy_device_add(&umc8672_port_info, 0); in umc8672_probe()
166 module_param_named(probe, probe_umc8672, bool, 0);
171 if (probe_umc8672 == 0) in umc8672_init()
174 if (umc8672_probe() == 0) in umc8672_init()
175 return 0; in umc8672_init()