structs_api.h revision cee0fb94c0d4227de0a00efc162fb2739844b641
/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _STRUCTS_API_
#define _STRUCTS_API_
#include "db_structs.h"
#include "defs.h"
#define QU_MAX_DRV_STATUS 165
#define MAX_VTD_MAP 490
typedef struct {
unsigned short packet_id;
unsigned char message_options;
unsigned long extended_options;
unsigned char reserved[16];
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef enum {
AUDIT = 0,
} QU_COMMANDS;
typedef enum {
CURRENT = 0,
typedef struct {
} REQ_SUMMARY;
typedef struct {
unsigned short acs_count;
typedef struct {
unsigned short lsm_count;
typedef struct {
unsigned short cap_count;
typedef struct {
unsigned short drive_count;
typedef struct {
unsigned short drg_count;
typedef struct {
unsigned short volume_count;
typedef struct {
unsigned short request_count;
typedef struct {
unsigned short port_count;
typedef struct {
unsigned short pool_count;
typedef struct {
unsigned short pool_count;
typedef struct {
unsigned short pool_count;
typedef struct {
unsigned short lmu_count;
typedef struct {
unsigned short spn_count;
typedef struct {
typedef struct {
unsigned short max_use;
unsigned short current_use;
typedef struct {
unsigned short cap_size;
typedef struct {
typedef struct {
typedef struct {
unsigned short drive_addr;
typedef struct {
typedef struct {
unsigned short drive_count;
typedef struct {
typedef struct {
typedef struct {
typedef struct {
union {
} location;
typedef struct {
typedef struct {
unsigned long volume_count;
unsigned long low_water_mark;
unsigned long high_water_mark;
unsigned long pool_attributes;
typedef struct {
typedef struct {
unsigned short drive_count;
typedef struct {
int max_cleaning_usage;
unsigned short compat_count;
typedef struct {
unsigned short compat_count;
typedef struct {
typedef struct {
unsigned short acs_count;
typedef struct {
unsigned short lsm_count;
typedef struct {
unsigned short cap_count;
typedef struct {
unsigned short volume_count;
typedef struct {
unsigned short drive_count;
typedef struct {
unsigned short vir_drv_map_count;
typedef struct {
unsigned short mount_status_count;
typedef struct {
unsigned short volume_count;
typedef struct {
unsigned short port_count;
typedef struct {
unsigned short request_count;
typedef struct {
unsigned short volume_count;
typedef struct {
unsigned short pool_count;
typedef struct {
unsigned short spn_status_count;
typedef struct {
unsigned short msc_status_count;
typedef struct {
unsigned short media_type_count;
unsigned short drive_type_count;
typedef struct {
unsigned long lock_duration;
unsigned int locks_pending;
typedef struct {
unsigned long lock_duration;
unsigned int locks_pending;
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
int compat_level;
typedef struct {
int prt_count;
typedef struct {
unsigned short lmu_count;
typedef struct {
#define MAX_XML_DATA_SIZE (MAX_MESSAGE_SIZE- \
( \
(sizeof (IPC_HEADER) +4) \
+ sizeof (MESSAGE_HEADER) \
+ (sizeof (STATUS) \
+ sizeof (TYPE) \
+ sizeof (IDENTIFIER)) \
+ sizeof (TYPE) \
+ sizeof (unsigned short)))
typedef struct {
unsigned short length;
char xml_data[MAX_XML_DATA_SIZE];
#endif /* _STRUCTS_API_ */