41 dbg_print(
"Reading description from info subdevice with id %d\n", subdev->
id);
45 if(
flink_read(subdev, offset, 4, desc) != REGISTER_WITH) {
49 dbg_print(
"\t 0x%x\n", be16toh(*(uint32_t*)desc));
Data structures for flink devices and subdevices.
ssize_t flink_read(flink_subdev *subdev, uint32_t offset, uint8_t size, void *rdata)
Read from a flink subdevice.
int flink_info_get_description(flink_subdev *subdev, char *desc)
Reads the description field of an info subdevice.
#define dbg_print(fmt,...)