libdlib.h revision c87dd6b73ce417a1c364f2b85436755e8e3ade21
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * CDDL HEADER START
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * The contents of this file are subject to the terms of the
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * Common Development and Distribution License (the "License").
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * You may not use this file except in compliance with the License.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * See the License for the specific language governing permissions
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * and limitations under the License.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * When distributing Covered Code, include this CDDL HEADER in each
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * If applicable, add the following below this CDDL HEADER, with the
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * fields enclosed by brackets "[]" replaced with your own identifying
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * information: Portions Copyright [yyyy] [name of copyright owner]
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * CDDL HEADER END
53089ab7c84db6fb76c16ca50076c147cda11757eschrock * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
53089ab7c84db6fb76c16ca50076c147cda11757eschrockextern "C" {
53089ab7c84db6fb76c16ca50076c147cda11757eschrocktypedef struct dladm_ib_attr_s {
53089ab7c84db6fb76c16ca50076c147cda11757eschrock datalink_id_t dia_physlinkid; /* IB Phys link datalink ID */
53089ab7c84db6fb76c16ca50076c147cda11757eschrock datalink_id_t dia_partlinkid; /* IB Partition datalink ID */
53089ab7c84db6fb76c16ca50076c147cda11757eschrock uint_t dia_portnum; /* IB Phys link's HCA port number */
53089ab7c84db6fb76c16ca50076c147cda11757eschrock int dia_instance; /* IP over IB driver instance number */
53089ab7c84db6fb76c16ca50076c147cda11757eschrock ib_pkey_t *dia_port_pkeys; /* Ptr to the P_Key table */
53089ab7c84db6fb76c16ca50076c147cda11757eschrocktypedef enum {
b515258426fed6c7311fd3f1dea697cfbd4085c6Matthew Ahrensextern dladm_status_t dladm_part_create(dladm_handle_t, datalink_id_t,
53089ab7c84db6fb76c16ca50076c147cda11757eschrock ib_pkey_t, uint32_t, char *, datalink_id_t *, dladm_arg_list_t *);
53089ab7c84db6fb76c16ca50076c147cda11757eschrockextern dladm_status_t dladm_part_delete(dladm_handle_t, datalink_id_t, int);
53089ab7c84db6fb76c16ca50076c147cda11757eschrockextern dladm_status_t dladm_part_up(dladm_handle_t, datalink_id_t, uint32_t);
53089ab7c84db6fb76c16ca50076c147cda11757eschrockextern dladm_status_t dladm_part_info(dladm_handle_t, datalink_id_t,
53089ab7c84db6fb76c16ca50076c147cda11757eschrockextern dladm_status_t dladm_ib_info(dladm_handle_t, datalink_id_t,
53089ab7c84db6fb76c16ca50076c147cda11757eschrock#endif /* _LIBDLIB_H */