diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h index 43b5688..2ec8eb8 100644 --- a/src/common.h +++ b/src/common.h | |||
| @@ -111,7 +111,7 @@ struct mtdev { | |||
| 111 | struct mtdev_state *state; | 111 | struct mtdev_state *state; |
| 112 | }; | 112 | }; |
| 113 | 113 | ||
| 114 | #define MT_ABS_SIZE 11 | 114 | #define MT_ABS_SIZE 12 |
| 115 | 115 | ||
| 116 | static const unsigned int mtdev_map_abs2mt[ABS_CNT] = { | 116 | static const unsigned int mtdev_map_abs2mt[ABS_CNT] = { |
| 117 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | 117 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| @@ -121,12 +121,12 @@ static const unsigned int mtdev_map_abs2mt[ABS_CNT] = { | |||
| 121 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | 121 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 122 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | 122 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 123 | 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, | 123 | 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, |
| 124 | 0x0009, 0x000a, 0x000b, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | 124 | 0x0009, 0x000a, 0x000b, 0x000c, 0x0000, 0x0000, 0x0000, 0x0000, |
| 125 | }; | 125 | }; |
| 126 | 126 | ||
| 127 | static const unsigned int mtdev_map_mt2abs[MT_ABS_SIZE] = { | 127 | static const unsigned int mtdev_map_mt2abs[MT_ABS_SIZE] = { |
| 128 | 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, | 128 | 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, |
| 129 | 0x0038, 0x0039, 0x003a, | 129 | 0x0038, 0x0039, 0x003a, 0x003b, |
| 130 | }; | 130 | }; |
| 131 | 131 | ||
| 132 | static inline int mtdev_is_absmt(unsigned int code) | 132 | static inline int mtdev_is_absmt(unsigned int code) |
