2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
Add support for Linux/ADFS partition tables. * partmap/acorn.c: New file. * include/grub/acorn_filecore.h: Likewise. * DISTLIST: Added `partmap/acorn.c' and `include/grub/acorn_filecore.h'. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'. (pkgdata_MODULES): Add `acorn.mod'. (acorn_mod_SOURCES): New variable. (acorn_mod_CFLAGS): Likewise. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'. (pkgdata_MODULES): Add `acorn.mod'. (acorn_mod_SOURCES): New variable. (acorn_mod_CFLAGS): Likewise. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'. (pkgdata_MODULES): Add `acorn.mod'. (acorn_mod_SOURCES): New variable. (acorn_mod_CFLAGS): Likewise. (acorn_mod_LDFLAGS): Likewise. * include/types.h (grub_disk_addr_t): New typedef.
This commit is contained in:
parent
6d099807fa
commit
7f67dc13e5
11 changed files with 491 additions and 14 deletions
55
include/grub/acorn_filecore.h
Normal file
55
include/grub/acorn_filecore.h
Normal file
|
@ -0,0 +1,55 @@
|
|||
|
||||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
*
|
||||
* GRUB is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GRUB; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef GRUB_ACORN_FILECORE_HEADER
|
||||
#define GRUB_ACORN_FILECORE_HEADER 1
|
||||
|
||||
#include <grub/types.h>
|
||||
|
||||
struct grub_filecore_disc_record
|
||||
{
|
||||
grub_uint8_t log2secsize;
|
||||
grub_uint8_t secspertrack;
|
||||
grub_uint8_t heads;
|
||||
grub_uint8_t density;
|
||||
grub_uint8_t idlen;
|
||||
grub_uint8_t log2bpmb;
|
||||
grub_uint8_t skew;
|
||||
grub_uint8_t bootoption;
|
||||
/* In bits 0-5, flags in bits 6 and 7. */
|
||||
grub_uint8_t lowsector;
|
||||
grub_uint8_t nzones;
|
||||
grub_uint16_t zone_spare;
|
||||
grub_uint32_t root_address;
|
||||
/* Disc size in bytes. */
|
||||
grub_uint32_t disc_size;
|
||||
grub_uint16_t cycle_id;
|
||||
char disc_name[10];
|
||||
/* Yes, it is 32 bits! */
|
||||
grub_uint32_t disctype;
|
||||
/* Most significant part of the disc size. */
|
||||
grub_uint32_t disc_size2;
|
||||
grub_uint8_t share_size;
|
||||
grub_uint8_t big_flag;
|
||||
grub_uint8_t reserved[18];
|
||||
};
|
||||
|
||||
|
||||
#endif /* ! GRUB_ACORN_FILECORE_HEADER */
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2002, 2005 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -93,6 +93,9 @@ typedef grub_uint32_t grub_size_t;
|
|||
typedef grub_int32_t grub_ssize_t;
|
||||
#endif
|
||||
|
||||
/* FIXME: Will be grub_uint64_t */
|
||||
typedef unsigned long grub_disk_addr_t;
|
||||
|
||||
/* Byte-orders. */
|
||||
#define grub_swap_bytes16(x) \
|
||||
({ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue