| 987 | } |
| 988 | |
| 989 | SR_PRIV int dsl_rd_probe(const struct sr_dev_inst *sdi, unsigned char *ctx, uint16_t addr, uint8_t len) |
| 990 | { |
| 991 | struct sr_usb_dev_inst *usb; |
| 992 | struct libusb_device_handle *hdl; |
| 993 | struct ctl_rd_cmd rd_cmd; |
| 994 | int ret; |
| 995 | |
| 996 | usb = sdi->conn; |
| 997 | hdl = usb->devhdl; |
| 998 | |
| 999 | rd_cmd.header.dest = DSL_CTL_I2C_PROBE; |
| 1000 | rd_cmd.header.size = len; |
| 1001 | rd_cmd.header.offset = addr; |
| 1002 | rd_cmd.data = ctx; |
| 1003 | if ((ret = command_ctl_rd(hdl, rd_cmd)) != SR_OK) { |
| 1004 | sr_err("Sent DSL_CTL_NVM read command failed."); |
| 1005 | return SR_ERR; |
| 1006 | } |
| 1007 | |
| 1008 | return SR_OK; |
| 1009 | } |
| 1010 | |
| 1011 | SR_PRIV int dsl_fpga_arm(const struct sr_dev_inst *sdi) |
| 1012 | { |
nothing calls this directly
no test coverage detected