/*
* 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 2015 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _HARDWARE_STRUCTS_H
#define _HARDWARE_STRUCTS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/isa_defs.h>
#include <sys/efi_partition.h>
/*
* This file contains definitions of data structures pertaining to disks
* and controllers.
*/
/*
* This structure describes a specific disk. These structures are in a
* linked list because they are malloc'd as disks are found during the
* initial search.
*/
struct disk_info {
/* volume name from label */
/* (no terminating null) */
};
/*
* This structure describes a type (model) of drive. It is malloc'd
* and filled in as the data file is read and when a type 'other' disk
* is selected. The link is used to make a list of all drive types
* supported by a ctlr type.
*/
struct disk_type {
/* change list - scsi */
/*
* Added so that we can print a useful diagnostic if
* inconsistent definitions found in multiple files.
*/
char *vendor;
char *product;
char *revision;
};
struct efi_info {
char *vendor;
char *product;
char *revision;
};
/*
* This structure describes a specific ctlr. These structures are in
* a linked list because they are malloc'd as ctlrs are found during
* the initial search.
*/
struct ctlr_info {
};
/*
* This structure describes a type (model) of ctlr. All supported ctlr
* types are built into the program statically, they cannot be added by
* the user.
*/
struct ctlr_type {
};
/*
* This structure is the operation vector for a controller type. It
* contains pointers to all the functions a controller type can support.
*/
struct ctlr_ops {
/* defect list. - optional */
};
/*
* This structure describes a specific partition layout. It is malloc'd
* when the data file is read and whenever the user creates his own
* partition layout. The link is used to make a list of possible
* partition layouts for each drive type.
*/
struct partition_info {
};
/*
* This structure describes a change to be made to a particular
* SCSI mode sense page, before issuing a mode select on that
* page. This changes are specified in format.dat, and one
* such structure is created for each specification, linked
* into a list, in the order specified.
*/
struct chg_list {
};
/*
* Change list modes
*/
/*
* This is the structure that creates a dynamic list of controllers
* that we know about. This structure will point to the items that
* use to be statically created in the format program but will now allow
* dynamic creation of the list so that we can do 3'rd party generic
* disk/controller support.
*/
struct mctlr_list {
};
#ifdef __cplusplus
}
#endif
#endif /* _HARDWARE_STRUCTS_H */