summaryrefslogtreecommitdiff
path: root/disk/part_dos.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-09-21 09:51:00 +0000
committerTom Rini <trini@ti.com>2012-09-25 15:05:45 -0700
commitd27b5f9398aba377ff2185fb4b8170eeca7c3b65 (patch)
treee16e261eb090e9893b26001998973e5ee2d2bc11 /disk/part_dos.h
parent894bfbbfb772de2f8640f91aee322f3cb2577cb7 (diff)
downloadu-boot-imx-d27b5f9398aba377ff2185fb4b8170eeca7c3b65.zip
u-boot-imx-d27b5f9398aba377ff2185fb4b8170eeca7c3b65.tar.gz
u-boot-imx-d27b5f9398aba377ff2185fb4b8170eeca7c3b65.tar.bz2
disk: part_msdos: parse and store partition UUID
The MSDOS/MBR partition table includes a 32-bit unique ID, often referred to as the NT disk signature. When combined with a partition number within the table, this can form a unique ID similar in concept to EFI/GPT's partition UUID. This patch generates UUIDs in the format 0002dd75-01, which matches the format expected by the Linux kernel. Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'disk/part_dos.h')
-rw-r--r--disk/part_dos.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk/part_dos.h b/disk/part_dos.h
index de75542..7b77c1d 100644
--- a/disk/part_dos.h
+++ b/disk/part_dos.h
@@ -24,7 +24,7 @@
#ifndef _DISK_PART_DOS_H
#define _DISK_PART_DOS_H
-
+#define DOS_PART_DISKSIG_OFFSET 0x1b8
#define DOS_PART_TBL_OFFSET 0x1be
#define DOS_PART_MAGIC_OFFSET 0x1fe
#define DOS_PBR_FSTYPE_OFFSET 0x36