Lines Matching refs:bi

39 #define BOOT_INFO_IS_COMPATIBLE(bi) \
40 ((bi)->compatible_version <= BOOT_INFO_VERSION)
41 #define BOOT_INFO_IS_V2_COMPATIBLE(bi) ((bi)->version >= 2)
42 #define BOOT_INFO_IS_V4_COMPATIBLE(bi) ((bi)->version >= 4)
185 boot_infos_t *bi = bootx_info;
194 tmp = bi->dispDeviceDepth;
196 tmp = bi->dispDeviceRect[2] - bi->dispDeviceRect[0];
198 tmp = bi->dispDeviceRect[3] - bi->dispDeviceRect[1];
200 tmp = bi->dispDeviceRowBytes;
202 tmp = (u32)bi->dispDeviceBase;
204 tmp = (u32)bi->logicalDisplayBase;
205 tmp += bi->dispDeviceRect[1] * bi->dispDeviceRowBytes;
206 tmp += bi->dispDeviceRect[0] * ((bi->dispDeviceDepth + 7) / 8);
351 boot_infos_t *bi = bootx_info;
360 mem_start = mem_end = ALIGN(((unsigned long)bi) + start, 4);
369 base = ((unsigned long)bi) + bi->deviceTreeOffset;
427 static void __init btext_welcome(boot_infos_t *bi)
434 bootx_printf("\nframe buffer at : 0x%x", bi->dispDeviceBase);
435 bootx_printf(" (phys), 0x%x", bi->logicalDisplayBase);
438 bootx_printf("\nboot_info at : 0x%x", bi);
454 bootx_printf("bi->deviceTreeOffset : 0x%x\n",
455 bi->deviceTreeOffset);
456 bootx_printf("bi->deviceTreeSize : 0x%x\n",
457 bi->deviceTreeSize);
465 boot_infos_t *bi = (boot_infos_t *) r4;
474 bootx_info = bi;
483 if (!BOOT_INFO_IS_V2_COMPATIBLE(bi))
484 bi->logicalDisplayBase = bi->dispDeviceBase;
487 if (bi->dispDeviceDepth == 16)
488 bi->dispDeviceDepth = 15;
492 ptr = (unsigned long)bi->logicalDisplayBase;
493 ptr += bi->dispDeviceRect[1] * bi->dispDeviceRowBytes;
494 ptr += bi->dispDeviceRect[0] * ((bi->dispDeviceDepth + 7) / 8);
495 btext_setup_display(bi->dispDeviceRect[2] - bi->dispDeviceRect[0],
496 bi->dispDeviceRect[3] - bi->dispDeviceRect[1],
497 bi->dispDeviceDepth, bi->dispDeviceRowBytes,
498 (unsigned long)bi->logicalDisplayBase);
512 if (!BOOT_INFO_IS_COMPATIBLE(bi)) {
518 if (bi->architecture != BOOT_ARCH_PCI) {
526 btext_welcome(bi);
532 if (bi->version < 4) {
536 model = (char *) bootx_early_getprop(r4 + bi->deviceTreeOffset,
549 if (bi->version < 5) {
550 space = bi->deviceTreeOffset + bi->deviceTreeSize;
551 if (bi->ramDisk >= space)
552 space = bi->ramDisk + bi->ramDiskSize;
554 space = bi->totalParamsSize;
561 if (bi->version < 4) {
572 ptr < (unsigned long)bi + space; ptr += PAGE_SIZE)