summaryrefslogtreecommitdiff
path: root/disk/part_dos.h
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2020-12-23 13:55:11 +0100
committerTom Rini <trini@konsulko.com>2021-01-15 14:38:00 -0500
commit80bd05f27fb4e26e765cfb5bde43166a48c218e1 (patch)
tree95bb5c470b1f502ac61981e1c199a0763a0ae76e /disk/part_dos.h
parent92f1c89d0a90ee39fce53ca6054223bf6b422cfb (diff)
downloadu-boot-80bd05f27fb4e26e765cfb5bde43166a48c218e1.tar.gz
u-boot-80bd05f27fb4e26e765cfb5bde43166a48c218e1.tar.bz2
u-boot-80bd05f27fb4e26e765cfb5bde43166a48c218e1.zip
disk: dos: add some defines for the hardcoded numbers
Add some handy defines for some hardcoded magic numbers related to extended partition handling. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'disk/part_dos.h')
-rw-r--r--disk/part_dos.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/disk/part_dos.h b/disk/part_dos.h
index 434b021ae8..dd909a9317 100644
--- a/disk/part_dos.h
+++ b/disk/part_dos.h
@@ -15,6 +15,9 @@
#define DOS_PBR_MEDIA_TYPE_OFFSET 0x15
#define DOS_MBR 0
#define DOS_PBR 1
+#define DOS_PART_TYPE_EXTENDED 0x05
+#define DOS_PART_TYPE_EXTENDED_LBA 0x0F
+#define DOS_PART_TYPE_EXTENDED_LINUX 0x85
typedef struct dos_partition {
unsigned char boot_ind; /* 0x80 - active */