Commit 7d2f1d7d authored by Ville Syrjälä's avatar Ville Syrjälä

tools/intel_reg: Print the potential port names in the help text

v2: Repaint with Jani's favorite color
Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <>
parent fb813154
......@@ -630,6 +630,11 @@ static int intel_reg_help(struct config *config, int argc, char *argv[])
printf("REGISTER is defined as:\n");
printf("PORTNAME is one of:\n");
printf("OPTIONS common to most COMMANDS:\n");
printf(" --spec=PATH Read register spec from directory or file\n");
......@@ -343,3 +343,11 @@ void intel_reg_spec_free(struct reg *regs, size_t n)
void intel_reg_spec_print_ports(void)
int i;
for (i = 0; i < ARRAY_SIZE(port_descs); i++)
printf("%s%s", i == 0 ? "" : ", ", port_descs[i].name);
......@@ -73,5 +73,6 @@ ssize_t intel_reg_spec_file(struct reg **regs, const char *filename);
void intel_reg_spec_free(struct reg *regs, size_t n);
int intel_reg_spec_decode(char *buf, size_t bufsize, const struct reg *reg,
uint32_t val, uint32_t devid);
void intel_reg_spec_print_ports(void);
#endif /* __INTEL_REG_SPEC_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment