X-Git-Url: http://git.etherboot.org/people/sha0/winvblock.git/blobdiff_plain/351f5f0aa0b3b3b08d38d8cb4618cf01ca10d71c..75dbf2f4241e6562c5e7ef218c6987c2ddeafe26:/src/include/grub4dos.h diff --git a/src/include/grub4dos.h b/src/include/grub4dos.h index 11e3c39..2a8a3f1 100644 --- a/src/include/grub4dos.h +++ b/src/include/grub4dos.h @@ -1,5 +1,5 @@ /** - * Copyright (C) 2009, Shao Miller . + * Copyright (C) 2009-2011, Shao Miller . * * This file is part of WinVBlock, derived from WinAoE. * @@ -16,35 +16,33 @@ * You should have received a copy of the GNU General Public License * along with WinVBlock. If not, see . */ -#ifndef _grub4dos_h -# define _grub4dos_h +#ifndef WV_M_GRUB4DOS_H_ +# define WV_M_GRUB4DOS_H_ /** * @file * - * GRUB4DOS disk specifics - * + * GRUB4DOS disk specifics. */ /* From GRUB4DOS 0.4.4's stage2/shared.h */ -winvblock__def_struct ( grub4dos__drive_mapping ) -{ - winvblock__uint8 SourceDrive; - winvblock__uint8 DestDrive; - winvblock__uint8 MaxHead; - winvblock__uint8 MaxSector:6; - winvblock__uint8 RestrictionX:1; - winvblock__uint16 DestMaxCylinder:13; - winvblock__uint16 SourceODD:1; - winvblock__uint16 DestODD:1; - winvblock__uint16 DestLBASupport:1; - winvblock__uint8 DestMaxHead; - winvblock__uint8 DestMaxSector:6; - winvblock__uint8 RestrictionY:1; - winvblock__uint8 InSituOption:1; - winvblock__uint64 SectorStart; - winvblock__uint64 SectorCount; -}; +typedef struct WV_GRUB4DOS_DRIVE_MAPPING { + winvblock__uint8 SourceDrive; + winvblock__uint8 DestDrive; + winvblock__uint8 MaxHead; + winvblock__uint8 MaxSector:6; + winvblock__uint8 RestrictionX:1; + winvblock__uint16 DestMaxCylinder:13; + winvblock__uint16 SourceODD:1; + winvblock__uint16 DestODD:1; + winvblock__uint16 DestLBASupport:1; + winvblock__uint8 DestMaxHead; + winvblock__uint8 DestMaxSector:6; + winvblock__uint8 RestrictionY:1; + winvblock__uint8 InSituOption:1; + winvblock__uint64 SectorStart; + winvblock__uint64 SectorCount; + } WV_S_GRUB4DOS_DRIVE_MAPPING, * WV_SP_GRUB4DOS_DRIVE_MAPPING; extern void ramdisk_grub4dos__find ( void @@ -53,4 +51,4 @@ extern void filedisk_grub4dos__find ( void ); -#endif /* _grub4dos_h */ +#endif /* WV_M_GRUB4DOS_H_ */