px_msiq.h revision 09b1eac246a4e627fcbd1ce5bf8005746cbe45ea
/*
* 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.
*/
#ifndef _SYS_PX_MSIQ_H
#define _SYS_PX_MSIQ_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* MSIQ data structure.
*/
struct px_msiq {
/* Fields accessed under interrupt context */
};
#define MSIQ_STATE_FREE 0x1
#define MSIQ_STATE_INUSE 0x2
/*
* MSIQ soft state structure.
*/
typedef struct px_msiq_state {
/* Available MSIQs */
/* MSIQs specific reserved for PCIe messages */
void *msiq_buf_p; /* Pointer to MSIQs array */
/*
* px_msi_eq_to_devino
*/
typedef struct px_msi_eq_to_devino {
int msi_eq_no;
int no_msi_eqs;
int devino_no;
/*
* Default MSIQ Configurations
*/
#define PX_DEFAULT_MSIQ_CNT 36
#define PX_DEFAULT_MSIQ_REC_CNT 128
#define PX_DEFAULT_MSIQ_1ST_MSIQ_ID 0
#define PX_DEFAULT_MSIQ_1ST_DEVINO 24
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PX_MSIQ_H */