diff options
author | Shao Miller <shao.miller@yrdsb.edu.on.ca> | 2010-06-28 03:34:55 -0400 |
---|---|---|
committer | Shao Miller <shao.miller@yrdsb.edu.on.ca> | 2010-07-10 01:03:06 -0400 |
commit | f1753d9c93e7237ccd8fe587fa3aa28290f11b4d (patch) | |
tree | 9366241dfa0c675dce386cb0fd1097c2e8939189 /com32/include | |
parent | c7d09b7143ec4e051033cfc19ab13257e0142655 (diff) | |
download | syslinux-f1753d9c93e7237ccd8fe587fa3aa28290f11b4d.tar.gz |
chain.c32, libcom32: Move guid_le_walk_map
Moving portions of chain.c32 into libcom32.
There might be a better header for guid_le_walk_map to belong to.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Diffstat (limited to 'com32/include')
-rw-r--r-- | com32/include/syslinux/disk.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/com32/include/syslinux/disk.h b/com32/include/syslinux/disk.h index 221b6a9b..af9bf7bf 100644 --- a/com32/include/syslinux/disk.h +++ b/com32/include/syslinux/disk.h @@ -102,6 +102,19 @@ struct guid { uint64_t data4; } __attribute__ ((packed)); +/** + * This walk-map effectively reverses the little-endian + * portions of a GPT disk/partition GUID for a string representation. + * There might be a better header for this... + */ +static const char guid_le_walk_map[] = { + 3, -1, -1, -1, 0, + 5, -1, 0, + 3, -1, 0, + 2, 1, 0, + 1, 1, 1, 1, 1, 1 +}; + extern int disk_int13_retry(const com32sys_t * inreg, com32sys_t * outreg); extern int disk_get_params(int disk, struct disk_info *const diskinfo); extern void *disk_read_sectors(const struct disk_info *const diskinfo, |