aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Module.symvers0
-rw-r--r--hid-tmff2.c4
-rw-r--r--hid-tmff2.kobin0 -> 464296 bytes
-rw-r--r--hid-tmff2.mod2
-rw-r--r--hid-tmff2.mod.c60
-rw-r--r--hid-tmff2.mod.obin0 -> 143104 bytes
-rw-r--r--hid-tmff2.obin0 -> 322728 bytes
-rw-r--r--modules.order1
8 files changed, 66 insertions, 1 deletions
diff --git a/Module.symvers b/Module.symvers
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Module.symvers
diff --git a/hid-tmff2.c b/hid-tmff2.c
index 869bdb1..34680ff 100644
--- a/hid-tmff2.c
+++ b/hid-tmff2.c
@@ -22,6 +22,7 @@
#include <linux/input.h>
#include <linux/slab.h>
#include <linux/module.h>
+#include <linux/fixp-arith.h>
#define USB_VENDOR_ID_THRUSTMASTER 0x044f
@@ -368,7 +369,8 @@ static int tmff_play(struct input_dev *dev, void *data,
x = 256 - (x - 128);
}
- send_buf[5] = x;
+ x = (x * fixp_sin16(effect->direction * 360 / 0x10000)) / 0x7fff;
+ send_buf[5] = x;
}
diff --git a/hid-tmff2.ko b/hid-tmff2.ko
new file mode 100644
index 0000000..cb88b95
--- /dev/null
+++ b/hid-tmff2.ko
Binary files differ
diff --git a/hid-tmff2.mod b/hid-tmff2.mod
new file mode 100644
index 0000000..587f15d
--- /dev/null
+++ b/hid-tmff2.mod
@@ -0,0 +1,2 @@
+/home/kimi/Documents/Projects/hid-tmff2/hid-tmff2.o
+
diff --git a/hid-tmff2.mod.c b/hid-tmff2.mod.c
new file mode 100644
index 0000000..0929711
--- /dev/null
+++ b/hid-tmff2.mod.c
@@ -0,0 +1,60 @@
+#include <linux/build-salt.h>
+#include <linux/module.h>
+#include <linux/vermagic.h>
+#include <linux/compiler.h>
+
+BUILD_SALT;
+
+MODULE_INFO(vermagic, VERMAGIC_STRING);
+MODULE_INFO(name, KBUILD_MODNAME);
+
+__visible struct module __this_module
+__section(.gnu.linkonce.this_module) = {
+ .name = KBUILD_MODNAME,
+ .init = init_module,
+#ifdef CONFIG_MODULE_UNLOAD
+ .exit = cleanup_module,
+#endif
+ .arch = MODULE_ARCH_INIT,
+};
+
+#ifdef CONFIG_RETPOLINE
+MODULE_INFO(retpoline, "Y");
+#endif
+
+static const struct modversion_info ____versions[]
+__used __section(__versions) = {
+ { 0xb90cb2c6, "module_layout" },
+ { 0xb314bd85, "hid_unregister_driver" },
+ { 0x399e83c3, "__hid_register_driver" },
+ { 0xdecd0b29, "__stack_chk_fail" },
+ { 0x95ba88c, "input_ff_create_memless" },
+ { 0x52af4d4b, "_dev_info" },
+ { 0x60da7bc0, "hid_hw_start" },
+ { 0x484d36ee, "usb_interrupt_msg" },
+ { 0xdf872899, "_dev_err" },
+ { 0x69acdf38, "memcpy" },
+ { 0x443d25f8, "hid_open_report" },
+ { 0xe00d2f98, "__dynamic_dev_dbg" },
+ { 0x2d9e7e22, "current_task" },
+ { 0x162615, "usb_kill_urb" },
+ { 0x4d1ff60a, "wait_for_completion_timeout" },
+ { 0x7f02188f, "__msecs_to_jiffies" },
+ { 0xd9a5ea54, "__init_waitqueue_head" },
+ { 0xc5850110, "printk" },
+ { 0x37a0cba, "kfree" },
+ { 0xf9a482f9, "msleep" },
+ { 0xf51ed08d, "usb_submit_urb" },
+ { 0xec4e6a94, "kmem_cache_alloc_trace" },
+ { 0xc4a14306, "kmalloc_caches" },
+ { 0xe0d57b51, "usb_alloc_urb" },
+ { 0xd0d6e733, "usb_free_urb" },
+ { 0xf64c8101, "_dev_warn" },
+ { 0x3d6a80fd, "hid_hw_stop" },
+ { 0xbdfb6dbb, "__fentry__" },
+};
+
+MODULE_INFO(depends, "hid,ff-memless,usbcore");
+
+MODULE_ALIAS("hid:b0003g*v0000044Fp0000B65D");
+MODULE_ALIAS("hid:b0003g*v0000044Fp0000B66E");
diff --git a/hid-tmff2.mod.o b/hid-tmff2.mod.o
new file mode 100644
index 0000000..b7ce157
--- /dev/null
+++ b/hid-tmff2.mod.o
Binary files differ
diff --git a/hid-tmff2.o b/hid-tmff2.o
new file mode 100644
index 0000000..fc70c4b
--- /dev/null
+++ b/hid-tmff2.o
Binary files differ
diff --git a/modules.order b/modules.order
new file mode 100644
index 0000000..a82dd0e
--- /dev/null
+++ b/modules.order
@@ -0,0 +1 @@
+/home/kimi/Documents/Projects/hid-tmff2/hid-tmff2.ko