px_var.h (f9721e07) | px_var.h (b65731f1) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 6 unchanged lines hidden (view full) --- 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 6 unchanged lines hidden (view full) --- 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* |
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. | 23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. 25 */ 26 27#ifndef _SYS_PX_VAR_H 28#define _SYS_PX_VAR_H 29 30#pragma ident "%Z%%M% %I% %E% SMI" 31 --- 95 unchanged lines hidden (view full) --- 127 /* Error handling */ 128 px_fault_t px_fault; 129 px_fault_t px_cb_fault; 130 131 /* FMA */ 132 int px_fm_cap; 133 ddi_iblock_cookie_t px_fm_ibc; 134 | 24 * Use is subject to license terms. 25 */ 26 27#ifndef _SYS_PX_VAR_H 28#define _SYS_PX_VAR_H 29 30#pragma ident "%Z%%M% %I% %E% SMI" 31 --- 95 unchanged lines hidden (view full) --- 127 /* Error handling */ 128 px_fault_t px_fault; 129 px_fault_t px_cb_fault; 130 131 /* FMA */ 132 int px_fm_cap; 133 ddi_iblock_cookie_t px_fm_ibc; 134 |
135 uint32_t px_dev_caps; 136 |
|
135 /* Platform specific information */ 136 void *px_plat_p; 137 138 /* Power Management fields */ 139 kmutex_t px_l23ready_lock; /* used in PME_To_ACK interrupt */ 140 kcondvar_t px_l23ready_cv; /* used in PME_TO_ACK timeout */ 141 volatile uint32_t px_lup_pending; 142 int px_pm_flags; --- 4 unchanged lines hidden (view full) --- 147 /* CPR callback id */ 148 callb_id_t px_cprcb_id; 149}; 150 151/* px soft state flag */ 152#define PX_SOFT_STATE_OPEN 0x01 153#define PX_SOFT_STATE_OPEN_EXCL 0x02 154#define PX_SOFT_STATE_CLOSED 0x04 | 137 /* Platform specific information */ 138 void *px_plat_p; 139 140 /* Power Management fields */ 141 kmutex_t px_l23ready_lock; /* used in PME_To_ACK interrupt */ 142 kcondvar_t px_l23ready_cv; /* used in PME_TO_ACK timeout */ 143 volatile uint32_t px_lup_pending; 144 int px_pm_flags; --- 4 unchanged lines hidden (view full) --- 149 /* CPR callback id */ 150 callb_id_t px_cprcb_id; 151}; 152 153/* px soft state flag */ 154#define PX_SOFT_STATE_OPEN 0x01 155#define PX_SOFT_STATE_OPEN_EXCL 0x02 156#define PX_SOFT_STATE_CLOSED 0x04 |
155#define PX_BYPASS_DMA_ALLOWED 0x10 | |
156 | 157 |
158/* px_dev_caps definition */ 159#define PX_BYPASS_DMA_ALLOWED 0x00000001 160#define PX_HOTPLUG_CAPABLE 0x00000002 161 |
|
157/* px_pm_flags definitions used with interrupts and FMA code */ 158#define PX_PMETOACK_RECVD 0x01 /* With PME_To_ACK interrupt */ 159#define PX_PME_TURNOFF_PENDING 0x02 /* With PME_To_ACK interrupt */ 160#define PX_LDN_EXPECTED 0x04 /* With FMA code */ 161 162#define DIP_TO_INST(dip) ddi_get_instance(dip) 163#define INST_TO_STATE(inst) ddi_get_soft_state(px_state_p, inst) 164#define DIP_TO_STATE(dip) INST_TO_STATE(DIP_TO_INST(dip)) --- 41 unchanged lines hidden --- | 162/* px_pm_flags definitions used with interrupts and FMA code */ 163#define PX_PMETOACK_RECVD 0x01 /* With PME_To_ACK interrupt */ 164#define PX_PME_TURNOFF_PENDING 0x02 /* With PME_To_ACK interrupt */ 165#define PX_LDN_EXPECTED 0x04 /* With FMA code */ 166 167#define DIP_TO_INST(dip) ddi_get_instance(dip) 168#define INST_TO_STATE(inst) ddi_get_soft_state(px_state_p, inst) 169#define DIP_TO_STATE(dip) INST_TO_STATE(DIP_TO_INST(dip)) --- 41 unchanged lines hidden --- |