]> git.ipfire.org Git - thirdparty/u-boot.git/blame - disk/part_dos.h
ARM: da850evm_direct_nor_defconfig: Enable DM_SERIAL
[thirdparty/u-boot.git] / disk / part_dos.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
afe3d130
WD
2/*
3 * (C) Copyright 2000
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
afe3d130
WD
5 */
6
7#ifndef _DISK_PART_DOS_H
8#define _DISK_PART_DOS_H
9
d27b5f93 10#define DOS_PART_DISKSIG_OFFSET 0x1b8
afe3d130
WD
11#define DOS_PART_TBL_OFFSET 0x1be
12#define DOS_PART_MAGIC_OFFSET 0x1fe
7205e407 13#define DOS_PBR_FSTYPE_OFFSET 0x36
66c2d73c 14#define DOS_PBR32_FSTYPE_OFFSET 0x52
7205e407
WD
15#define DOS_PBR_MEDIA_TYPE_OFFSET 0x15
16#define DOS_MBR 0
17#define DOS_PBR 1
afe3d130
WD
18
19typedef struct dos_partition {
20 unsigned char boot_ind; /* 0x80 - active */
21 unsigned char head; /* starting head */
22 unsigned char sector; /* starting sector */
23 unsigned char cyl; /* starting cylinder */
24 unsigned char sys_ind; /* What partition type */
25 unsigned char end_head; /* end head */
26 unsigned char end_sector; /* end sector */
27 unsigned char end_cyl; /* end cylinder */
28 unsigned char start4[4]; /* starting sector counting from 0 */
29 unsigned char size4[4]; /* nr of sectors in partition */
30} dos_partition_t;
31
32#endif /* _DISK_PART_DOS_H */