]>
Commit | Line | Data |
---|---|---|
afe3d130 WD |
1 | /* |
2 | * (C) Copyright 2000 | |
3 | * Wolfgang Denk, DENX Software Engineering, [email protected]. | |
4 | * | |
3765b3e7 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
afe3d130 WD |
6 | */ |
7 | ||
8 | #ifndef _DISK_PART_DOS_H | |
9 | #define _DISK_PART_DOS_H | |
10 | ||
d27b5f93 | 11 | #define DOS_PART_DISKSIG_OFFSET 0x1b8 |
afe3d130 WD |
12 | #define DOS_PART_TBL_OFFSET 0x1be |
13 | #define DOS_PART_MAGIC_OFFSET 0x1fe | |
7205e407 | 14 | #define DOS_PBR_FSTYPE_OFFSET 0x36 |
66c2d73c | 15 | #define DOS_PBR32_FSTYPE_OFFSET 0x52 |
7205e407 WD |
16 | #define DOS_PBR_MEDIA_TYPE_OFFSET 0x15 |
17 | #define DOS_MBR 0 | |
18 | #define DOS_PBR 1 | |
afe3d130 WD |
19 | |
20 | typedef struct dos_partition { | |
21 | unsigned char boot_ind; /* 0x80 - active */ | |
22 | unsigned char head; /* starting head */ | |
23 | unsigned char sector; /* starting sector */ | |
24 | unsigned char cyl; /* starting cylinder */ | |
25 | unsigned char sys_ind; /* What partition type */ | |
26 | unsigned char end_head; /* end head */ | |
27 | unsigned char end_sector; /* end sector */ | |
28 | unsigned char end_cyl; /* end cylinder */ | |
29 | unsigned char start4[4]; /* starting sector counting from 0 */ | |
30 | unsigned char size4[4]; /* nr of sectors in partition */ | |
31 | } dos_partition_t; | |
32 | ||
33 | #endif /* _DISK_PART_DOS_H */ |