xref: /openbsd-src/sbin/pdisk/file_media.h (revision f8fa35e539a05a407b1466cbb2563b3b5a1178fd)
1*f8fa35e5Skrw /*	$OpenBSD: file_media.h,v 1.20 2016/01/30 17:09:11 krw Exp $	*/
2fb04e59aSjasper 
3dce63815Sdrahn /*
4dce63815Sdrahn  * file_media.h -
5dce63815Sdrahn  *
6b42d9302Smartin  * Written by Eryk Vershen
7dce63815Sdrahn  */
8dce63815Sdrahn 
9dce63815Sdrahn /*
10dce63815Sdrahn  * Copyright 1997,1998 by Apple Computer, Inc.
11dce63815Sdrahn  *              All Rights Reserved
12dce63815Sdrahn  *
13dce63815Sdrahn  * Permission to use, copy, modify, and distribute this software and
14dce63815Sdrahn  * its documentation for any purpose and without fee is hereby granted,
15dce63815Sdrahn  * provided that the above copyright notice appears in all copies and
16dce63815Sdrahn  * that both the copyright notice and this permission notice appear in
17dce63815Sdrahn  * supporting documentation.
18dce63815Sdrahn  *
19dce63815Sdrahn  * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
20dce63815Sdrahn  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21dce63815Sdrahn  * FOR A PARTICULAR PURPOSE.
22dce63815Sdrahn  *
23dce63815Sdrahn  * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
24dce63815Sdrahn  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
25dce63815Sdrahn  * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
26dce63815Sdrahn  * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
27dce63815Sdrahn  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
28dce63815Sdrahn  */
29dce63815Sdrahn 
30dce63815Sdrahn #ifndef __file_media__
31dce63815Sdrahn #define __file_media__
32dce63815Sdrahn 
336f012227Skrw int	read_block0(int, struct partition_map *);
346f012227Skrw int	write_block0(int, struct partition_map *);
35e7b05a59Skrw 
36*f8fa35e5Skrw int	read_dpme(int, uint64_t, struct entry *);
37*f8fa35e5Skrw int	write_dpme(int, uint64_t, struct entry *);
38e7b05a59Skrw 
39dce63815Sdrahn #endif /* __file_media__ */
40