fdisk.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988 AT&T */
/* All Rights Reserved */
#ifndef _SYS_DKTP_FDISK_H
#define _SYS_DKTP_FDISK_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* fdisk.h
* This file defines the structure of physical disk sector 0 for use on
* AT386 systems. The format of this sector is constrained by the ROM
* BIOS and MS-DOS conventions.
* Note that this block does not define the partitions used by the unix
* driver. The unix partitions are obtained from the VTOC.
*/
/*
* structure to hold the fdisk partition table
*/
struct ipart {
unsigned char bootid; /* bootable or not */
unsigned char beghead; /* beginning head, sector, cylinder */
unsigned char begsect; /* begcyl is a 10-bit number. High 2 bits */
unsigned char begcyl; /* are in begsect. */
unsigned char systid; /* OS type */
unsigned char endhead; /* ending head, sector, cylinder */
unsigned char endsect; /* endcyl is a 10-bit number. High 2 bits */
unsigned char endcyl; /* are in endsect. */
int relsect; /* first sector relative to start of disk */
int numsect; /* number of sectors in partition */
};
/*
* Values for bootid.
*/
#define NOTACTIVE 0
#define ACTIVE 128
/*
* Values for systid.
*/
/* raw partition. ID was 0 but conflicted */
/* with DOS 3.3 fdisk */
/*
* structure to hold master boot block in physical sector 0 of the disk.
* Note that partitions stuff can't be directly included in the structure
* because of lameo '386 compiler alignment design.
*/
struct mboot { /* master boot block */
};
#ifdef __cplusplus
}
#endif
#endif /* _SYS_DKTP_FDISK_H */