Lines Matching refs:bi
38 #define BOOT_INFO_IS_COMPATIBLE(bi) \ argument
39 ((bi)->compatible_version <= BOOT_INFO_VERSION)
40 #define BOOT_INFO_IS_V2_COMPATIBLE(bi) ((bi)->version >= 2) argument
41 #define BOOT_INFO_IS_V4_COMPATIBLE(bi) ((bi)->version >= 4) argument
184 boot_infos_t *bi = bootx_info; in bootx_add_display_props() local
193 tmp = bi->dispDeviceDepth; in bootx_add_display_props()
195 tmp = bi->dispDeviceRect[2] - bi->dispDeviceRect[0]; in bootx_add_display_props()
197 tmp = bi->dispDeviceRect[3] - bi->dispDeviceRect[1]; in bootx_add_display_props()
199 tmp = bi->dispDeviceRowBytes; in bootx_add_display_props()
201 tmp = (u32)bi->dispDeviceBase; in bootx_add_display_props()
203 tmp = (u32)bi->logicalDisplayBase; in bootx_add_display_props()
204 tmp += bi->dispDeviceRect[1] * bi->dispDeviceRowBytes; in bootx_add_display_props()
205 tmp += bi->dispDeviceRect[0] * ((bi->dispDeviceDepth + 7) / 8); in bootx_add_display_props()
350 boot_infos_t *bi = bootx_info; in bootx_flatten_dt() local
359 mem_start = mem_end = ALIGN(((unsigned long)bi) + start, 4); in bootx_flatten_dt()
368 base = ((unsigned long)bi) + bi->deviceTreeOffset; in bootx_flatten_dt()
426 static void __init btext_welcome(boot_infos_t *bi) in btext_welcome() argument
433 bootx_printf("\nframe buffer at : 0x%x", bi->dispDeviceBase); in btext_welcome()
434 bootx_printf(" (phys), 0x%x", bi->logicalDisplayBase); in btext_welcome()
437 bootx_printf("\nboot_info at : 0x%x", bi); in btext_welcome()
454 bi->deviceTreeOffset); in btext_welcome()
456 bi->deviceTreeSize); in btext_welcome()
464 boot_infos_t *bi = (boot_infos_t *) r4; in bootx_init() local
473 bootx_info = bi; in bootx_init()
482 if (!BOOT_INFO_IS_V2_COMPATIBLE(bi)) in bootx_init()
483 bi->logicalDisplayBase = bi->dispDeviceBase; in bootx_init()
486 if (bi->dispDeviceDepth == 16) in bootx_init()
487 bi->dispDeviceDepth = 15; in bootx_init()
491 ptr = (unsigned long)bi->logicalDisplayBase; in bootx_init()
492 ptr += bi->dispDeviceRect[1] * bi->dispDeviceRowBytes; in bootx_init()
493 ptr += bi->dispDeviceRect[0] * ((bi->dispDeviceDepth + 7) / 8); in bootx_init()
494 btext_setup_display(bi->dispDeviceRect[2] - bi->dispDeviceRect[0], in bootx_init()
495 bi->dispDeviceRect[3] - bi->dispDeviceRect[1], in bootx_init()
496 bi->dispDeviceDepth, bi->dispDeviceRowBytes, in bootx_init()
497 (unsigned long)bi->logicalDisplayBase); in bootx_init()
511 if (!BOOT_INFO_IS_COMPATIBLE(bi)) { in bootx_init()
517 if (bi->architecture != BOOT_ARCH_PCI) { in bootx_init()
525 btext_welcome(bi); in bootx_init()
531 if (bi->version < 4) { in bootx_init()
535 model = (char *) bootx_early_getprop(r4 + bi->deviceTreeOffset, in bootx_init()
548 if (bi->version < 5) { in bootx_init()
549 space = bi->deviceTreeOffset + bi->deviceTreeSize; in bootx_init()
550 if (bi->ramDisk >= space) in bootx_init()
551 space = bi->ramDisk + bi->ramDiskSize; in bootx_init()
553 space = bi->totalParamsSize; in bootx_init()
560 if (bi->version < 4) { in bootx_init()
571 ptr < (unsigned long)bi + space; ptr += PAGE_SIZE) in bootx_init()