/src/sys/dev/bi/ |
bi.c | 80 struct bi_attach_args *ba = aux; local in function:bi_print 84 nr = bus_space_read_2(ba->ba_iot, ba->ba_ioh, 0); 96 aprint_normal(" node %d", ba->ba_nodenr); 98 aprint_normal(" vec %o", ba->ba_ivec & 511); 100 if (bus_space_read_4(ba->ba_iot, ba->ba_ioh, BIREG_SADR) && 101 bus_space_read_4(ba->ba_iot, ba->ba_ioh, BIREG_EADR)) 103 bus_space_read_4(ba->ba_iot, ba->ba_ioh, BIREG_SADR) 115 struct bi_attach_args ba; local in function:bi_attach [all...] |
/src/sys/arch/xen/include/ |
bus_private.h | 34 #define _BUS_BUS_TO_PHYS(ba) ((paddr_t)xpmap_mtop(ba)) 36 #define _BUS_BUS_TO_VM_PAGE(ba) (PHYS_TO_VM_PAGE(xpmap_mtop(ba))) 37 #define _BUS_PMAP_ENTER(pmap, va, ba, prot, flags) \ 38 pmap_enter(pmap, va, xpmap_mtop(ba), prot, flags) 45 bus_addr_t ba; local in function:_bus_virt_to_bus 47 if (!pmap_extract_ma(pm, va, &ba)) { 51 return ba;
|
/src/sys/arch/amiga/dev/ |
grf_etreg.h | 83 #define vgar(ba, reg) (*(((volatile unsigned char *)ba)+reg)) 86 #define vgaw(ba, reg, val) \ 87 *(((volatile unsigned char *)ba)+reg) = ((unsigned char)val) 265 #define WGfx(ba, idx, val) \ 266 do { vgaw(ba, GCT_ADDRESS, idx); vgaw(ba, GCT_ADDRESS_W , val); } while (0) 268 #define WSeq(ba, idx, val) \ 269 do { vgaw(ba, SEQ_ADDRESS, idx); vgaw(ba, SEQ_ADDRESS_W , val); } while (0 [all...] |
grf_et.c | 105 void et_writesprpos(volatile char *ba, short, short); 452 volatile unsigned char *ba = gp->g_regkva; local in function:et_boardinit 457 RegWakeup(ba); 458 RegOnpass(ba); 462 vgaw(ba, MERLIN_SWITCH_REG, 0); 464 vgaw(ba, MERLIN_SWITCH_REG, 8); 466 vgaw(ba, MERLIN_SWITCH_REG, 0); 468 vgaw(ba, MERLIN_VDAC_DATA, 1); 470 vgaw(ba, MERLIN_VDAC_INDEX, 0x00); 471 vgaw(ba, MERLIN_VDAC_SPRITE, 0xff) 681 char *ba = gp->g_regkva; local in function:et_off 820 volatile char *ba = gp->g_regkva; local in function:et_setmousepos 913 volatile unsigned char *ba; local in function:et_getcmap 964 volatile unsigned char *ba; local in function:et_putcmap 1022 volatile unsigned char *ba; local in function:et_toggle 1134 volatile unsigned char *ba; local in function:et_load_mon 1485 volatile unsigned char *ba = gp->g_regkva; local in function:et_inittextmode 1559 volatile unsigned char *ba = gp->g_regkva; \/* register base *\/ local in function:et_getControllerType 1599 volatile unsigned char *ba = gp->g_regkva; local in function:et_getDACType 1690 volatile void *ba; local in function:et_wscursor 1726 volatile unsigned char *ba, *cp; local in function:et_wsputchar 1744 volatile unsigned char *ba, *dst, *src; local in function:et_wscopycols 1788 volatile unsigned char *ba, *cp; local in function:et_wserasecols 1813 volatile unsigned char *ba, *dst, *src; local in function:et_wscopyrows 1856 volatile unsigned char *ba, *cp; local in function:et_wseraserows [all...] |
grf_rt.c | 296 volatile void *ba; local in function:rt_load_mon 306 ba = gp->g_regkva; 359 WSeq (ba, SEQ_ID_EXTENDED_ENABLE, 0x05); 363 vgaw (ba, GREG_MISC_OUTPUT_W, 0xe3 | ((clksel & 3) * 0x04)); 364 vgaw (ba, GREG_FEATURE_CONTROL_W, 0x00); 369 WSeq (ba, SEQ_ID_RESET, 0x03); 371 WSeq (ba, SEQ_ID_CLOCKING_MODE, 0x01 | ((md->FLG & MDF_CLKDIV2)/ MDF_CLKDIV2 * 8)); 372 WSeq (ba, SEQ_ID_MAP_MASK, 0x0f); 373 WSeq (ba, SEQ_ID_CHAR_MAP_SELECT, 0x00); 375 WSeq (ba, SEQ_ID_MEMORY_MODE, 0x06) 1064 volatile unsigned char *ba; local in function:rt_getcmap 1100 volatile unsigned char *ba; local in function:rt_putcmap 1137 volatile unsigned char *ba; local in function:rt_getspritepos 1150 volatile unsigned char *ba; local in function:rt_setspritepos 1170 volatile void *ba, *fb; local in function:rt_getspriteinfo 1222 volatile void *ba, *fb; local in function:rt_setspriteinfo [all...] |
ite_rt.c | 119 volatile void *ba = ip->grf->g_regkva; local in function:retina_cursor 124 WCrt (ba, CRT_ID_CURSOR_START, RCrt (ba, CRT_ID_CURSOR_START) | 0x20); 131 WCrt (ba, CRT_ID_CURSOR_START, RCrt (ba, CRT_ID_CURSOR_START) & ~0x20); 134 WCrt (ba, CRT_ID_CURSOR_LOC_HIGH, (u_char) (pos >> 8)); 135 WCrt (ba, CRT_ID_CURSOR_LOC_LOW, (u_char) pos); 148 volatile void *ba = ip->grf->g_regkva; local in function:screen_up 174 WSeq (ba, SEQ_ID_EXTENDED_MEM_ENA, 175 (RSeq(ba, SEQ_ID_EXTENDED_MEM_ENA) & 0x1f) | 0 ) 276 volatile void *ba = ip->grf->g_regkva; local in function:screen_down [all...] |
grf_cvreg.h | 62 #define vgar(ba, reg) \ 63 (*(((volatile char *)ba)+reg)) 66 #define vgaw(ba, reg, val) \ 67 *(((volatile char *)ba)+reg) = ((val) & 0xff); \ 71 #define vgar32(ba, reg) \ 72 ( *((volatile unsigned long *) (((volatile char *)ba)+reg)) ) 75 #define vgaw32(ba, reg, val) \ 76 *((unsigned long *) (((volatile char *)ba)+reg)) = val; \ 80 #define vgar16(ba, reg) \ 81 ( *((volatile unsigned short *) (((volatile char *)ba)+reg)) [all...] |
grf_cl.c | 532 volatile unsigned char *ba = gp->g_regkva; local in function:cl_boardinit 536 WCrt(ba, 0x51, 0x00); /* disable capture (FlickerFixer) */ 538 WGfx(ba, 0x2f, 0x00); /* get Blitter into 542x */ 539 WGfx(ba, GCT_ID_RESERVED, 0x00); /* compatibility mode */ 540 WGfx(ba, GCT_ID_BLT_STAT_START, 0x00); /* or at least, try so... */ 545 RegWakeup(ba); 546 RegOnpass(ba); 548 vgaw(ba, 0x46e8, 0x16); 549 vgaw(ba, 0x102, 1); 550 vgaw(ba, 0x46e8, 0x0e) 721 char *ba = gp->g_regkva; local in function:cl_off 907 volatile char *ba = gp->g_regkva; local in function:cl_setmousepos 956 volatile unsigned char *ba = gp->g_regkva, *fb = gp->g_fbkva; local in function:cl_setspriteinfo 1140 volatile unsigned char *ba; local in function:cl_getcmap 1206 volatile unsigned char *ba; local in function:cl_putcmap 1257 volatile void *ba; local in function:cl_toggle 1415 volatile void *ba, *fb; local in function:cl_load_mon 1723 volatile unsigned char *ba = gp->g_regkva; local in function:cl_inittextmode 1864 volatile void *ba; local in function:cl_wscursor 1899 volatile unsigned char *ba, *cp; local in function:cl_wsputchar 1917 volatile unsigned char *ba, *dst, *src; local in function:cl_wscopycols 1961 volatile unsigned char *ba, *cp; local in function:cl_wserasecols 1986 volatile unsigned char *ba, *dst, *src; local in function:cl_wscopyrows 2029 volatile unsigned char *ba, *cp; local in function:cl_wseraserows [all...] |
grf_rh.c | 154 volatile void *ba = gp->g_regkva; local in function:RZ3DisableHWC 156 WSeq(ba, SEQ_ID_CURSOR_Y_INDEX, 0x00); 163 volatile unsigned char *ba = gp->g_regkva; local in function:RZ3SetupHWC 164 unsigned long *c = (unsigned long *)__UNVOLATILE(ba); 181 WSeq(ba, SEQ_ID_CURSOR_COLOR1, col1); 182 WSeq(ba, SEQ_ID_CURSOR_COLOR0, col2); 185 WSeq(ba, SEQ_ID_CURSOR_CONTROL, 0x85); 187 WSeq(ba, SEQ_ID_CURSOR_CONTROL, 0x03); 192 WSeq(ba, SEQ_ID_CURSOR_CONTROL, 0xa5); 194 WSeq(ba, SEQ_ID_CURSOR_CONTROL, 0x23) 232 volatile unsigned char *ba = gp->g_regkva; local in function:RZ3AlphaCopy 302 volatile unsigned char *ba = gp->g_regkva; local in function:RZ3BitBlit 378 volatile unsigned char *ba = gp->g_regkva; local in function:RZ3BitBlit16 457 volatile unsigned char *ba = gp->g_regkva; local in function:RZ3BitBlit24 538 volatile unsigned char *ba = gp->g_regkva; local in function:RZ3SetCursorPos 549 volatile unsigned char *ba = gp->g_regkva; local in function:RZ3LoadPalette 575 volatile unsigned char *ba = gp->g_regkva; local in function:RZ3SetPalette 588 volatile unsigned char *ba = gp->g_regkva; local in function:RZ3SetPanning 623 volatile unsigned char *ba = gp->g_regkva; local in function:RZ3SetHWCloc 731 volatile void *ba; local in function:rh_load_mon 1809 volatile unsigned char *ba; local in function:rh_getcmap 1844 volatile unsigned char *ba; local in function:rh_putcmap 1883 volatile unsigned char *ba = gp->g_regkva; local in function:rh_getspritepos 1913 volatile unsigned char *ba; local in function:rh_getspriteinfo 2005 volatile unsigned char *ba; local in function:rh_setspriteinfo [all...] |
grf_rtreg.h | 313 #define vgar(ba, reg) (*(((volatile unsigned char *)ba)+reg)) 316 #define vgaw(ba, reg, val) \ 317 *(((volatile unsigned char *)ba)+reg) = val 490 #define WGfx(ba, idx, val) \ 491 do { vgaw(ba, GCT_ADDRESS, idx); vgaw(ba, GCT_ADDRESS_W , val); } while (0) 493 #define WSeq(ba, idx, val) \ 494 do { vgaw(ba, SEQ_ADDRESS, idx); vgaw(ba, SEQ_ADDRESS_W , val); } while (0 [all...] |
grf_cv.c | 355 volatile void *ba = gp->g_regkva; local in function:cvintr 362 test = vgar(ba, GREG_INPUT_STATUS0_R); 366 cridx = vgar (ba, CRT_ADDRESS); 369 test = RCrt(ba, CRT_ID_END_VER_RETR); 372 WCrt(ba, CRT_ID_END_VER_RETR, test); 374 vgaw(ba, CRT_ADDRESS, CRT_ID_END_VER_RETR); 375 __asm volatile("bclr #4,%0@(0x3d5);nop" : : "a" (ba)); 391 WCrt(ba, CRT_ID_END_VER_RETR, test); 394 __asm volatile("bset #4,%0@(0x3d5);nop" : : "a" (ba)); 399 vgaw(ba, CRT_ADDRESS, cridx) 635 volatile void *ba; local in function:cv_boardinit 954 volatile void *ba; local in function:cv_blank 965 volatile void *ba; local in function:cv_isblank 1134 volatile void *ba; local in function:cv_getcmap 1172 volatile void *ba; local in function:cv_putcmap 1209 volatile void *ba; local in function:cv_toggle 1297 volatile void *ba; local in function:cv_load_mon 1818 volatile void *ba = gp->g_regkva; local in function:cv_getspritepos 1834 volatile void *ba = gp->g_regkva; local in function:cv_setspritepos 1884 volatile void *ba; local in function:cv_getspriteinfo 1933 volatile void *ba = gp->g_regkva; local in function:cv_setup_hwc 2012 volatile void *ba; local in function:cv_setspriteinfo 2281 volatile void *ba; local in function:cv_wscursor [all...] |
ite_ul.c | 83 #define gsp_out(ba,cmd,len) gsp_dump(cmd,len); gsp_write(ba,cmd,len) 85 #define gsp_out(ba,cmd,len) gsp_write(ba,cmd,len) 142 volatile struct gspregs *ba; local in function:ulowell_init 149 ba = (volatile struct gspregs *) ip->grf->g_regkva; 161 ba->ctrl = LBL|INCW; 162 ba->hstadrh = 0xFFA2; 163 ba->hstadrl = 0x0200; 165 ba->data = 0x0000 228 volatile struct gspregs *ba; local in function:ulowell_cursor 302 volatile struct gspregs *ba; local in function:screen_up 336 volatile struct gspregs *ba; local in function:screen_down 377 volatile struct gspregs *ba; local in function:ulowell_putc 395 volatile struct gspregs * ba; local in function:ulowell_clear 417 volatile struct gspregs *ba; local in function:ulowell_scroll [all...] |
grf_ul.c | 168 volatile struct gspregs *ba; local in function:ulisr 174 ba = (volatile struct gspregs *)gp->g_regkva; 176 if (ba == NULL) 179 thebits = ba->ctrl; 183 ba->ctrl = thebits & ~INTOUT; 206 volatile struct gspregs *ba; local in function:ul_load_code 214 ba = (volatile struct gspregs *)gp->g_regkva; 217 gi->gd_regaddr = ztwopa((volatile void *)ba); 225 ba->ctrl = (ba->ctrl & ~INCR) | (LBL | INCW) 363 volatile struct gspregs *ba; local in function:ul_load_mon 628 volatile struct gspregs *ba; local in function:ul_setfb 788 volatile struct gspregs *ba; local in function:ul_putcmap [all...] |
grf_cv3d.c | 585 volatile void *ba; local in function:cv3d_boardinit 592 ba = gp->g_regkva; 607 vgaw(ba, SREG_VIDEO_SUBS_ENABLE, 0x01); 609 vgaw(ba, GREG_MISC_OUTPUT_W, 0x03); 611 WCrt(ba, CRT_ID_REGISTER_LOCK_1, 0x48); /* unlock S3 VGA regs */ 612 WCrt(ba, CRT_ID_REGISTER_LOCK_2, 0xA5); /* unlock syscontrol */ 614 WCrt(ba, CRT_ID_EXT_MISC_CNTL_1, 0x02); 615 WCrt(ba, CRT_ID_EXT_MISC_CNTL_1, 0x00); 617 WSeq(ba, SEQ_ID_UNLOCK_EXT, 0x06); /* Unlock extensions */ 626 vgaw(ba, GREG_MISC_OUTPUT_W, 0xC3) 875 volatile void *ba; local in function:cv3d_blank 886 volatile void *ba; local in function:cv3d_isblank 1211 volatile void *ba; local in function:cv3d_load_mon 1681 volatile void *ba = gp->g_regkva; local in function:cv3d_getspritepos 1697 volatile void *ba = gp->g_regkva; local in function:cv3d_setspritepos 1747 volatile void *ba, fb; local in function:cv3d_getspriteinfo 1795 volatile void *ba = gp->g_regkva; local in function:cv3d_setup_hwc 1874 volatile void *ba, fb; local in function:cv3d_setspriteinfo 2134 volatile void *ba; local in function:cv3d_wscursor [all...] |
grf_clreg.h | 71 #define vgar(ba, reg) (*(((volatile unsigned char *)ba)+reg)) 74 #define vgaw(ba, reg, val) \ 75 *(((volatile unsigned char *)ba)+reg) = ((val) & 0xff) 273 #define WGfx(ba, idx, val) \ 275 vgaw(ba, GCT_ADDRESS, idx); \ 276 vgaw(ba, GCT_ADDRESS_W , val); \ 279 #define WSeq(ba, idx, val) \ 281 vgaw(ba, SEQ_ADDRESS, idx); \ 282 vgaw(ba, SEQ_ADDRESS_W , val); [all...] |
grf_rhreg.h | 423 #define vgar(ba, reg) (*(((volatile unsigned char *)ba)+reg)) 426 #define vgaw(ba, reg, val) \ 427 *(((volatile unsigned char *)ba)+reg) = val 634 #define WGfx(ba, idx, val) \ 635 do { vgaw(ba, GCT_ADDRESS, idx); vgaw(ba, GCT_ADDRESS_W , val); } while (0) 637 #define WSeq(ba, idx, val) \ 638 do { vgaw(ba, SEQ_ADDRESS, idx); vgaw(ba, SEQ_ADDRESS_W , val); } while (0 [all...] |
grf_cv3dreg.h | 59 #define vgar(ba, reg) \ 60 *(((volatile char *)ba)+(reg ^ 3)) 63 #define vgaw(ba, reg, val) \ 64 *(((volatile char *)ba)+(reg ^ 3)) = ((val) & 0xff) 69 #define vgario(ba, reg) \ 70 *(((volatile char *)ba) + ( ByteAccessIO(reg) )) 72 #define vgawio(ba, reg, val) \ 89 #define vgar32(ba, reg) \ 90 *((volatile unsigned long *) (((volatile char *)ba)+reg)) 93 #define vgaw32(ba, reg, val) [all...] |
/src/sys/arch/atari/pci/ |
pci_tseng.c | 79 tseng_init(pci_chipset_tag_t pc, pcitag_t tag, int id, volatile uint8_t *ba, 107 et6000_init(ba, fb, i); 118 vgaw(ba, GREG_MISC_OUTPUT_W, 0x63); 119 vgaw(ba, GREG_VIDEOSYSENABLE, 0x01); 120 WCrt(ba, 0x17 , 0x00); /* color */ 121 WCrt(ba, 0x11 , 0x00); /* color */ 122 vgaw(ba, VDAC_MASK , 0xff); 123 WSeq(ba, SEQ_ID_RESET , 0x00); 124 vgaw(ba, GREG_HERCULESCOMPAT, 0x03); 125 vgaw(ba, GREG_DISPMODECONTROL, 0xa0) [all...] |
pci_vga.c | 288 loadfont(volatile uint8_t *ba, uint8_t *fb) 289 /* ba: Register area KVA */ 302 WAttr(ba, 0x20 | ACT_ID_ATTR_MODE_CNTL, 0x0a); 303 WSeq(ba, SEQ_ID_MAP_MASK, 0x04); 304 WSeq(ba, SEQ_ID_MEMORY_MODE, 0x06); 305 WGfx(ba, GCT_ID_READ_MAP_SELECT, 0x02); 306 WGfx(ba, GCT_ID_GRAPHICS_MODE, 0x00); 307 WGfx(ba, GCT_ID_MISC, 0x0c); 327 WSeq(ba, SEQ_ID_MAP_MASK, 0x03); 328 WSeq(ba, SEQ_ID_MEMORY_MODE, 0x03) [all...] |
/src/sys/arch/atari/dev/ |
grf_etreg.h | 49 #define vgar(ba, reg) (*(((volatile u_char *)ba)+reg)) 50 #define vgaw(ba, reg, val) *(((volatile u_char *)ba)+reg) = ((u_char)val) 186 #define WGfx(ba, idx, val) \ 188 vgaw(ba, GCT_ADDRESS, idx); \ 189 vgaw(ba, GCT_ADDRESS_W , val); \ 192 #define WSeq(ba, idx, val) \ 194 vgaw(ba, SEQ_ADDRESS, idx); \ 195 vgaw(ba, SEQ_ADDRESS_W , val); [all...] |
grfabs_et.c | 244 volatile u_char *ba; local in function:et_save_view 249 ba = et_priv.regkva; 251 if (RGfx(ba, GCT_ID_MISC) & 1) { 264 font_height = RCrt(ba, CRT_ID_MAX_ROW_ADDRESS) & 0x1f; 436 volatile u_char *ba; local in function:et_probe_card 443 ba = (volatile void *)pci_io_addr; 444 vgaw(ba, GREG_HERCULESCOMPAT, 0x03); 445 vgaw(ba, GREG_DISPMODECONTROL, 0xa0); 448 WCrt(ba, CRT_ID_RASCAS_CONFIG, 0xa0); 449 WCrt(ba, CRT_ID_VIDEO_CONFIG2, 0x89) 480 volatile u_char *ba; local in function:et_loadmode 641 volatile u_char *ba; local in function:et_hwsave 678 volatile u_char *ba; local in function:et_hwrest [all...] |
/src/sys/arch/x86/include/ |
bus_private.h | 114 #define _BUS_BUS_TO_PHYS(ba) ((paddr_t)(ba)) 122 #define _BUS_BUS_TO_VM_PAGE(ba) PHYS_TO_VM_PAGE(ba) 126 #define _BUS_PMAP_ENTER(pmap, va, ba, prot, flags) \ 127 pmap_enter(pmap, va, ba, prot, flags)
|
/src/sys/dev/bluetooth/ |
btms.c | 189 struct bthidev_attach_args *ba = aux; local in function:btms_match 191 if (hid_is_collection(ba->ba_desc, ba->ba_dlen, ba->ba_id, 202 struct bthidev_attach_args *ba = aux; local in function:btms_attach 208 ba->ba_input = btms_input; 210 quirks = btms_lookup_quirk_flags(ba->ba_vendor, ba->ba_product); 213 hl = hid_locate(ba->ba_desc, 214 ba->ba_dlen [all...] |
/src/sys/arch/amiga/pci/ |
cv3dpbvar.h | 42 volatile char *ba; member in struct:cv3dpb_softc
|
/src/sys/arch/atari/atari/ |
mainbus.c | 335 volatile uint8_t *ba; local in function:mb_bus_space_read_multi_1 337 ba = (volatile uint8_t *)calc_addr(h, o, t->stride, t->wo_1); 339 *a = *ba; 346 volatile uint16_t *ba; local in function:mb_bus_space_read_multi_2 348 ba = (volatile uint16_t *)calc_addr(h, o, t->stride, t->wo_2); 350 *a = *ba; 357 volatile uint32_t *ba; local in function:mb_bus_space_read_multi_4 359 ba = (volatile uint32_t *)calc_addr(h, o, t->stride, t->wo_4); 361 *a = *ba; 368 volatile uint64_t *ba; local in function:mb_bus_space_read_multi_8 379 volatile uint8_t *ba; local in function:mb_bus_space_write_multi_1 390 volatile uint16_t *ba; local in function:mb_bus_space_write_multi_2 401 volatile uint32_t *ba; local in function:mb_bus_space_write_multi_4 412 volatile uint64_t *ba; local in function:mb_bus_space_write_multi_8 521 volatile uint8_t *ba; local in function:mb_bus_space_set_multi_1 532 volatile uint16_t *ba; local in function:mb_bus_space_set_multi_2 543 volatile uint32_t *ba; local in function:mb_bus_space_set_multi_4 554 volatile uint64_t *ba; local in function:mb_bus_space_set_multi_8 [all...] |