/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2005,2007 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB 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, see <http://www.gnu.org/licenses/>.
*/
#include <grub/partition.h>
#include <grub/acorn_filecore.h>
GRUB_MOD_LICENSE ("GPLv3+");
struct grub_acorn_boot_block
{
union
{
struct
{
};
struct linux_part
{
};
static grub_err_t
{
unsigned int checksum = 0;
unsigned int heads;
unsigned int sectors_per_cylinder;
int i;
sizeof (struct grub_acorn_boot_block),
&boot);
if (err)
return err;
goto fail;
for (i = 0; i != 0x1ff; ++i)
goto fail;
sizeof (struct linux_part) * LINUX_MAP_ENTRIES,
m);
fail:
return grub_error (GRUB_ERR_BAD_PART_TABLE,
}
static grub_err_t
const grub_partition_t partition))
{
int i;
if (err)
return err;
for (i = 0; i != LINUX_MAP_ENTRIES; ++i)
{
return GRUB_ERR_NONE;
return grub_errno;
}
return GRUB_ERR_NONE;
}
/* Partition map type. */
{
.name = "acorn",
};
{
}
{
}