Home
last modified time | relevance | path

Searched refs:bootinfo (Results 1 – 25 of 222) sorted by relevance

123456789

/netbsd/sys/arch/zaurus/stand/zboot/
H A Dbootinfo.c32 struct btinfo *bootinfo; variable
40 for (i = 0; i < bootinfo->nentries; i++) { in bi_find()
41 btinfo = (struct btinfo_common *)(bootinfo->entry[i]); in bi_find()
57 if (bootinfo) { in bi_add()
60 idx = bootinfo->nentries++; in bi_add()
62 bootinfo->entry[idx] = (u_long)what; in bi_add()
72 if (bootinfo) { in bi_del()
75 for (i = idx + 1; i < bootinfo->nentries; i++) { in bi_del()
76 bootinfo->entry[i - 1] = bootinfo->entry[i]; in bi_del()
78 bootinfo->entry[--bootinfo->nentries] = 0L; in bi_del()
/netbsd/sys/arch/evbmips/sbmips/
H A Dmachdep.c131 struct bootinfo_v1 bootinfo; variable
181 sizeof bootinfo); in mach_init()
184 memset(&bootinfo, 0, sizeof bootinfo); in mach_init()
185 bootinfo.version = BOOTINFO_VERSION; in mach_init()
186 bootinfo.fwhandle = fwhandle; in mach_init()
187 bootinfo.fwentry = bootdata; in mach_init()
188 bootinfo.ssym = (vaddr_t)end; in mach_init()
189 bootinfo.esym = (vaddr_t)end; in mach_init()
280 switch (bootinfo.boot_flags[i]) { in mach_init()
287 bootinfo.boot_flags[i] != '\0') { in mach_init()
[all …]
/netbsd/sys/arch/sbmips/sbmips/
H A Dmachdep.c130 struct bootinfo_v1 bootinfo; variable
167 sizeof bootinfo); in mach_init()
170 memset(&bootinfo, 0, sizeof bootinfo); in mach_init()
171 bootinfo.version = BOOTINFO_VERSION; in mach_init()
172 bootinfo.fwhandle = fwhandle; in mach_init()
173 bootinfo.fwentry = bootdata; in mach_init()
174 bootinfo.ssym = (vaddr_t)end; in mach_init()
175 bootinfo.esym = (vaddr_t)end; in mach_init()
218 cfe_init(bootinfo.fwhandle, bootinfo.fwentry); in mach_init()
265 switch (bootinfo.boot_flags[i]) { in mach_init()
[all …]
/netbsd/sys/arch/hpcarm/hpcarm/
H A Dhpc_machdep.c79 struct bootinfo *bootinfo, bootinfo_storage; variable
261 bootinfo = &bootinfo_storage; in initarm()
265 bootinfo->fb_width = BOOTINFO_FB_WIDTH; in initarm()
266 bootinfo->fb_height = BOOTINFO_FB_HEIGHT; in initarm()
267 bootinfo->fb_type = BOOTINFO_FB_TYPE; in initarm()
270 if (bootinfo->magic == BOOTINFO_MAGIC) { in initarm()
271 platid.dw.dw0 = bootinfo->platid_cpu; in initarm()
272 platid.dw.dw1 = bootinfo->platid_machine; in initarm()
279 (bootinfo->timezone > (-12 * 60) && in initarm()
280 bootinfo->timezone <= (12 * 60))) in initarm()
[all …]
/netbsd/sys/arch/evbmips/stand/sbmips/common/
H A Dboot.c58 struct bootinfo_v1 bootinfo; variable
146 memset(&bootinfo, 0,sizeof(bootinfo)); in main()
147 bootinfo.version = BOOTINFO_VERSION; in main()
148 bootinfo.reserved = 0; in main()
149 bootinfo.ssym = marks[MARK_SYM]; in main()
150 bootinfo.esym = marks[MARK_END]; in main()
151 strncpy(bootinfo.boot_flags,boot_flags,sizeof(bootinfo.boot_flags)); in main()
152 strncpy(bootinfo.booted_kernel,name,sizeof(bootinfo.booted_kernel)); in main()
153 bootinfo.fwhandle = fwhandle; in main()
154 bootinfo.fwentry = fwentry; in main()
[all …]
/netbsd/sys/arch/sbmips/stand/common/
H A Dboot.c58 struct bootinfo_v1 bootinfo; variable
146 memset(&bootinfo, 0,sizeof(bootinfo)); in main()
147 bootinfo.version = BOOTINFO_VERSION; in main()
148 bootinfo.reserved = 0; in main()
149 bootinfo.ssym = marks[MARK_SYM]; in main()
150 bootinfo.esym = marks[MARK_END]; in main()
151 strncpy(bootinfo.boot_flags,boot_flags,sizeof(bootinfo.boot_flags)); in main()
152 strncpy(bootinfo.booted_kernel,name,sizeof(bootinfo.booted_kernel)); in main()
153 bootinfo.fwhandle = fwhandle; in main()
154 bootinfo.fwentry = fwentry; in main()
[all …]
/netbsd/sys/arch/mvmeppc/mvmeppc/
H A Dmachdep.c102 struct mvmeppc_bootinfo bootinfo; variable
115 memcpy(&bootinfo, btinfo, sizeof(bootinfo)); in initppc()
127 bootinfo.bi_modelnumber); in initppc()
136 physmemr[0].size = bootinfo.bi_memsize & ~PGOFSET; in initppc()
147 ticks_per_sec = bootinfo.bi_clocktps; in initppc()
174 bootinfo.bi_mpuspeed/1000000, in cpu_startup()
175 bootinfo.bi_busspeed/1000000); in cpu_startup()
241 if (!strcmp(bootinfo.bi_consoledev, "PC16550")) { in consinit()
245 rv = comcnattach(tag, caddr[bootinfo.bi_consolechan], in consinit()
246 bootinfo.bi_consolespeed, COM_FREQ, COM_TYPE_NORMAL, in consinit()
[all …]
H A Dplatform_160x.c95 if (MVMEPPC_FAMILY(bootinfo.bi_modelnumber) != MVMEPPC_FAMILY_160x) in p160x_match()
113 bootinfo.bi_mpuspeed = strtoul(speed, NULL, 10) * 1000000; in p160x_match()
115 bootinfo.bi_busspeed = strtoul(speed, NULL, 10) * 1000000; in p160x_match()
116 bootinfo.bi_clocktps = bootinfo.bi_busspeed / 4; in p160x_match()
120 bootinfo.bi_memsize = p160x_dram_size[dsr & 0x7]; in p160x_match()
121 bootinfo.bi_memsize += p160x_dram_size[(dsr >> 4) & 0x7]; in p160x_match()
/netbsd/sys/arch/mvmeppc/stand/boot/
H A Dboot.c76 struct mvmeppc_bootinfo bootinfo; variable
136 bootinfo.bi_boothowto = howto; in main()
137 bootinfo.bi_bootaddr = bbi->bbi_devaddr; in main()
138 bootinfo.bi_bootclun = bbi->bbi_clun; in main()
139 bootinfo.bi_bootclun = bbi->bbi_dlun; in main()
140 strncpy(bootinfo.bi_bootline, bbi->bbi_argstart, in main()
142 strncpy(bootinfo.bi_consoledev, consname, CONSOLEDEV_LEN); in main()
143 bootinfo.bi_consoleaddr = ioi->ii_devaddr; in main()
144 bootinfo.bi_consolechan = ioi->ii_channel; in main()
145 bootinfo.bi_consolespeed = ioctrl.ic_baud; in main()
[all …]
/netbsd/sys/arch/hppa/stand/boot/
H A Dbootinfo.c39 struct bootinfo bootinfo; variable
46 memset(&bootinfo, 0, sizeof(bootinfo)); in bi_init()
58 memcpy(&bootinfo.bi_data[bootinfo.bi_offset], what, size); in bi_add()
60 bootinfo.bi_offset += what->len; in bi_add()
61 bootinfo.bi_nentries++; in bi_add()
/netbsd/sys/arch/hpcmips/hpcmips/
H A Dmachdep.c165 static struct bootinfo bi_copy;
166 struct bootinfo *bootinfo; variable
259 bootinfo = &bi_copy; in mach_init()
260 if (bootinfo->platid_cpu != 0) { in mach_init()
261 platid.dw.dw0 = bootinfo->platid_cpu; in mach_init()
263 if (bootinfo->platid_machine != 0) { in mach_init()
323 if (bootinfo) { in mach_init()
338 if (rtc_offset == 0 && bootinfo in mach_init()
339 && bootinfo->timezone > (-12*60) in mach_init()
340 && bootinfo->timezone <= (12*60)) in mach_init()
[all …]
/netbsd/sys/arch/alpha/alpha/
H A Dautoconf.c138 snprintf(bootinfo.booted_dev, sizeof(bootinfo.booted_dev), in qemu_find_rootdev()
189 if (strncasecmp(bootinfo.booted_dev, "BOOTP ", 6) != 0 && in netboot_find_rootdev_planb()
190 strncasecmp(bootinfo.booted_dev, "MOP ", 4) != 0) { in netboot_find_rootdev_planb()
195 for (i = 2; bootinfo.booted_dev[i] != '\0'; i++) { in netboot_find_rootdev_planb()
196 if (bootinfo.booted_dev[i] == '-') { in netboot_find_rootdev_planb()
197 if (parse_dec_macaddr(&bootinfo.booted_dev[i - 2], in netboot_find_rootdev_planb()
204 if (bootinfo.booted_dev[i] == '\0') { in netboot_find_rootdev_planb()
247 bootinfo.booted_dev); in cpu_rootconf()
270 memcpy(hacked_boot_dev, bootinfo.booted_dev, in parse_prom_bootdev()
271 uimin(sizeof bootinfo.booted_dev, sizeof hacked_boot_dev)); in parse_prom_bootdev()
/netbsd/sys/arch/ia64/ia64/
H A Defi.c97 bootinfo.bi_memmap_size, bootinfo.bi_memdesc_size, in efi_boot_minimal()
98 bootinfo.bi_memdesc_version, bootinfo.bi_memmap, 0); in efi_boot_minimal()
133 if (bootinfo.bi_memmap == 0) in efi_md_first()
135 return ((struct efi_md *)IA64_PHYS_TO_RR7(bootinfo.bi_memmap)); in efi_md_first()
143 plim = IA64_PHYS_TO_RR7(bootinfo.bi_memmap + bootinfo.bi_memmap_size); in efi_md_next()
144 md = (struct efi_md *)((uintptr_t)md + bootinfo.bi_memdesc_size); in efi_md_next()
H A Dmachdep.c159 struct bootinfo bootinfo; variable
423 bootinfo = *(struct bootinfo *)(IA64_PHYS_TO_RR7(pa_bootinfo)); in ia64_init()
425 if (bootinfo.bi_magic != BOOTINFO_MAGIC || bootinfo.bi_version != 1) { in ia64_init()
426 memset(&bootinfo, 0, sizeof(bootinfo)); in ia64_init()
456 boothowto = bootinfo.bi_boothowto; in ia64_init()
484 efi_boot_minimal(bootinfo.bi_systab); in ia64_init()
494 ia64_unwindtab = (uint64_t)bootinfo.bi_unwindtab; in ia64_init()
496 ksym_start = (void *)bootinfo.bi_symtab; in ia64_init()
497 ksym_end = (void *)bootinfo.bi_esymtab; in ia64_init()
500 kernend = (vaddr_t)round_page(bootinfo.bi_kernend); in ia64_init()
[all …]
/netbsd/sys/arch/i386/stand/lib/
H A Dbootinfo.c35 struct bootinfo *bootinfo; variable
43 if (bootinfo == NULL) { in bi_add()
46 if (bootinfo->nentries >= BTINFO_MAX) { in bi_add()
49 bootinfo->entry[bootinfo->nentries++] = vtophys(what); in bi_add()
H A Dbootinfo.h31 struct bootinfo { struct
36 extern struct bootinfo *bootinfo; argument
40 #define BI_ALLOC(max) (bootinfo = alloc(sizeof(struct bootinfo) \
44 #define BI_FREE() dealloc(bootinfo, 0)
/netbsd/sys/arch/hpcarm/dev/
H A Dipaq_lcd.c141 bootinfo->fb_addr = (void *) in ipaqlcd_init()
186 fb->hf_height = bootinfo->fb_height; in ipaqlcd_fbinit()
187 fb->hf_width = bootinfo->fb_width; in ipaqlcd_fbinit()
190 bootinfo->fb_height * bootinfo->fb_line_bytes, in ipaqlcd_fbinit()
196 fb->hf_offset = (u_long)bootinfo->fb_addr - in ipaqlcd_fbinit()
197 __PTOB(__BTOP(bootinfo->fb_addr)); in ipaqlcd_fbinit()
199 fb->hf_bytes_per_line = bootinfo->fb_line_bytes; in ipaqlcd_fbinit()
201 fb->hf_bytes_per_plane = bootinfo->fb_height * in ipaqlcd_fbinit()
208 switch (bootinfo->fb_type) { in ipaqlcd_fbinit()
259 bootinfo->fb_type); in ipaqlcd_fbinit()
[all …]
H A Dsed_saip.c153 (u_long)bootinfo->fb_addr); in sed1356_attach()
197 if (bootinfo == NULL || in sed1356_init()
198 bootinfo->fb_addr == 0 || in sed1356_init()
199 bootinfo->fb_line_bytes == 0 || in sed1356_init()
200 bootinfo->fb_width == 0 || in sed1356_init()
201 bootinfo->fb_height == 0) { in sed1356_init()
215 fb->hf_height = bootinfo->fb_height; in sed1356_init()
216 fb->hf_width = bootinfo->fb_width; in sed1356_init()
219 bootinfo->fb_height * bootinfo->fb_line_bytes, in sed1356_init()
230 bootinfo->fb_line_bytes; in sed1356_init()
[all …]
/netbsd/sys/arch/zaurus/zaurus/
H A Dkloader_machdep.c82 struct bootinfo *bootinfo; in kloader_zaurus_jump() local
97 bootinfo = (struct bootinfo *)(bootmagicp + 1); in kloader_zaurus_jump()
98 bootinfo->nentries = 0; in kloader_zaurus_jump()
99 ptr = (vaddr_t)bootinfo->info; in kloader_zaurus_jump()
106 bootinfo->nentries++; in kloader_zaurus_jump()
118 bootinfo->nentries++; in kloader_zaurus_jump()
/netbsd/sys/arch/landisk/landisk/
H A Dmachdep.c134 struct bootinfo _bootinfo;
136 struct bootinfo *bootinfo; variable
183 bootinfo = &kbootinfo.bootinfo; in landisk_startup()
185 bootinfo = &_bootinfo; in landisk_startup()
187 memcpy(bootinfo, bi, sizeof(struct bootinfo)); in landisk_startup()
263 int n = bootinfo->nentries; in lookup_bootinfo()
265 help = (struct btinfo_common *)(bootinfo->info); in lookup_bootinfo()
/netbsd/sys/arch/mmeye/stand/boot/
H A Dbootinfo.c39 static char *bootinfo = NULL; variable
49 if ((bootinfo = (char *)alloc(BOOTINFO_SIZE)) != NULL) { in bi_init()
50 bi = (struct btinfo_common *)bootinfo; in bi_init()
52 bi_next = bootinfo; in bi_init()
59 return bootinfo; in bi_init()
69 if (bootinfo != NULL) { in bi_add()
/netbsd/sys/arch/cobalt/stand/boot/
H A Dbootinfo.c39 static char *bootinfo = NULL; variable
49 if ((bootinfo = (char *)alloc(BOOTINFO_SIZE)) != NULL) { in bi_init()
50 bi = (struct btinfo_common *)bootinfo; in bi_init()
52 bi_next = bootinfo; in bi_init()
59 return bootinfo; in bi_init()
69 if (bootinfo != NULL) { in bi_add()
/netbsd/sys/arch/hpcsh/hpcsh/
H A Dmachdep.c157 static struct bootinfo bootinfo_storage;
158 struct bootinfo *bootinfo = &bootinfo_storage; variable
165 void machine_startup(int, char *[], struct bootinfo *)
210 memcpy(&bootinfo_storage, bi, sizeof(struct bootinfo)); in machine_startup()
211 if (bootinfo->magic == BOOTINFO_MAGIC) { in machine_startup()
212 platid.dw.dw0 = bootinfo->platid_cpu; in machine_startup()
213 platid.dw.dw1 = bootinfo->platid_machine; in machine_startup()
227 && bootinfo->timezone > (-12*60) in machine_startup()
228 && bootinfo->timezone <= (12*60)) in machine_startup()
229 rtc_offset = bootinfo->timezone; in machine_startup()
[all …]
/netbsd/sys/arch/amd64/amd64/
H A Dprekern.c57 void *bootinfo; member
82 extern struct bootinfo bootinfo; in prekern_copy_args()
93 memcpy(&bootinfo, pkargs->bootinfo, sizeof(bootinfo)); in prekern_copy_args()
/netbsd/sys/arch/sgimips/stand/common/
H A Dbootinfo.c38 struct btinfo_common *bootinfo; /* bootinfo address */ variable
48 bootinfo = bi_addr; in bi_init()
49 bootinfo->next = 0; in bi_init()
50 bootinfo->type = BTINFO_NONE; in bi_init()
52 bi_next = (void *)bootinfo; in bi_init()

123456789