Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/mkimg/scheme.h
| Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
| }; | }; | ||||
| struct mkimg_scheme { | struct mkimg_scheme { | ||||
| struct mkimg_scheme *next; | struct mkimg_scheme *next; | ||||
| const char *name; | const char *name; | ||||
| const char *description; | const char *description; | ||||
| struct mkimg_alias *aliases; | struct mkimg_alias *aliases; | ||||
| lba_t (*metadata)(u_int, lba_t); | lba_t (*metadata)(u_int, lba_t); | ||||
| #define SCHEME_META_IMG_START 1 | #define SCHEME_META_IMG_START 1 | ||||
| #define SCHEME_META_IMG_END 2 | #define SCHEME_META_IMG_END 2 | ||||
| #define SCHEME_META_PART_BEFORE 3 | #define SCHEME_META_PART_BEFORE 3 | ||||
| #define SCHEME_META_PART_AFTER 4 | #define SCHEME_META_PART_AFTER 4 | ||||
| #define SCHEME_META_PART_ABSOLUTE 5 | |||||
| int (*write)(lba_t, void *); | int (*write)(lba_t, void *); | ||||
| u_int nparts; | u_int nparts; | ||||
| u_int labellen; | u_int labellen; | ||||
| u_int bootcode; | u_int bootcode; | ||||
| u_int maxsecsz; | u_int maxsecsz; | ||||
| }; | }; | ||||
| #define SCHEME_DEFINE(nm) \ | #define SCHEME_DEFINE(nm) \ | ||||
| Show All 16 Lines | |||||