Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / pdisk / layout_dump.h
blobe47821b3f3c498e791ea6520d54e1471523e29c7
1 /*
2 * layout_dump.h -
4 * Written by Eryk Vershen
5 */
7 /*
8 * Copyright 1997,1998 by Apple Computer, Inc.
9 * All Rights Reserved
11 * Permission to use, copy, modify, and distribute this software and
12 * its documentation for any purpose and without fee is hereby granted,
13 * provided that the above copyright notice appears in all copies and
14 * that both the copyright notice and this permission notice appear in
15 * supporting documentation.
17 * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
18 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
19 * FOR A PARTICULAR PURPOSE.
21 * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
22 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23 * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
24 * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
25 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
28 #ifndef __layout_dump__
29 #define __layout_dump__
33 * Defines
38 * Types
40 enum {
41 kEnd,
42 kHex,
43 kDec,
44 kUns,
45 kBit
48 typedef struct {
49 short byte_offset;
50 short bit_offset;
51 short bit_length;
52 short format;
53 char *name;
54 } layout;
58 * Global Constants
63 * Global Variables
68 * Forward declarations
73 * Routines
75 void dump_using_layout(void *buffer, layout *desc);
76 void DumpRawBuffer(unsigned char *bufferPtr, int length);
78 #endif /* __layout_dump__ */