50 |
|
|
51 |
#ifdef VORTEX_MPU401_LEGACY |
#ifdef VORTEX_MPU401_LEGACY |
52 |
/* EnableHardCodedMPU401Port() */ |
/* EnableHardCodedMPU401Port() */ |
53 |
port = (0x03 << 5); /* FIXME: static address. 0x330,0x331 */ |
/* Enable Legacy MIDI Interface port. */ |
54 |
|
port = (0x03 << 5); /* FIXME: static address. 0x330 */ |
55 |
temp = (hwread(vortex->mmio, VORTEX_CTRL) & ~CTRL_MIDI_PORT) | CTRL_MIDI_EN | port; |
temp = (hwread(vortex->mmio, VORTEX_CTRL) & ~CTRL_MIDI_PORT) | CTRL_MIDI_EN | port; |
56 |
hwwrite(vortex->mmio, VORTEX_CTRL, temp); |
hwwrite(vortex->mmio, VORTEX_CTRL, temp); |
57 |
#else |
#else |
58 |
/* Enable MIDI Interface. */ |
/* Disable Legacy MIDI Interface port. */ |
59 |
temp = (hwread(vortex->mmio, VORTEX_CTRL) & ~CTRL_MIDI_PORT) | CTRL_MIDI_EN; |
temp = (hwread(vortex->mmio, VORTEX_CTRL) & ~CTRL_MIDI_PORT) & ~CTRL_MIDI_EN; |
60 |
hwwrite(vortex->mmio, VORTEX_CTRL, temp); |
hwwrite(vortex->mmio, VORTEX_CTRL, temp); |
61 |
#endif |
#endif |
|
|
|
62 |
/* Mpu401UartInit() */ |
/* Mpu401UartInit() */ |
63 |
mode = 1; |
mode = 1; |
64 |
temp = hwread(vortex->mmio, VORTEX_CTRL2) & 0xffff00cf; |
temp = hwread(vortex->mmio, VORTEX_CTRL2) & 0xffff00cf; |