4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
28 #include <sys/types.h>
29 #include <sys/ib/ib_types.h>
30 #include <sys/dld_ioc.h>
36 #define IBD_CREATE_IBPART IBPARTIOC(1)
37 #define IBD_DELETE_IBPART IBPARTIOC(2)
38 #define IBD_INFO_IBPART IBPARTIOC(3)
40 #define IBD_INFO_CMD_IBPART 1
41 #define IBD_INFO_CMD_IBPORT 2
42 #define IBD_INFO_CMD_PKEYTBLSZ 3
44 typedef enum ibd_part_err_e
{
45 IBD_INVALID_PORT_INST
= 1,
51 IBD_INVALID_PKEY_TBL_SIZE
54 * NOTE: If you change this structure make sure that alignments are correct
55 * for the proper operation of the ioctl in both the 32 and 64 bit modes.
57 typedef struct ibd_ioctl_s
{
59 datalink_id_t ioc_linkid
;
62 ib_guid_t ioc_hcaguid
;
63 ib_guid_t ioc_portguid
;
69 * NOTE: If you change this structure make sure that alignments are correct
70 * for the proper operation of the ioctl in both the 32 and 64 bit modes.
72 typedef struct ibpart_ioctl_s
{
74 datalink_id_t ioc_partid
;
75 boolean_t ioc_force_create
;
81 typedef struct ibpart_ioctl_s ibd_create_ioctl_t
;
82 typedef struct ibpart_ioctl_s ibd_delete_ioctl_t
;
84 typedef struct ibport_ioctl_s
{
86 uint_t ioc_pkey_tbl_sz
;
91 typedef struct ibport_ioctl32_s
{
93 uint_t ioc_pkey_tbl_sz
;
102 #endif /* _SYS_IBPART_H */