/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2009 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
#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.
*/
/*
* the MAX values are the maximum usable values for BIOS chs values
* The MAX_CYL value of 1022 is the maximum usable value
* the value of 1023 is a fence value,
* indicating no CHS geometry exists for the corresponding LBA value.
* HEAD range [ 0 .. MAX_HEAD ], so number of heads is (MAX_HEAD + 1)
* SECT range [ 1 .. MAX_SECT ], so number of sectors is (MAX_SECT)
*/
/*
* BOOTSZ was reduced from 446 to 440 bytes to NOT overwrite the Windows
* Vista DISKID. Otherwise Vista won't boot from Solaris GRUB in a dual-boot
* setup.
* The actual size of mboot code is 425 bytes while that of GRUB stage1 is
* 423 bytes. So this changes does not harm them.
*/
/*
* structure to hold the fdisk partition table
*/
struct ipart {
};
/*
* Values for bootid.
*/
#define NOTACTIVE 0
/*
* 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.
* Alignment issues also force us to have 2 16bit entities for a single
* 32bit win_volserno. It is not used anywhere anyway.
*/
};
/* Byte offset of the start of the partition table within the sector */
/* Maximum number of valid partitions assumed as 32 */
#else
#define MAX_EXT_PARTS 0
#endif /* if defined(__i386) || defined(__amd64) */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_DKTP_FDISK_H */