Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / pdisk / convert.h
blob9423435d34c6e1d9ba60a7b02ae53b2cfc9b0d97
1 //
2 // convert.h - Little-endian conversion
3 //
4 // Written by Eryk Vershen
5 //
6 // The approach taken to conversion is fairly simply.
7 // Keep the in-memory copy in the machine's normal form and
8 // Convert as necessary when reading and writing.
9 //
12 * Copyright 1996,1998 by Apple Computer, Inc.
13 * All Rights Reserved
15 * Permission to use, copy, modify, and distribute this software and
16 * its documentation for any purpose and without fee is hereby granted,
17 * provided that the above copyright notice appears in all copies and
18 * that both the copyright notice and this permission notice appear in
19 * supporting documentation.
21 * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
22 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23 * FOR A PARTICULAR PURPOSE.
25 * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
26 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27 * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
28 * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
29 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
32 #ifndef __convert__
33 #define __convert__
35 #include "dpme.h"
39 // Defines
44 // Types
49 // Global Constants
54 // Global Variables
59 // Forward declarations
61 int convert_block0(Block0 *data, int to_cpu_form);
62 int convert_bzb(BZB *data, int to_cpu_form);
63 int convert_dpme(DPME *data, int to_cpu_form);
65 #endif /* __convert__ */