Home | History | Annotate | Download | only in fastboot

Lines Matching defs:hdr

50     boot_img_hdr *hdr;
60 hdr = calloc(*bootimg_size, 1);
62 if(hdr == 0) {
63 return hdr;
66 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE);
68 hdr->kernel_size = kernel_size;
69 hdr->ramdisk_size = ramdisk_size;
70 hdr->second_size = second_size;
71 hdr->kernel_addr = base + 0x00008000;
72 hdr->ramdisk_addr = base + 0x01000000;
73 hdr->second_addr = base + 0x00F00000;
74 hdr->tags_addr = base + 0x00000100;
75 hdr->page_size = page_size;
77 memcpy(hdr->magic + page_size,
79 memcpy(hdr->magic + page_size + kernel_actual,
81 memcpy(hdr->magic + page_size + kernel_actual + ramdisk_actual,
83 return hdr;