diff options
author | phk <phk@FreeBSD.org> | 2002-03-24 11:21:41 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-03-24 11:21:41 +0000 |
commit | 4068fec653ba2a83988caa040060a696b9ac3242 (patch) | |
tree | 0b82d8002c02b6f98429809f8c0eb8dafa77a9ee /sys/geom/geom.h | |
parent | a3880e122dd1dd267a3b5bc6631cb86b52f184ab (diff) | |
download | FreeBSD-src-4068fec653ba2a83988caa040060a696b9ac3242.zip FreeBSD-src-4068fec653ba2a83988caa040060a696b9ac3242.tar.gz |
Be more systematic about conversion of on-disk formats in a endian/width
agnostic way.
Collapse the MBR and MBREXT methods into one file and make them endian/width
agnostic.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r-- | sys/geom/geom.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h index cd91f82..de4647b 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -198,6 +198,13 @@ void g_trace(int level, char *, ...); # define G_T_BIO 2 # define G_T_ACCESS 4 +/* geom_enc.c */ +uint32_t g_dec_be2(u_char *p); +uint32_t g_dec_be4(u_char *p); +uint32_t g_dec_le2(u_char *p); +uint32_t g_dec_le4(u_char *p); +void g_enc_le4(u_char *p, uint32_t u); + /* geom_event.c */ void g_event_init(void); void g_orphan_provider(struct g_provider *pp, int error); |