i2o_bs.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 (c) 1998-1999 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _I2O_BS_H
#define _I2O_BS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_SUNOS_VTOC_16)
#define UNITSHF 6
#elif defined(_SUNOS_VTOC_8)
#define UNITSHF 3
#define PART_MASK 7
#else
#endif
#define V_INVALID 0x80
#define FDISK_OFFSET MAX_SLICES
#if defined(_SUNOS_VTOC_16)
#define MAX_SLICES 16
#define VTOC_OFFSET 1
#elif defined(_SUNOS_VTOC_8)
#define VTOC_OFFSET 0
#define MAX_SLICES 8
#else
#endif
#define USLICE_WHOLE 2
#define FPART_WHOLE 0
#define I2O_BSA_NAME "i2o_bs"
#define ISREMOVABLE(p) \
#define ISWRITEPROTECT(p) \
typedef struct dsk_label {
int uidx;
int fdiskpresent;
int vtocread;
int geomread;
} dsk_label_t;
struct bsa_unit {
int au_cyl;
int au_acyl;
int au_hd;
int au_sec;
long au_blksize;
short au_bytes_per_block;
int au_type;
long au_devicecapability;
};
typedef struct bsa_data {
int flags; /* misc state info */
int tid; /* local targer id ( From LCT) */
int instance; /* instantiation of ourselves */
int open_flag; /* open flag used for rem media */
unsigned long state; /* State of removable media */
} bsa_data_t;
typedef struct bsa_context {
int deterror; /* detail error */
int retval; /* return value from reply */
int replyflag; /* reply flag */
int rwreplyflag; /* reply flag */
typedef struct i2o_common_message {
typedef struct i2o_reassign_addr_message {
#ifdef __cplusplus
}
#endif
#endif /* _I2O_BS_H */