2 * libhfs - library for reading and writing Macintosh HFS volumes
3 * Copyright (C) 1996-1998 Robert Leslie
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20 * $Id: low.h,v 1.6 1998/04/11 08:27:13 rob Exp $
23 # define HFS_DDR_SIGWORD 0x4552
25 # define HFS_PM_SIGWORD 0x504d
26 # define HFS_PM_SIGWORD_OLD 0x5453
28 # define HFS_BB_SIGWORD 0x4c4b
30 # define HFS_BOOTCODE1LEN (HFS_BLOCKSZ - 148)
31 # define HFS_BOOTCODE2LEN HFS_BLOCKSZ
33 # define HFS_BOOTCODELEN (HFS_BOOTCODE1LEN + HFS_BOOTCODE2LEN)
35 int l_getddr(hfsvol *, Block0 *);
36 int l_putddr(hfsvol *, const Block0 *);
38 int l_getpmentry(hfsvol *, Partition *, unsigned long);
39 int l_putpmentry(hfsvol *, const Partition *, unsigned long);
41 int l_getbb(hfsvol *, BootBlkHdr *, byte *);
42 int l_putbb(hfsvol *, const BootBlkHdr *, const byte *);
44 int l_getmdb(hfsvol *, MDB *, int);
45 int l_putmdb(hfsvol *, const MDB *, int);