Lines Matching defs:vortex
30 static int snd_vortex_midi(vortex_t *vortex)
42 (hwread(vortex->mmio, VORTEX_CTRL) & ~CTRL_MIDI_PORT) |
44 hwwrite(vortex->mmio, VORTEX_CTRL, temp);
48 (hwread(vortex->mmio, VORTEX_CTRL) & ~CTRL_MIDI_PORT) &
50 hwwrite(vortex->mmio, VORTEX_CTRL, temp);
54 temp = hwread(vortex->mmio, VORTEX_CTRL2) & 0xffff00cf;
56 hwwrite(vortex->mmio, VORTEX_CTRL2, temp);
57 hwwrite(vortex->mmio, VORTEX_MIDI_CMD, MPU401_RESET);
60 temp = hwread(vortex->mmio, VORTEX_MIDI_DATA);
62 dev_err(vortex->card->dev, "midi port doesn't acknowledge!\n");
66 hwwrite(vortex->mmio, VORTEX_IRQ_CTRL,
67 hwread(vortex->mmio, VORTEX_IRQ_CTRL) | IRQ_MIDI);
72 snd_mpu401_uart_new(vortex->card, 0, MPU401_HW_MPU401, 0x330,
74 hwwrite(vortex->mmio, VORTEX_CTRL,
75 (hwread(vortex->mmio, VORTEX_CTRL) &
80 port = (unsigned long)(vortex->mmio + VORTEX_MIDI_DATA);
82 snd_mpu401_uart_new(vortex->card, 0, MPU401_HW_AUREAL, port,
85 hwwrite(vortex->mmio, VORTEX_CTRL,
86 (hwread(vortex->mmio, VORTEX_CTRL) &
91 mpu->cport = (unsigned long)(vortex->mmio + VORTEX_MIDI_CMD);
94 snprintf(rmidi->name, sizeof(rmidi->name), "%s MIDI %d", CARD_NAME_SHORT , vortex->card->number);
96 vortex->rmidi = rmidi;