HomeSort by: relevance | last modified time | path
    Searched refs:vtoc (Results 1 - 11 of 11) sorted by relevancy

  /src/sys/arch/ews4800mips/ews4800mips/
vtoc.c 1 /* $NetBSD: vtoc.c,v 1.4 2008/04/28 20:23:18 martin Exp $ */
33 __KERNEL_RCSID(0, "$NetBSD: vtoc.c,v 1.4 2008/04/28 20:23:18 martin Exp $");
50 #include <machine/vtoc.h>
57 vtoc_sector(void *rwops, struct vtoc_sector *vtoc, int start)
60 if (!sector_read(rwops, (void *)vtoc, start + VTOC_SECTOR))
63 if (!vtoc_sanity(vtoc))
70 vtoc_find_bfs(const struct vtoc_sector *vtoc)
74 if (!vtoc_valid(vtoc)) {
75 printf("invalid VTOC\n");
79 for (i = 0; i < vtoc->npartitions; i++
    [all...]
disklabel_conv.c 57 * | VTOC |
92 struct vtoc_sector *vtoc = &ux->vtoc; local in function:vtoc_set_default
98 memset(vtoc, 0, sizeof *vtoc);
135 vtoc->magic = VTOC_MAGIC;
136 vtoc->version = VTOC_VERSION;
137 vtoc->sector_size_byte = DEV_BSIZE;
138 vtoc->npartitions = VTOC_MAXPARTITIONS;
140 boot = &vtoc->partition[7]
165 struct vtoc_sector *vtoc = &ux->vtoc; local in function:disklabel_to_vtoc
218 struct vtoc_sector *vtoc = &ux->vtoc; local in function:vtoc_to_disklabel
    [all...]
disksubr.c 57 struct vtoc_sector *vtoc = &ux->vtoc; local in function:readdisklabel
65 /* Read VTOC */
68 } else if (vtoc_sector(rwops, vtoc, pdinfo->logical_sector) &&
69 vtoc_sanity(vtoc)) {
81 DPRINTF("%s: PDINFO found, but VTOC not found.\n", __func__);
85 /* If there is no BSD disklabel, convert from VTOC */
88 DPRINTF("%s: creating disklabel from VTOC.\n",
91 DPRINTF("%s: no VTOC. creating default disklabel.\n",
128 /* 1. Update VTOC */
    [all...]
  /src/sys/arch/ews4800mips/include/
disklabel.h 37 #include <nbinclude/machine/vtoc.h>
40 #include <machine/vtoc.h>
50 * 7 boot block (VTOC)
66 struct vtoc_sector vtoc; member in struct:cpu_disklabel
70 /* VTOC <-> disklabel conversion ops. */
bfs.h 36 #include <machine/vtoc.h>
Makefile 21 vmparam.h vtoc.h \
  /src/sys/arch/ews4800mips/stand/common/
diskutil.c 37 #include <machine/vtoc.h>
44 struct vtoc_sector vtoc; variable in typeref:struct:vtoc_sector
58 partition = vtoc.partition;
136 p = &vtoc.partition[partition];
154 vtoc.partition[partition].start_sector;
175 if (!vtoc_sector(0, &vtoc, pdinfo.logical_sector)) {
176 printf("no VTOC\n");
bfs_subr.c 73 struct vtoc_sector *vtoc; local in function:bfs_find
86 vtoc = (struct vtoc_sector *)buf;
87 if (!vtoc_sector(0, vtoc, start))
91 if ((bfs_partition = vtoc_find_bfs(vtoc)) == 0)
fileread_bfs.c 40 #include <machine/vtoc.h>
48 struct vtoc_sector *vtoc = (void *)SDBOOT_VTOCADDR; local in function:fileread
49 struct ux_partition *partition = vtoc->partition;
62 uint8_t *p = (void *)vtoc;
64 err = dk_read(pdinfo->logical_sector + VTOC_SECTOR, 1, vtoc);
80 /* Read VTOC */
81 err = dk_read(pdinfo->logical_sector + VTOC_SECTOR, 1, vtoc);
85 if (vtoc->magic != VTOC_MAGIC)
boot.c 41 #include <machine/vtoc.h>
125 extern struct vtoc_sector vtoc;
146 partition = vtoc.partition;
  /src/sys/arch/ews4800mips/stand/boot/
Makefile 52 SRCS += pdinfo.c vtoc.c

Completed in 14 milliseconds