![]()  | 
  
    ckb-next
    beta-v0.2.8 at branch testing
    
   ckb-next driver for corsair devices 
   | 
 
 Include dependency graph for firmware.c:Go to the source code of this file.
Macros | |
| #define | FW_OK 0 | 
| #define | FW_NOFILE -1 | 
| #define | FW_WRONGDEV -2 | 
| #define | FW_USBFAIL -3 | 
| #define | FW_MAXSIZE (255 * 256) | 
Functions | |
| int | getfwversion (usbdevice *kb) | 
| int | fwupdate (usbdevice *kb, const char *path, int nnumber) | 
| int | cmd_fwupdate (usbdevice *kb, usbmode *dummy1, int nnumber, int dummy2, const char *path) | 
| #define FW_MAXSIZE (255 * 256) | 
Definition at line 51 of file firmware.c.
Referenced by fwupdate().
| #define FW_NOFILE -1 | 
Definition at line 7 of file firmware.c.
Referenced by cmd_fwupdate(), and fwupdate().
| #define FW_OK 0 | 
Definition at line 6 of file firmware.c.
Referenced by cmd_fwupdate(), and fwupdate().
| #define FW_USBFAIL -3 | 
Definition at line 9 of file firmware.c.
Referenced by cmd_fwupdate(), and fwupdate().
| #define FW_WRONGDEV -2 | 
Definition at line 8 of file firmware.c.
Referenced by cmd_fwupdate(), and fwupdate().
Definition at line 154 of file firmware.c.
References FEAT_FWUPDATE, FW_NOFILE, FW_OK, FW_USBFAIL, FW_WRONGDEV, fwupdate(), HAS_FEATURES, nprintf(), and usb_tryreset().
 Here is the call graph for this function:| int fwupdate | ( | usbdevice * | kb, | 
| const char * | path, | ||
| int | nnumber | ||
| ) | 
Definition at line 55 of file firmware.c.
References ckb_err, ckb_info, FW_MAXSIZE, FW_NOFILE, FW_OK, FW_USBFAIL, FW_WRONGDEV, usbdevice::fwversion, mkfwnode(), MSG_SIZE, nprintf(), usbdevice::product, usbdevice::usbdelay, usbsend, and usbdevice::vendor.
Referenced by cmd_fwupdate().
 Here is the call graph for this function:
 Here is the caller graph for this function:| int getfwversion | ( | usbdevice * | kb | ) | 
Definition at line 11 of file firmware.c.
References ckb_err, ckb_warn, FEAT_POLLRATE, usbdevice::features, usbdevice::fwversion, MSG_SIZE, usbdevice::pollrate, usbdevice::product, usbrecv, and usbdevice::vendor.
Referenced by _start_dev().
 Here is the caller graph for this function: