aboutsummaryrefslogtreecommitdiff
path: root/src/include/razeregpu_driver.h
diff options
context:
space:
mode:
authorKen Chen <[email protected]>2021-05-28 17:54:41 +1000
committerKen Chen <[email protected]>2021-05-28 17:54:41 +1000
commit2ca85a2bcdbf5e4b3938b95754d06b96de382bd9 (patch)
tree6864859bf5e26cf5e700c386e40899d1d48ee740 /src/include/razeregpu_driver.h
parentefcf6e9bf010502f831dad0be5e01651c928281b (diff)
downloadlibrazermacos-2ca85a2bcdbf5e4b3938b95754d06b96de382bd9.tar.xz
librazermacos-2ca85a2bcdbf5e4b3938b95754d06b96de382bd9.zip
basic C cli frontend
Diffstat (limited to 'src/include/razeregpu_driver.h')
-rw-r--r--src/include/razeregpu_driver.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/razeregpu_driver.h b/src/include/razeregpu_driver.h
new file mode 100644
index 0000000..1af0b93
--- /dev/null
+++ b/src/include/razeregpu_driver.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2015 Tim Theede <[email protected]>
+ * 2015 Terry Cain <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ */
+
+#include <IOKit/IOKitLib.h>
+#include <IOKit/usb/IOUSBLib.h>
+
+#ifndef __HID_RAZER_EGPU_H
+#define __HID_RAZER_EGPU_H
+
+#define USB_DEVICE_ID_RAZER_CORE_X_CHROMA 0x0f1a
+
+#define RAZER_EGPU_WAIT_MIN_US 900
+#define RAZER_EGPU_WAIT_MAX_US 1000
+
+ssize_t razer_egpu_attr_write_mode_none(IOUSBDeviceInterface **usb_dev, const char *buf, size_t count);
+ssize_t razer_egpu_attr_write_mode_wave(IOUSBDeviceInterface **usb_dev, const char *buf, size_t count);
+ssize_t razer_egpu_attr_write_mode_breath(IOUSBDeviceInterface **usb_dev, const char *buf, size_t count);
+ssize_t razer_egpu_attr_write_mode_static(IOUSBDeviceInterface **usb_dev, const char *buf, size_t count);
+ssize_t razer_egpu_attr_write_mode_static_no_store(IOUSBDeviceInterface **usb_dev, const char *buf, size_t count);
+ssize_t razer_egpu_attr_write_mode_spectrum(IOUSBDeviceInterface **usb_dev, const char *buf, size_t count);
+
+#endif \ No newline at end of file