hw_lachesis5k6.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Lowlevel hardware access for the
  3. * Razer Lachesis 5600 DPI mouse
  4. *
  5. * Important notice:
  6. * This hardware driver is based on reverse engineering, only.
  7. *
  8. * Copyright (C) 2012 Michael Buesch <m@bues.ch>
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License
  12. * as published by the Free Software Foundation; either version 2
  13. * of the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. */
  20. #include "hw_lachesis5k6.h"
  21. #include "synapse.h"
  22. #include "razer_private.h"
  23. int razer_lachesis5k6_init(struct razer_mouse *m,
  24. struct libusb_device *usbdev)
  25. {
  26. int err;
  27. err = razer_synapse_init(m, NULL,
  28. RAZER_SYNFEAT_RGBLEDS);
  29. if (err)
  30. return err;
  31. razer_generic_usb_gen_idstr(usbdev, m->usb_ctx->h, "Lachesis 5600 DPI", 1,
  32. razer_synapse_get_serial(m), m->idstr);
  33. return 0;
  34. }
  35. void razer_lachesis5k6_release(struct razer_mouse *m)
  36. {
  37. razer_synapse_exit(m);
  38. }