BIT0
uni_wr_mask(sc, VIASR, SR1A, 0x00, BIT0);
uni_wr_mask(sc, VIACR, CR47, 0, BIT0);
uni_wr_mask(sc, VIACR, CR48, 0x00, BIT0 + BIT1);
regmask = regmask | (BIT0 << j);
getbit = (timing & (BIT0 << bitnum));
uni_wr_mask(sc, VIACR, CR33, 0x06, BIT0+BIT1+BIT2);