hpctrl.h (7c478bd9) hpctrl.h (70025d76)
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 2003 Sun Microsystems, Inc. All rights reserved.
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27#ifndef _SYS_HOTPLUG_HPCTRL_H
28#define _SYS_HOTPLUG_HPCTRL_H
29
30#pragma ident "%Z%%M% %I% %E% SMI"
31

--- 75 unchanged lines hidden (view full) ---

107#define pci_slot_capabilities slot.pci.slot_capabilities
108
109#define sbd_slot_num slot.sbd.slot_num
110
111/* slot_type definitions */
112#define HPC_SLOT_TYPE_PCI 0x1 /* PCI bus slot */
113#define HPC_SLOT_TYPE_CPCI 0x2 /* Compact PCI bus slot */
114#define HPC_SLOT_TYPE_SBD 0x3 /* System bus slot */
24 * Use is subject to license terms.
25 */
26
27#ifndef _SYS_HOTPLUG_HPCTRL_H
28#define _SYS_HOTPLUG_HPCTRL_H
29
30#pragma ident "%Z%%M% %I% %E% SMI"
31

--- 75 unchanged lines hidden (view full) ---

107#define pci_slot_capabilities slot.pci.slot_capabilities
108
109#define sbd_slot_num slot.sbd.slot_num
110
111/* slot_type definitions */
112#define HPC_SLOT_TYPE_PCI 0x1 /* PCI bus slot */
113#define HPC_SLOT_TYPE_CPCI 0x2 /* Compact PCI bus slot */
114#define HPC_SLOT_TYPE_SBD 0x3 /* System bus slot */
115#define HPC_SLOT_TYPE_PCIE 0x4 /* PCI Express slot */
115
116/* bit definitions in slot_capabilities field for PCI or cPCI bus slots */
117#define HPC_SLOT_64BITS 0x0001 /* slot is a 64bit slot */
118#define HPC_SLOT_TEST 0x0002 /* testing capability on the slot */
119
120/* slot_flags definitions */
121#define HPC_SLOT_NO_AUTO_ENABLE 0x1 /* No auto-enable on registration */
122#define HPC_SLOT_CREATE_DEVLINK 0x2 /* create device link under /dev/cfg */

--- 67 unchanged lines hidden (view full) ---

190 */
191typedef enum { HPC_SLOT_EMPTY, HPC_SLOT_DISCONNECTED,
192 HPC_SLOT_CONNECTED, HPC_SLOT_UNKNOWN } hpc_slot_state_t;
193
194/*
195 * type definition for board type.
196 *
197 * HPC_BOARD_UNKNOWN Board is either not present or unknown.
116
117/* bit definitions in slot_capabilities field for PCI or cPCI bus slots */
118#define HPC_SLOT_64BITS 0x0001 /* slot is a 64bit slot */
119#define HPC_SLOT_TEST 0x0002 /* testing capability on the slot */
120
121/* slot_flags definitions */
122#define HPC_SLOT_NO_AUTO_ENABLE 0x1 /* No auto-enable on registration */
123#define HPC_SLOT_CREATE_DEVLINK 0x2 /* create device link under /dev/cfg */

--- 67 unchanged lines hidden (view full) ---

191 */
192typedef enum { HPC_SLOT_EMPTY, HPC_SLOT_DISCONNECTED,
193 HPC_SLOT_CONNECTED, HPC_SLOT_UNKNOWN } hpc_slot_state_t;
194
195/*
196 * type definition for board type.
197 *
198 * HPC_BOARD_UNKNOWN Board is either not present or unknown.
198 * HPC_BOARD_PCI_HOTPLUG PCI bus adapter.
199 * HPC_BOARD_PCI_HOTPLUG PCI or PCIe adapter.
199 * HPC_BOARD_CPCI_NON_HS Non Hot Swap cPCI board.
200 * HPC_BOARD_CPCI_BASIC_HS Basic Hot Swap cPCI board.
201 * HPC_BOARD_CPCI_FULL_HS Full Hot Swap cPCI board.
202 * HPC_BOARD_CPCI_HS Indicates if HSC driver can not determine
203 * the type of Hot Swap board.
204 */
205typedef enum { HPC_BOARD_UNKNOWN, HPC_BOARD_PCI_HOTPLUG,
206 HPC_BOARD_CPCI_NON_HS, HPC_BOARD_CPCI_BASIC_HS,

--- 30 unchanged lines hidden (view full) ---

237#define HPC_EVENT_SLOT_UNCONFIGURE 0x00000400
238#define HPC_EVENT_SLOT_BLUE_LED_ON 0x00000800
239#define HPC_EVENT_SLOT_BLUE_LED_OFF 0x00001000
240#define HPC_EVENT_CLEAR_ENUM 0x00002000
241#define HPC_EVENT_PROCESS_ENUM 0x00004000
242#define HPC_EVENT_ENABLE_ENUM 0x00008000
243#define HPC_EVENT_DISABLE_ENUM 0x00010000
244#define HPC_EVENT_BUS_ENUM HPC_EVENT_SLOT_ENUM
200 * HPC_BOARD_CPCI_NON_HS Non Hot Swap cPCI board.
201 * HPC_BOARD_CPCI_BASIC_HS Basic Hot Swap cPCI board.
202 * HPC_BOARD_CPCI_FULL_HS Full Hot Swap cPCI board.
203 * HPC_BOARD_CPCI_HS Indicates if HSC driver can not determine
204 * the type of Hot Swap board.
205 */
206typedef enum { HPC_BOARD_UNKNOWN, HPC_BOARD_PCI_HOTPLUG,
207 HPC_BOARD_CPCI_NON_HS, HPC_BOARD_CPCI_BASIC_HS,

--- 30 unchanged lines hidden (view full) ---

238#define HPC_EVENT_SLOT_UNCONFIGURE 0x00000400
239#define HPC_EVENT_SLOT_BLUE_LED_ON 0x00000800
240#define HPC_EVENT_SLOT_BLUE_LED_OFF 0x00001000
241#define HPC_EVENT_CLEAR_ENUM 0x00002000
242#define HPC_EVENT_PROCESS_ENUM 0x00004000
243#define HPC_EVENT_ENABLE_ENUM 0x00008000
244#define HPC_EVENT_DISABLE_ENUM 0x00010000
245#define HPC_EVENT_BUS_ENUM HPC_EVENT_SLOT_ENUM
246#define HPC_EVENT_SLOT_ATTN 0x00020000
247#define HPC_EVENT_SLOT_POWER_FAULT 0x00040000
245
246/*
247 * return values for errors from HPS framework interfaces.
248 */
249#define HPC_SUCCESS 0x0
250#define HPC_ERR_INVALID 0x1 /* invalid arguments */
251#define HPC_ERR_SLOT_NOTREGISTERED 0x2 /* slot is not registered */
252#define HPC_ERR_SLOT_DUPLICATE 0x3 /* slot is already registered */

--- 81 unchanged lines hidden ---
248
249/*
250 * return values for errors from HPS framework interfaces.
251 */
252#define HPC_SUCCESS 0x0
253#define HPC_ERR_INVALID 0x1 /* invalid arguments */
254#define HPC_ERR_SLOT_NOTREGISTERED 0x2 /* slot is not registered */
255#define HPC_ERR_SLOT_DUPLICATE 0x3 /* slot is already registered */

--- 81 unchanged lines hidden ---