regread
printf("%s = %08x\n", argv[0], regread(s, &atd, reg));
static uint32_t regread(int s, struct ath_diag *atd, uint32_t r);