X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=include%2Famiga-part.h;fp=include%2Famiga-part.h;h=ad9a139b82795b4579614f37fcc26e9e550364b5;hb=70ca99a5e21616ae261f6c49c8955b516b4219d6;hp=0000000000000000000000000000000000000000;hpb=de490d90c482bd49a218cff13c3c69f81aabc99d;p=yaboot.git diff --git a/include/amiga-part.h b/include/amiga-part.h new file mode 100644 index 0000000..ad9a139 --- /dev/null +++ b/include/amiga-part.h @@ -0,0 +1,42 @@ +/* + * amiga-part.h - Structure of amiga partition table + * + * Copyright (C) 2004 Sven Luther + * + * 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 + * 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#define AMIGA_RDB_MAX 16 +#define AMIGA_ID_RDB 0x5244534B /* 'RDSK' */ +#define AMIGA_ID_PART 0x50415254 /* 'PART' */ +#define AMIGA_END 0xffffffff + +#define AMIGA_ID 0 +#define AMIGA_LENGTH 1 +#define AMIGA_PARTITIONS 7 +#define AMIGA_CYL 16 +#define AMIGA_SECT 17 +#define AMIGA_HEADS 18 +#define AMIGA_RDBLIMIT 33 + + +#define AMIGA_PART_NEXT 4 +#define AMIGA_PART_FLAGS 8 +#define AMIGA_PART_LOWCYL 41 +#define AMIGA_PART_HIGHCYL 42 +#define AMIGA_PART_DOSTYPE 48 + +#define AMIGA_PART_BOOTABLE 0x1 +#define AMIGA_PART_NOMOUNT 0x2