summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-12 10:07:12 +0000
committerphk <phk@FreeBSD.org>2003-04-12 10:07:12 +0000
commit453902424c76c2b8c66ed6b58459cc7611596288 (patch)
treeb6169ae39df7002a5cb08a2cbd5a5b99fca60cf7 /sys
parent09bb4feff1e839c244c350377ee9c3e3e03889ad (diff)
downloadFreeBSD-src-453902424c76c2b8c66ed6b58459cc7611596288.zip
FreeBSD-src-453902424c76c2b8c66ed6b58459cc7611596288.tar.gz
protoypes for the dos_partition encoding functions.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/diskmbr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/diskmbr.h b/sys/sys/diskmbr.h
index ef3147a..a9dda76 100644
--- a/sys/sys/diskmbr.h
+++ b/sys/sys/diskmbr.h
@@ -66,10 +66,12 @@ struct dos_partition {
CTASSERT(sizeof (struct dos_partition) == 16);
#endif
+void dos_partition_dec(void const *pp, struct dos_partition *d);
+void dos_partition_enc(void *pp, struct dos_partition *d);
+
#define DPSECT(s) ((s) & 0x3f) /* isolate relevant bits of sector */
#define DPCYL(c, s) ((c) + (((s) & 0xc0)<<2)) /* and those that are cylinder */
#define DIOCSMBR _IOW('M', 129, u_char[512])
-
#endif /* !_SYS_DISKMBR_H_ */
OpenPOWER on IntegriCloud