equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * |
3 * |
4 * This software is available to you under a choice of one of two |
4 * This software is available to you under a choice of one of two |
5 * licenses. You may choose to be licensed under the terms of the GNU |
5 * licenses. You may choose to be licensed under the terms of the GNU |
6 * General Public License (GPL) Version 2, available from the file |
6 * General Public License (GPL) Version 2, available from the file |
7 * COPYING in the main directory of this source tree, or the |
7 * COPYING in the main directory of this source tree, or the |
52 #include <libdevinfo.h> |
52 #include <libdevinfo.h> |
53 #include <sys/utsname.h> |
53 #include <sys/utsname.h> |
54 |
54 |
55 #include <infiniband/verbs.h> |
55 #include <infiniband/verbs.h> |
56 #include <infiniband/arch.h> |
56 #include <infiniband/arch.h> |
|
57 #include <infiniband/umad.h> |
57 |
58 |
58 #include <sys/ib/adapters/hermon/hermon_ioctl.h> |
59 #include <sys/ib/adapters/hermon/hermon_ioctl.h> |
59 |
60 |
60 /* |
61 /* |
61 * Local defines for HCA driver IOCTLs, used while |
62 * Local defines for HCA driver IOCTLs, used while |
85 "hermon", NULL |
86 "hermon", NULL |
86 }; |
87 }; |
87 static di_node_t di_rootnode; |
88 static di_node_t di_rootnode; |
88 char *argv0 = "solaris_set_nodedesc"; |
89 char *argv0 = "solaris_set_nodedesc"; |
89 |
90 |
90 #define MAX_HCAS 32 |
|
91 static struct nodedesc_read_info_s { |
91 static struct nodedesc_read_info_s { |
92 boolean_t info_valid; |
92 boolean_t info_valid; |
93 uint64_t guid; |
93 uint64_t guid; |
94 char nd_string[64]; |
94 char nd_string[64]; |
95 boolean_t ofuv_name_valid; |
95 boolean_t ofuv_name_valid; |