/*
* 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 2010 QLogic Corporation */
/*
*/
#ifndef _QL_XIOCTL_H
#define _QL_XIOCTL_H
/*
* ISP2xxx Solaris Fibre Channel Adapter (FCA) driver header file.
*
* ***********************************************************************
* * **
* * NOTICE **
* * COPYRIGHT (C) 1996-2010 QLOGIC CORPORATION **
* * ALL RIGHTS RESERVED **
* * **
* ***********************************************************************
*
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <exioct.h>
/* 0xFFFFFA Mgmt Server */
/* Returned Mailbox registers. */
typedef struct ql_mbx_ret {
} ql_mbx_ret_t;
/*
* Name type defines for use with ql_scsi_passthru() and
* elsewhere when searching for name matches.
* NOTE that these defines are used both as flags and values.
*/
/*
* CT information unit basic preamble.
*/
typedef struct ql_ct_iu_preamble {
/*
* Link Status Counts structure
*
* Counts are BIG ENDIAN
*/
typedef struct ql_link_stats {
/*
* Report LUN definitions.
*/
typedef struct ql_rpt_hdr {
} ql_rpt_hdr_t;
typedef struct ql_rpt_lun {
struct {
uint8_t b : 6;
} msb;
} ql_rpt_lun_t;
typedef struct ql_rpt_lun_lst {
/*
* Flash definitions.
*/
typedef struct ql_flash_info {
/*
* Flash Description Table
*/
typedef struct flash_desc {
} flash_desc_t;
/* flash manufacturer id's */
/* flash id defines */
/* flash type defines */
typedef struct ql_ledstate {
/*
* ledstate flags definitions
*/
/*
* ledstate BeaconState definitions
*/
#define BEACON_OFF 0
/*
* ledstate LEDflags definitions
*/
#define LED_ALL_OFF 0
/*
* 24xx ledstate LEDflags definitions
*/
typedef struct {
} pci_header_t;
typedef struct {
} pci_data_t;
#define PCI_CODE_X86PC 0
typedef struct ql_fcache {
} ql_fcache_t;
/* fcache types */
#define FTYPE_UNKNOWN 0
/*
* Flash Layout Table definitions.
*/
typedef struct ql_flash_layout_pointer {
} ql_flt_ptr_t;
typedef struct ql_flash_layout_header {
} ql_flt_hdr_t;
typedef struct ql_flash_layout_region {
typedef struct ql_fp_cfg_hdr {
typedef struct ql_fp_cfg {
} ql_fp_cfg_t;
#define FT_NIC 0
typedef struct ql_fp_cfg_map {
/*
* Per instance XIOCTL context defintions.
*/
typedef struct ql_xioctl {
/* Driver context */
/* Adapter I/O statistics */
/* SNIA stat counters */
/* SNIA intermediate (less than 1mb) counters */
/* Adapter LED state */
/* Async event context */
void *aen_tracking_queue;
} ql_xioctl_t;
/*
* ql adapter flag defintions.
*/
/*
* Global Data in ql_xioctl.c source file.
*/
/*
* Global Function Prototypes in ql_xioctl.c source file.
*/
int ql_setup_fcache(ql_adapter_state_t *);
void ql_blink_led(ql_adapter_state_t *);
void ql_fcache_rel(ql_fcache_t *);
#ifdef __cplusplus
}
#endif
#endif /* _QL_XIOCTL_H */