• Home
  • Raw
  • Download

Lines Matching refs:bi

42 #define BOOT_INFO_IS_COMPATIBLE(bi) \  argument
43 ((bi)->compatible_version <= BOOT_INFO_VERSION)
44 #define BOOT_INFO_IS_V2_COMPATIBLE(bi) ((bi)->version >= 2) argument
45 #define BOOT_INFO_IS_V4_COMPATIBLE(bi) ((bi)->version >= 4) argument
187 boot_infos_t *bi = bootx_info; in bootx_add_display_props() local
196 tmp = bi->dispDeviceDepth; in bootx_add_display_props()
198 tmp = bi->dispDeviceRect[2] - bi->dispDeviceRect[0]; in bootx_add_display_props()
200 tmp = bi->dispDeviceRect[3] - bi->dispDeviceRect[1]; in bootx_add_display_props()
202 tmp = bi->dispDeviceRowBytes; in bootx_add_display_props()
204 tmp = (u32)bi->dispDeviceBase; in bootx_add_display_props()
206 tmp = (u32)bi->logicalDisplayBase; in bootx_add_display_props()
207 tmp += bi->dispDeviceRect[1] * bi->dispDeviceRowBytes; in bootx_add_display_props()
208 tmp += bi->dispDeviceRect[0] * ((bi->dispDeviceDepth + 7) / 8); in bootx_add_display_props()
353 boot_infos_t *bi = bootx_info; in bootx_flatten_dt() local
362 mem_start = mem_end = _ALIGN_UP(((unsigned long)bi) + start, 4); in bootx_flatten_dt()
371 base = ((unsigned long)bi) + bi->deviceTreeOffset; in bootx_flatten_dt()
429 static void __init btext_welcome(boot_infos_t *bi) in btext_welcome() argument
436 bootx_printf("\nframe buffer at : 0x%x", bi->dispDeviceBase); in btext_welcome()
437 bootx_printf(" (phys), 0x%x", bi->logicalDisplayBase); in btext_welcome()
440 bootx_printf("\nboot_info at : 0x%x", bi); in btext_welcome()
457 bi->deviceTreeOffset); in btext_welcome()
459 bi->deviceTreeSize); in btext_welcome()
467 boot_infos_t *bi = (boot_infos_t *) r4; in bootx_init() local
476 bootx_info = bi; in bootx_init()
485 if (!BOOT_INFO_IS_V2_COMPATIBLE(bi)) in bootx_init()
486 bi->logicalDisplayBase = bi->dispDeviceBase; in bootx_init()
489 if (bi->dispDeviceDepth == 16) in bootx_init()
490 bi->dispDeviceDepth = 15; in bootx_init()
494 ptr = (unsigned long)bi->logicalDisplayBase; in bootx_init()
495 ptr += bi->dispDeviceRect[1] * bi->dispDeviceRowBytes; in bootx_init()
496 ptr += bi->dispDeviceRect[0] * ((bi->dispDeviceDepth + 7) / 8); in bootx_init()
497 btext_setup_display(bi->dispDeviceRect[2] - bi->dispDeviceRect[0], in bootx_init()
498 bi->dispDeviceRect[3] - bi->dispDeviceRect[1], in bootx_init()
499 bi->dispDeviceDepth, bi->dispDeviceRowBytes, in bootx_init()
500 (unsigned long)bi->logicalDisplayBase); in bootx_init()
514 if (!BOOT_INFO_IS_COMPATIBLE(bi)) { in bootx_init()
520 if (bi->architecture != BOOT_ARCH_PCI) { in bootx_init()
528 btext_welcome(bi); in bootx_init()
534 if (bi->version < 4) { in bootx_init()
538 model = (char *) bootx_early_getprop(r4 + bi->deviceTreeOffset, in bootx_init()
551 if (bi->version < 5) { in bootx_init()
552 space = bi->deviceTreeOffset + bi->deviceTreeSize; in bootx_init()
553 if (bi->ramDisk >= space) in bootx_init()
554 space = bi->ramDisk + bi->ramDiskSize; in bootx_init()
556 space = bi->totalParamsSize; in bootx_init()
563 if (bi->version < 4) { in bootx_init()
574 ptr < (unsigned long)bi + space; ptr += PAGE_SIZE) in bootx_init()