diff options
| author | kimi <kimi.h.kuparinen@gmail.com> | 2020-08-15 08:47:00 -0400 |
|---|---|---|
| committer | kimi <kimi.h.kuparinen@gmail.com> | 2020-08-16 02:55:19 -0400 |
| commit | a34e6498f0f606210ed56d5ad53f00602c52be40 (patch) | |
| tree | e9fa9080b92831836b32c352724be9491fa9d411 /hid-tminit.h | |
| parent | 16bfd88198de32bd747fcc0d2f029890994c3d8d (diff) | |
| download | hid-tminit-a34e6498f0f606210ed56d5ad53f00602c52be40.tar.gz hid-tminit-a34e6498f0f606210ed56d5ad53f00602c52be40.zip | |
fix for kernel panic when initializing T300RS on some setups
Diffstat (limited to 'hid-tminit.h')
| -rw-r--r-- | hid-tminit.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/hid-tminit.h b/hid-tminit.h index 820ca86..c8b664e 100644 --- a/hid-tminit.h +++ b/hid-tminit.h @@ -1,4 +1,21 @@ /** + * These interrupts are used to prevent a nasty crash when initializing the + * T300RS. Used in tminit_interrupts(). + */ +u8 setup_0[] = { 0x42, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; +u8 setup_1[] = { 0x0a, 0x04, 0x90, 0x03, 0x00, 0x00, 0x00, 0x00 }; +u8 setup_2[] = { 0x0a, 0x04, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00 }; +u8 setup_3[] = { 0x0a, 0x04, 0x12, 0x10, 0x00, 0x00, 0x00, 0x00 }; +u8 setup_4[] = { 0x0a, 0x04, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00 }; +u8 *setup_arr[] = { setup_0, setup_1, setup_2, setup_3, setup_4 }; +unsigned int setup_arr_sizes[] = { + ARRAY_SIZE(setup_0), + ARRAY_SIZE(setup_1), + ARRAY_SIZE(setup_2), + ARRAY_SIZE(setup_3), + ARRAY_SIZE(setup_4) +}; +/** * This struct contains for each type of * Thrustmaster wheel * |
