2 * GRUB Utilities -- Utilities for GRUB Legacy, GRUB2 and GRUB for DOS
3 * Copyright (C) 2007 Bean (bean123@126.com)
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., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #if defined(__cplusplus) || defined(c_plusplus)
38 unsigned char cur
; // Current partition number
39 unsigned char nxt
; // Next partition number
40 unsigned char dfs
; // File system flag
41 unsigned char pad
; // Padding
42 unsigned long bse
; // Partition start address
43 unsigned long len
; // Partition length
44 unsigned long ebs
; // Base address for the extended partition
47 #define valueat(buf,ofs,type) *((type*)(((char*)&buf)+ofs))
49 extern int mbr_nhd
, mbr_spt
;
50 int go_sect(int,unsigned long);
51 int xd_enum(int,xde_t
*);
52 int get_fstype(unsigned char*);
56 #if defined(__cplusplus) || defined(c_plusplus)
59 #endif /* __UTILS_H */