blob: 434b021ae81ca3512fa63713fa4a8710193a6d57 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenkafe3d132001-03-29 22:35:59 +00002/*
3 * (C) Copyright 2000
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
wdenkafe3d132001-03-29 22:35:59 +00005 */
6
7#ifndef _DISK_PART_DOS_H
8#define _DISK_PART_DOS_H
9
Stephen Warrenb287a872012-09-21 09:51:00 +000010#define DOS_PART_DISKSIG_OFFSET 0x1b8
wdenkafe3d132001-03-29 22:35:59 +000011#define DOS_PART_TBL_OFFSET 0x1be
12#define DOS_PART_MAGIC_OFFSET 0x1fe
wdenk2c9b05d2003-09-10 22:30:53 +000013#define DOS_PBR_FSTYPE_OFFSET 0x36
Wolfgang Denk7b2290c2010-07-19 11:36:57 +020014#define DOS_PBR32_FSTYPE_OFFSET 0x52
wdenk2c9b05d2003-09-10 22:30:53 +000015#define DOS_PBR_MEDIA_TYPE_OFFSET 0x15
16#define DOS_MBR 0
17#define DOS_PBR 1
wdenkafe3d132001-03-29 22:35:59 +000018
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 */