Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / pdisk / dump.h
blob86147503fb5c43e54d72243b35a1bbd86aff4e62
1 //
2 // dump.h - dumping partition maps
3 //
4 // Written by Eryk Vershen
5 //
7 /*
8 * Copyright 1996,1997 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 __dump__
29 #define __dump__
31 #include "partition_map.h"
35 // Defines
37 #define AFLAG_DEFAULT 0
38 #define PFLAG_DEFAULT 1
39 #define FFLAG_DEFAULT 0
43 // Types
48 // Global Constants
53 // Global Variables
55 extern int aflag;
56 extern int pflag;
57 extern int fflag;
61 // Forward declarations
63 void display_patches(partition_map *entry);
64 int dump(char *name);
65 void dump_block(unsigned char *addr, int len);
66 void dump_partition_map(partition_map_header *map, int disk_order);
67 void full_dump_partition_entry(partition_map_header *, int);
68 void full_dump_block_zero(partition_map_header *map);
69 void list_all_disks(void);
70 void show_data_structures(partition_map_header *map);
72 #endif /* __dump__ */