xref: /netbsd-src/external/bsd/pdisk/dist/layout_dump.h (revision 48a628ae0434c4247b560ad8f2eb1dc06d0dd070)
19428323dSchristos /*
29428323dSchristos  * layout_dump.h -
39428323dSchristos  *
49428323dSchristos  * Written by Eryk Vershen
59428323dSchristos  */
69428323dSchristos 
79428323dSchristos /*
89428323dSchristos  * Copyright 1997,1998 by Apple Computer, Inc.
99428323dSchristos  *              All Rights Reserved
109428323dSchristos  *
119428323dSchristos  * Permission to use, copy, modify, and distribute this software and
129428323dSchristos  * its documentation for any purpose and without fee is hereby granted,
139428323dSchristos  * provided that the above copyright notice appears in all copies and
149428323dSchristos  * that both the copyright notice and this permission notice appear in
159428323dSchristos  * supporting documentation.
169428323dSchristos  *
179428323dSchristos  * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
189428323dSchristos  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
199428323dSchristos  * FOR A PARTICULAR PURPOSE.
209428323dSchristos  *
219428323dSchristos  * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
229428323dSchristos  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
239428323dSchristos  * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
249428323dSchristos  * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
259428323dSchristos  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
269428323dSchristos  */
279428323dSchristos 
289428323dSchristos #ifndef __layout_dump__
299428323dSchristos #define __layout_dump__
309428323dSchristos 
319428323dSchristos 
329428323dSchristos /*
339428323dSchristos  * Defines
349428323dSchristos  */
359428323dSchristos 
369428323dSchristos 
379428323dSchristos /*
389428323dSchristos  * Types
399428323dSchristos  */
409428323dSchristos enum {
419428323dSchristos     kEnd,
429428323dSchristos     kHex,
439428323dSchristos     kDec,
449428323dSchristos     kUns,
459428323dSchristos     kBit
469428323dSchristos };
479428323dSchristos 
489428323dSchristos typedef struct {
499428323dSchristos     short   byte_offset;
509428323dSchristos     short   bit_offset;
519428323dSchristos     short   bit_length;
529428323dSchristos     short   format;
539428323dSchristos     char    *name;
549428323dSchristos } layout;
559428323dSchristos 
569428323dSchristos 
579428323dSchristos /*
589428323dSchristos  * Global Constants
599428323dSchristos  */
609428323dSchristos 
619428323dSchristos 
629428323dSchristos /*
639428323dSchristos  * Global Variables
649428323dSchristos  */
659428323dSchristos 
669428323dSchristos 
679428323dSchristos /*
689428323dSchristos  * Forward declarations
699428323dSchristos  */
709428323dSchristos 
719428323dSchristos 
729428323dSchristos /*
739428323dSchristos  * Routines
749428323dSchristos  */
759428323dSchristos void dump_using_layout(void *buffer, layout *desc);
76*48a628aeSchristos void DumpRawBuffer(uint8_t *bufferPtr, int length);
779428323dSchristos 
789428323dSchristos #endif /* __layout_dump__ */
79