# HG changeset patch # User Florian Pose # Date 1349769170 -7200 # Node ID 4151f6f4c3e196dcc6b68e99523d57218c8851a6 # Parent fa52128477f6f5ed9f80b54fcf7e79e09901c7a5 Show complete access flag in config view. diff -r fa52128477f6 -r 4151f6f4c3e1 master/ioctl.c --- a/master/ioctl.c Thu Oct 04 10:07:52 2012 +0200 +++ b/master/ioctl.c Tue Oct 09 09:52:50 2012 +0200 @@ -1350,6 +1350,7 @@ ioctl->size = req->data_size; memcpy(ioctl->data, req->data, min((u32) ioctl->size, (u32) EC_MAX_SDO_DATA_SIZE)); + ioctl->complete_access = req->complete_access; up(&master->master_sem); diff -r fa52128477f6 -r 4151f6f4c3e1 master/ioctl.h --- a/master/ioctl.h Thu Oct 04 10:07:52 2012 +0200 +++ b/master/ioctl.h Tue Oct 09 09:52:50 2012 +0200 @@ -56,7 +56,7 @@ * * Increment this when changing the ioctl interface! */ -#define EC_IOCTL_VERSION_MAGIC 19 +#define EC_IOCTL_VERSION_MAGIC 20 // Command-line tool #define EC_IOCTL_MODULE EC_IOR(0x00, ec_ioctl_module_t) @@ -528,6 +528,7 @@ uint8_t subindex; uint32_t size; uint8_t data[EC_MAX_SDO_DATA_SIZE]; + uint8_t complete_access; } ec_ioctl_config_sdo_t; /*****************************************************************************/ diff -r fa52128477f6 -r 4151f6f4c3e1 tool/CommandConfig.cpp --- a/tool/CommandConfig.cpp Thu Oct 04 10:07:52 2012 +0200 +++ b/tool/CommandConfig.cpp Tue Oct 09 09:52:50 2012 +0200 @@ -236,9 +236,14 @@ cout << indent << " 0x" << hex << setfill('0') - << setw(4) << sdo.index << ":" - << setw(2) << (unsigned int) sdo.subindex - << ", " << dec << sdo.size << " byte" << endl; + << setw(4) << sdo.index; + if (sdo.complete_access) { + cout << " C"; + } + else { + cout << ":" << setw(2) << (unsigned int) sdo.subindex; + } + cout << ", " << dec << sdo.size << " byte" << endl; cout << indent << " " << hex; for (i = 0; i < min((uint32_t) sdo.size,