regwrite
regwrite(s, &atd, reg, (uint32_t) strtoul(cp, NULL, 0));
static void regwrite(int s, struct ath_diag *atd, uint32_t r, uint32_t v);