blob: 0321d922b7178c020f54c4c62a8f22bec8165f7a [file] [log] [blame]
wdenkafe3d132001-03-29 22:35:59 +00001/*
2 * (C) Copyright 2000
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk3765b3e2013-10-07 13:07:26 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenkafe3d132001-03-29 22:35:59 +00006 */
7
8#ifndef _DISK_PART_DOS_H
9#define _DISK_PART_DOS_H
10
Stephen Warrend27b5f92012-09-21 09:51:00 +000011#define DOS_PART_DISKSIG_OFFSET 0x1b8
wdenkafe3d132001-03-29 22:35:59 +000012#define DOS_PART_TBL_OFFSET 0x1be
13#define DOS_PART_MAGIC_OFFSET 0x1fe
wdenk7205e402003-09-10 22:30:53 +000014#define DOS_PBR_FSTYPE_OFFSET 0x36
Wolfgang Denk66c2d732010-07-19 11:36:57 +020015#define DOS_PBR32_FSTYPE_OFFSET 0x52
wdenk7205e402003-09-10 22:30:53 +000016#define DOS_PBR_MEDIA_TYPE_OFFSET 0x15
17#define DOS_MBR 0
18#define DOS_PBR 1
wdenkafe3d132001-03-29 22:35:59 +000019
20typedef 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 */