Use u_int32_t and friends. Comment a tiny bit...
This commit is contained in:
parent
6371cf2364
commit
a43a6e9bdf
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: dpme.h,v 1.4 1994/10/26 08:47:00 cgd Exp $ */
|
/* $NetBSD: dpme.h,v 1.5 1994/10/26 18:05:48 briggs Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (C) 1993 Allen K. Briggs, Chris P. Caputo,
|
* Copyright (C) 1993 Allen K. Briggs, Chris P. Caputo,
|
||||||
|
@ -34,60 +34,54 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* parts Copyright (c) 1988 Apple Computer */
|
#include <sys/types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ALICE 5/19/92 BG
|
* Partition map structure from Inside Macintosh V-579.
|
||||||
|
*/
|
||||||
Handy dandy header info.
|
struct partmapentry {
|
||||||
This is just disk partitioning info from Inside Mac V
|
u_int16_t pmSig;
|
||||||
*/
|
u_int16_t pmSigPad;
|
||||||
|
u_int32_t pmMapBlkCnt;
|
||||||
|
u_int32_t pmPyPartStart;
|
||||||
struct partmapentry{
|
u_int32_t pmPartBlkCnt;
|
||||||
unsigned short pmSig;
|
u_int8_t pmPartName[32];
|
||||||
unsigned short pmSigPad;
|
u_int8_t pmPartType[32];
|
||||||
unsigned long pmMapBlkCnt;
|
u_int32_t pmLgDataStart;
|
||||||
unsigned long pmPyPartStart;
|
u_int32_t pmDataCnt;
|
||||||
unsigned long pmPartBlkCnt;
|
u_int32_t pmPartStatus;
|
||||||
unsigned char pmPartName[32];
|
u_int32_t pmLgBootStart;
|
||||||
unsigned char pmPartType[32];
|
u_int32_t pmBootSize;
|
||||||
unsigned long pmLgDataStart;
|
u_int32_t pmBootLoad;
|
||||||
unsigned long pmDataCnt;
|
u_int32_t pmBootLoad2;
|
||||||
unsigned long pmPartStatus;
|
u_int32_t pmBootEntry;
|
||||||
unsigned long pmLgBootStart;
|
u_int32_t pmBootEntry2;
|
||||||
unsigned long pmBootSize;
|
u_int32_t pmBootCksum;
|
||||||
unsigned long pmBootLoad;
|
int8_t pmProcessor[16];
|
||||||
unsigned long pmBootLoad2;
|
u_int8_t pmBootArgs[128];
|
||||||
unsigned long pmBootEntry;
|
u_int8_t blockpadding[248];
|
||||||
unsigned long pmBootEntry2;
|
|
||||||
unsigned long pmBootCksum;
|
|
||||||
char pmProcessor[16];
|
|
||||||
unsigned char pmBootArgs[128];
|
|
||||||
unsigned char blockpadding[248];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Disk Partition Map Entry Magic number. Valid entries have this
|
||||||
|
* in the pmSig field.
|
||||||
|
*/
|
||||||
#define DPME_MAGIC 0x504d
|
#define DPME_MAGIC 0x504d
|
||||||
|
|
||||||
|
/*
|
||||||
struct altblkmap{
|
* "pmBootArgs" for APPLE_UNIX_SVR2 partition.
|
||||||
int abmSize;
|
* NetBSD/Mac68k only uses Magic, Cluster, Type, and Flags.
|
||||||
int abmEntries;
|
*/
|
||||||
unsigned long abmOffset;
|
struct blockzeroblock {
|
||||||
};
|
u_int32_t bzbMagic;
|
||||||
|
u_int8_t bzbCluster;
|
||||||
|
u_int8_t bzbType;
|
||||||
struct blockzeroblock{
|
u_int16_t bzbBadBlockInode;
|
||||||
unsigned long bzbMagic;
|
u_int16_t bzbFlags;
|
||||||
unsigned char bzbCluster;
|
u_int16_t bzbReserved;
|
||||||
unsigned char bzbType;
|
u_int32_t bzbCreationTime;
|
||||||
unsigned short bzbBadBlockInode;
|
u_int32_t bzbMountTime;
|
||||||
unsigned short bzbFlags;
|
u_int32_t bzbUMountTime;
|
||||||
unsigned short bzbReserved;
|
|
||||||
unsigned long bzbCreationTime;
|
|
||||||
unsigned long bzbMountTime;
|
|
||||||
unsigned long bzbUMountTime;
|
|
||||||
struct altblkmap bzbABM;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define BZB_MAGIC 0xABADBABE
|
#define BZB_MAGIC 0xABADBABE
|
||||||
|
|
Loading…
Reference in New Issue