aboutsummaryrefslogtreecommitdiff
path: root/libarmep/libarmep.h
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2013-05-06 10:06:14 +0800
committerAndy Green <andy.green@linaro.org>2013-05-06 10:06:14 +0800
commit1391180075c406c75b28602b8b0f0c2254bd89ae (patch)
tree3c979d31bc445532310bb19bad6ff06ca917b026 /libarmep/libarmep.h
parent0b27ba9cb01680aec0b4fbc4e297d7597e54e829 (diff)
convert to use by id
This patches changes the paths in the config to use /dev/serial/by-id, and introduces a new way to program AEP USB serial number so it can differentiate between multiple AEP reliably... see ./set-aep-serial.sh Signed-off-by: Andy Green <andy.green@linaro.org>
Diffstat (limited to 'libarmep/libarmep.h')
-rw-r--r--libarmep/libarmep.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/libarmep/libarmep.h b/libarmep/libarmep.h
index dafbe04..10ca101 100644
--- a/libarmep/libarmep.h
+++ b/libarmep/libarmep.h
@@ -153,8 +153,8 @@ struct interp_tables {
struct aep_channel {
struct aep *aep;
- char channel_name[64];
- char channel_name_pretty[64];
+ char channel_name[256];
+ char channel_name_pretty[256];
char supply[64]; /* parent channel name */
char colour[16]; /* #xxxxxx HTML-style colour */
char class[16]; /* optional class of power, eg, Soc */
@@ -209,7 +209,7 @@ struct aep {
struct aep_context *aep_context;
int fd;
char name[64];
- char dev_filepath[64];
+ char dev_filepath[128];
int index;
int head;
int tail;
@@ -235,8 +235,10 @@ struct aep_context {
struct aep_channel vch[MAX_VIRTUAL_CHANNELS];
int count_virtual_channels;
int auto_zero;
+ unsigned int last_scan_sec;
char config_filepath[256];
char configuration_name[64];
+ char device_paths[MAX_PROBES][256];
int highest;
int decimate;
int no_correction;