/*
* 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 (c) 1996, 1998, 1999 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _MKFS_PCFS_H
#define _MKFS_PCFS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Offset (in bytes) from address of boot sector to where we put
* the backup copy of that sector. (FAT32 only)
*/
#ifndef SUNIXOSBOOT
#endif
/*
* A macro implementing a ceiling function for integer divides.
*/
/*
* Return values for the seek_XXX functions
*/
#define PART_NOT_FOUND 0
/*
* MS-DOS Disk layout:
*
* ---------------------
* | Boot sector |
* |-------------------|
* | Reserved area |
* |-------------------|
* | FAT #1 |
* |-------------------|
* | FAT #2 |
* |-------------------|
* | Root directory |
* |-------------------|
* | |
* | File area |
* |___________________|
*/
#ifdef i386
#pragma pack(1)
#endif
struct _orig_bios_param_blk {
};
#ifdef i386
#pragma pack()
#endif
#ifdef i386
#pragma pack(1)
#endif
struct _bpb32_extensions {
};
#ifdef i386
#pragma pack()
#endif
#ifdef i386
#pragma pack(1)
#endif
struct _bpb_extensions {
};
#ifdef i386
#pragma pack()
#endif
#ifdef i386
#pragma pack(1)
#endif
struct _sun_bpb_extensions {
};
#ifdef i386
#pragma pack()
#endif
/*
* bpb_t is a conglomeration of all the fields a bpb can have. Every
* bpb will have the orig_bios struct, but only FAT32's will have bpb32,
* and only Solaris boot diskettes will have the sunbpb structure.
*/
typedef struct _bios_param_blk {
} bpb_t;
#ifdef i386
#pragma pack(1)
struct _bpb_head {
};
#pragma pack()
#pragma pack(1)
struct _boot_sector {
};
#pragma pack()
#pragma pack(1)
struct _boot_sector32 {
};
#pragma pack()
#else
struct _boot_sector {
};
struct _boot_sector32 {
};
#endif
typedef union _ubso {
#ifdef __cplusplus
}
#endif
#endif /* _MKFS_PCFS_H */