Lines Matching defs:btreg
1377 tga_ramdac_wr(void *v, u_int btreg, uint8_t val)
1381 if (btreg > BT485_REG_MAX)
1382 panic("tga_ramdac_wr: reg %d out of range", btreg);
1384 TGAWREG(dc, TGA_REG_EPDR, (btreg << 9) | (0 << 8 ) | val); /* XXX */
1389 tga2_ramdac_wr(void *v, u_int btreg, uint8_t val)
1394 if (btreg > BT485_REG_MAX)
1395 panic("tga_ramdac_wr: reg %d out of range", btreg);
1398 TGA2_MEM_RAMDAC + (0xe << 12) + (btreg << 8), 4, &ramdac);
1404 tga_bt463_rd(void *v, u_int btreg)
1416 TGAWREG(dc, TGA_REG_EPSR, (btreg << 2) | 2 | 1);
1418 TGAWREG(dc, TGA_REG_EPSR, (btreg << 2) | 2 | 0);
1424 TGAWREG(dc, TGA_REG_EPSR, (btreg << 2) | 2 | 1);
1430 tga_bt463_wr(void *v, u_int btreg, uint8_t val)
1445 TGAWREG(dc, TGA_REG_EPDR, (btreg << 10) | 0x100 | val);
1447 TGAWREG(dc, TGA_REG_EPDR, (btreg << 10) | 0x000 | val);
1449 TGAWREG(dc, TGA_REG_EPDR, (btreg << 10) | 0x100 | val);
1453 tga_ramdac_rd(void *v, u_int btreg)
1458 if (btreg > BT485_REG_MAX)
1459 panic("tga_ramdac_rd: reg %d out of range", btreg);
1461 TGAWREG(dc, TGA_REG_EPSR, (btreg << 1) | 0x1); /* XXX */
1469 tga2_ramdac_rd(void *v, u_int btreg)
1475 if (btreg > BT485_REG_MAX)
1476 panic("tga_ramdac_rd: reg %d out of range", btreg);
1479 TGA2_MEM_RAMDAC + (0xe << 12) + (btreg << 8), 4, &ramdac);