Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / openbios / fs / hfs / include / low.h
1 /*
2  * libhfs - library for reading and writing Macintosh HFS volumes
3  * Copyright (C) 1996-1998 Robert Leslie
4  *
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.
9  *
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.
14  *
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,
18  * MA 02110-1301, USA.
19  *
20  * $Id: low.h,v 1.6 1998/04/11 08:27:13 rob Exp $
21  */
22
23 # define HFS_DDR_SIGWORD        0x4552
24
25 # define HFS_PM_SIGWORD         0x504d
26 # define HFS_PM_SIGWORD_OLD     0x5453
27
28 # define HFS_BB_SIGWORD         0x4c4b
29
30 # define HFS_BOOTCODE1LEN       (HFS_BLOCKSZ - 148)
31 # define HFS_BOOTCODE2LEN       HFS_BLOCKSZ
32
33 # define HFS_BOOTCODELEN        (HFS_BOOTCODE1LEN + HFS_BOOTCODE2LEN)
34
35 int l_getddr(hfsvol *, Block0 *);
36 int l_putddr(hfsvol *, const Block0 *);
37
38 int l_getpmentry(hfsvol *, Partition *, unsigned long);
39 int l_putpmentry(hfsvol *, const Partition *, unsigned long);
40
41 int l_getbb(hfsvol *, BootBlkHdr *, byte *);
42 int l_putbb(hfsvol *, const BootBlkHdr *, const byte *);
43
44 int l_getmdb(hfsvol *, MDB *, int);
45 int l_putmdb(hfsvol *, const MDB *, int);