Go to the documentation of this file. 1 #ifndef __SOUND_MPU401_H
2 #define __SOUND_MPU401_H
28 #define MPU401_HW_MPU401 1
29 #define MPU401_HW_SB 2
30 #define MPU401_HW_ES1688 3
31 #define MPU401_HW_OPL3SA2 4
32 #define MPU401_HW_SONICVIBES 5
33 #define MPU401_HW_CS4232 6
34 #define MPU401_HW_ES18XX 7
35 #define MPU401_HW_FM801 8
36 #define MPU401_HW_TRID4DWAVE 9
37 #define MPU401_HW_AZT2320 10
38 #define MPU401_HW_ALS100 11
39 #define MPU401_HW_ICE1712 12
40 #define MPU401_HW_VIA686A 13
41 #define MPU401_HW_YMFPCI 14
42 #define MPU401_HW_CMIPCI 15
43 #define MPU401_HW_ALS4000 16
44 #define MPU401_HW_INTEL8X0 17
45 #define MPU401_HW_PC98II 18
46 #define MPU401_HW_AUREAL 19
48 #define MPU401_INFO_INPUT (1 << 0)
49 #define MPU401_INFO_OUTPUT (1 << 1)
50 #define MPU401_INFO_INTEGRATED (1 << 2)
51 #define MPU401_INFO_MMIO (1 << 3)
52 #define MPU401_INFO_TX_IRQ (1 << 4)
53 #define MPU401_INFO_IRQ_HOOK (1 << 5)
55 #define MPU401_INFO_NO_ACK (1 << 6)
56 #define MPU401_INFO_USE_TIMER (1 << 15)
58 #define MPU401_MODE_BIT_INPUT 0
59 #define MPU401_MODE_BIT_OUTPUT 1
60 #define MPU401_MODE_BIT_INPUT_TRIGGER 2
61 #define MPU401_MODE_BIT_OUTPUT_TRIGGER 3
63 #define MPU401_MODE_INPUT (1<<MPU401_MODE_BIT_INPUT)
64 #define MPU401_MODE_OUTPUT (1<<MPU401_MODE_BIT_OUTPUT)
65 #define MPU401_MODE_INPUT_TRIGGER (1<<MPU401_MODE_BIT_INPUT_TRIGGER)
66 #define MPU401_MODE_OUTPUT_TRIGGER (1<<MPU401_MODE_BIT_OUTPUT_TRIGGER)
68 #define MPU401_MODE_INPUT_TIMER (1<<0)
69 #define MPU401_MODE_OUTPUT_TIMER (1<<1)
105 #define MPU401C(mpu) (mpu)->cport
106 #define MPU401D(mpu) (mpu)->port
112 #define MPU401_RX_EMPTY 0x80
113 #define MPU401_TX_FULL 0x40
116 #define MPU401_RESET 0xff
117 #define MPU401_ENTER_UART 0x3f
120 #define MPU401_ACK 0xfe