Lines Matching +full:- +full:chn +full:- +full:disabled

22  * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
77 lprintf(LOG_NOTICE, " properties - get PICMG properties"); in ipmi_picmg_help()
78 lprintf(LOG_NOTICE, " frucontrol - FRU control"); in ipmi_picmg_help()
79 lprintf(LOG_NOTICE, " addrinfo - get address information"); in ipmi_picmg_help()
80 lprintf(LOG_NOTICE, " activate - activate a FRU"); in ipmi_picmg_help()
81 lprintf(LOG_NOTICE, " deactivate - deactivate a FRU"); in ipmi_picmg_help()
82 lprintf(LOG_NOTICE, " policy get - get the FRU activation policy"); in ipmi_picmg_help()
83 lprintf(LOG_NOTICE, " policy set - set the FRU activation policy"); in ipmi_picmg_help()
84 lprintf(LOG_NOTICE, " portstate get - get port state"); in ipmi_picmg_help()
86 " portstate getdenied - get all denied[disabled] port description"); in ipmi_picmg_help()
88 " portstate getgranted - get all granted[enabled] port description"); in ipmi_picmg_help()
90 " portstate getall - get all port state description"); in ipmi_picmg_help()
91 lprintf(LOG_NOTICE, " portstate set - set port state"); in ipmi_picmg_help()
92 lprintf(LOG_NOTICE, " amcportstate get - get port state"); in ipmi_picmg_help()
93 lprintf(LOG_NOTICE, " amcportstate set - set port state"); in ipmi_picmg_help()
94 lprintf(LOG_NOTICE, " led prop - get led properties"); in ipmi_picmg_help()
95 lprintf(LOG_NOTICE, " led cap - get led color capabilities"); in ipmi_picmg_help()
96 lprintf(LOG_NOTICE, " led get - get led state"); in ipmi_picmg_help()
97 lprintf(LOG_NOTICE, " led set - set led state"); in ipmi_picmg_help()
98 lprintf(LOG_NOTICE, " power get - get power level info"); in ipmi_picmg_help()
99 lprintf(LOG_NOTICE, " power set - set power level"); in ipmi_picmg_help()
100 lprintf(LOG_NOTICE, " clk get - get clk state"); in ipmi_picmg_help()
102 " clk getdenied - get all(up to 16) denied[disabled] clock descriptions"); in ipmi_picmg_help()
104 " clk getgranted - get all(up to 16) granted[enabled] clock descriptions"); in ipmi_picmg_help()
106 " clk getall - get all(up to 16) clock descriptions"); in ipmi_picmg_help()
107 lprintf(LOG_NOTICE, " clk set - set clk state"); in ipmi_picmg_help()
109 " busres summary - display brief bused resource status info"); in ipmi_picmg_help()
133 /* is_amc_channel - wrapper to convert user input into integer
145 return (-1); in is_amc_channel()
151 return (-1); in is_amc_channel()
153 /* is_amc_dev - wrapper to convert user input into integer.
165 return (-1); in is_amc_dev()
172 return (-1); in is_amc_dev()
174 /* is_amc_intf - wrapper to convert user input into integer.
186 return (-1); in is_amc_intf()
193 return (-1); in is_amc_intf()
195 /* is_amc_port - wrapper to convert user input into integer.
207 return (-1); in is_amc_port()
213 return (-1); in is_amc_port()
215 /* is_clk_acc - wrapper to convert user input into integer.
227 return (-1); in is_clk_acc()
234 return (-1); in is_clk_acc()
236 /* is_clk_family - wrapper to convert user input into integer.
248 return (-1); in is_clk_family()
255 return (-1); in is_clk_family()
257 /* is_clk_freq - wrapper to convert user input into integer.
270 return (-1); in is_clk_freq()
277 return (-1); in is_clk_freq()
279 /* is_clk_id - wrapper to convert user input into integer.
292 return (-1); in is_clk_id()
298 return (-1); in is_clk_id()
300 /* is_clk_index - wrapper to convert user input into integer.
312 return (-1); in is_clk_index()
318 return (-1); in is_clk_index()
320 /* is_clk_resid - wrapper to convert user input into integer.
332 return (-1); in is_clk_resid()
335 && *clk_resid_ptr > (-1)) { in is_clk_resid()
340 return (-1); in is_clk_resid()
342 /* is_clk_setting - wrapper to convert user input into integer.
344 * x [7:4] - reserved
345 * x [3] - state - 0/1
346 * x [2] - direction - 0/1
347 * x [1:0] - PLL ctrl - 00/01/10/11[Reserved]
358 return (-1); in is_clk_setting()
363 /* FIXME - validate bits 4-7 are 0 ? */ in is_clk_setting()
365 return (-1); in is_clk_setting()
367 /* is_enable - wrapper to convert user input into integer.
379 return (-1); in is_enable()
386 return (-1); in is_enable()
388 /* is_enable - wrapper to convert user input into integer.
390 * - valid <1..6>, <0xE..0xF>
391 * - reserved [0, 7]
392 * - undefined <8..D>
403 return (-1); in is_led_color()
410 return (-1); in is_led_color()
418 return (-1); in is_led_color()
420 /* is_led_duration - wrapper to convert user input into integer.
432 return (-1); in is_led_duration()
439 return (-1); in is_led_duration()
441 /* is_led_function - wrapper to convert user input into integer.
443 * - 0x00 - off override
444 * - <0x01..0xFA> - blinking override
445 * - 0xFB - lamp test state
446 * - 0xFC - state restored to local ctrl state
447 * - <0xFD..0xFE> - reserved
448 * - 0xFF - on override
459 return (-1); in is_led_function()
466 return (-1); in is_led_function()
468 /* is_led_id - wrapper to convert user input into integer.
480 return (-1); in is_led_id()
486 return (-1); in is_led_id()
488 /* is_link_group - wrapper to convert user input into integer.
500 return (-1); in is_link_group()
506 return (-1); in is_link_group()
508 /* is_link_type - wrapper to convert user input into integer.
520 return (-1); in is_link_type()
526 return (-1); in is_link_type()
528 /* is_link_type_ext - wrapper to convert user input into integer.
540 return (-1); in is_link_type_ext()
547 return (-1); in is_link_type_ext()
569 return (-1); in ipmi_picmg_getaddr()
573 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_getaddr()
576 return (-1); in ipmi_picmg_getaddr()
577 } else if (rsp->ccode) { in ipmi_picmg_getaddr()
579 rsp->ccode); in ipmi_picmg_getaddr()
580 return (-1); in ipmi_picmg_getaddr()
583 printf("Hardware Address : 0x%02x\n", rsp->data[1]); in ipmi_picmg_getaddr()
584 printf("IPMB-0 Address : 0x%02x\n", rsp->data[2]); in ipmi_picmg_getaddr()
585 printf("FRU ID : 0x%02x\n", rsp->data[4]); in ipmi_picmg_getaddr()
586 printf("Site ID : 0x%02x\n", rsp->data[5]); in ipmi_picmg_getaddr()
589 switch (rsp->data[6]) { in ipmi_picmg_getaddr()
613 printf(" -> IPMB-L Address: 0x%02x\n", amcAddrMap[rsp->data[5]].ipmbLAddr); in ipmi_picmg_getaddr()
622 if (rsp->data[6] >= 0xc0 && rsp->data[6] <= 0xcf) { in ipmi_picmg_getaddr()
647 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_properties()
648 if (!rsp || rsp->ccode) { in ipmi_picmg_properties()
650 return -1; in ipmi_picmg_properties()
655 printf("PICMG identifier : 0x%02x\n", rsp->data[0]); in ipmi_picmg_properties()
656 printf("PICMG Ext. Version : %i.%i\n", rsp->data[1]&0x0f, in ipmi_picmg_properties()
657 (rsp->data[1]&0xf0) >> 4); in ipmi_picmg_properties()
658 printf("Max FRU Device ID : 0x%02x\n", rsp->data[2]); in ipmi_picmg_properties()
659 printf("FRU Device ID : 0x%02x\n", rsp->data[3]); in ipmi_picmg_properties()
664 PicmgExtMajorVersion = rsp->data[1]&0x0f; in ipmi_picmg_properties()
700 return (-1); in ipmi_picmg_fru_activation()
704 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_fru_activation()
706 if (!rsp || rsp->ccode) { in ipmi_picmg_fru_activation()
708 return -1; in ipmi_picmg_fru_activation()
710 if (rsp->data[0] != 0x00) { in ipmi_picmg_fru_activation()
734 return (-1); in ipmi_picmg_fru_activation_policy_get()
737 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_fru_activation_policy_get()
741 return -1; in ipmi_picmg_fru_activation_policy_get()
743 if (rsp->ccode) { in ipmi_picmg_fru_activation_policy_get()
745 rsp->ccode); in ipmi_picmg_fru_activation_policy_get()
746 return -1; in ipmi_picmg_fru_activation_policy_get()
749 printf(" %s\n", ((rsp->data[1] & 0x01) == 0x01) ? in ipmi_picmg_fru_activation_policy_get()
751 printf(" %s\n", ((rsp->data[1] & 0x02) == 0x02) ? in ipmi_picmg_fru_activation_policy_get()
773 return (-1); in ipmi_picmg_fru_activation_policy_set()
779 return (-1); in ipmi_picmg_fru_activation_policy_set()
786 return (-1); in ipmi_picmg_fru_activation_policy_set()
791 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_fru_activation_policy_set()
795 return -1; in ipmi_picmg_fru_activation_policy_set()
798 if (rsp->ccode) { in ipmi_picmg_fru_activation_policy_set()
800 rsp->ccode); in ipmi_picmg_fru_activation_policy_set()
801 return -1; in ipmi_picmg_fru_activation_policy_set()
831 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_portstate_get()
835 return -1; in ipmi_picmg_portstate_get()
838 if (rsp->ccode) { in ipmi_picmg_portstate_get()
841 rsp->ccode); in ipmi_picmg_portstate_get()
843 return -1; in ipmi_picmg_portstate_get()
846 if (rsp->data_len >= 6) { in ipmi_picmg_portstate_get()
850 if( rsp->data_len > (1+ (index*5))){ in ipmi_picmg_portstate_get()
851 d = (struct fru_picmgext_link_desc *) &(rsp->data[1 + (index*5)]); in ipmi_picmg_portstate_get()
862 rsp->data[5 + (index*5) ] == 0x01 in ipmi_picmg_portstate_get()
868 rsp->data[5 + (index*5) ] == 0x00 in ipmi_picmg_portstate_get()
872 printf(" Link Grouping ID: 0x%02x\n", d->grouping); in ipmi_picmg_portstate_get()
873 printf(" Link Type Extension: 0x%02x\n", d->ext); in ipmi_picmg_portstate_get()
874 printf(" Link Type: 0x%02x ", d->type); in ipmi_picmg_portstate_get()
875 if (d->type == 0 || d->type == 0xff) in ipmi_picmg_portstate_get()
877 printf("Reserved %d\n",d->type); in ipmi_picmg_portstate_get()
879 else if (d->type >= 0x06 && d->type <= 0xef) in ipmi_picmg_portstate_get()
883 else if (d->type >= 0xf0 && d->type <= 0xfe) in ipmi_picmg_portstate_get()
889 switch (d->type) in ipmi_picmg_portstate_get()
912 printf(" Port Flag: 0x%02x\n", d->desig_port); in ipmi_picmg_portstate_get()
913 printf(" Interface: 0x%02x - ", d->desig_if); in ipmi_picmg_portstate_get()
914 switch (d->desig_if) in ipmi_picmg_portstate_get()
932 printf(" Channel Number: 0x%02x\n", d->desig_channel); in ipmi_picmg_portstate_get()
934 ( rsp->data[5 +(index*5)] == 0x01) ?"enabled":"disabled"); in ipmi_picmg_portstate_get()
973 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_portstate_set()
977 return -1; in ipmi_picmg_portstate_set()
980 if (rsp->ccode) { in ipmi_picmg_portstate_set()
982 rsp->ccode); in ipmi_picmg_portstate_set()
983 return -1; in ipmi_picmg_portstate_set()
1013 if(device == -1 || PicmgCardType != PICMG_CARD_TYPE_ATCA ){ in ipmi_picmg_amc_portstate_get()
1024 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_amc_portstate_get()
1028 return -1; in ipmi_picmg_amc_portstate_get()
1031 if (rsp->ccode) { in ipmi_picmg_amc_portstate_get()
1034 rsp->ccode); in ipmi_picmg_amc_portstate_get()
1036 return -1; in ipmi_picmg_amc_portstate_get()
1039 if (rsp->data_len >= 5) { in ipmi_picmg_amc_portstate_get()
1045 if( rsp->data_len > (1+ (index*4))){ in ipmi_picmg_amc_portstate_get()
1051 d = (struct fru_picmgext_amc_link_info *)&(rsp->data[1 + (index*4)]); in ipmi_picmg_amc_portstate_get()
1056 port = d->linkInfo[0] & 0x0F; in ipmi_picmg_amc_portstate_get()
1057 type = ((d->linkInfo[0] & 0xF0) >> 4 )|(d->linkInfo[1] & 0x0F ); in ipmi_picmg_amc_portstate_get()
1058 ext = ((d->linkInfo[1] & 0xF0) >> 4 ); in ipmi_picmg_amc_portstate_get()
1059 grouping = d->linkInfo[2]; in ipmi_picmg_amc_portstate_get()
1062 enabled = rsp->data[4 + (index*4) ]; in ipmi_picmg_amc_portstate_get()
1083 if(device == -1 || PicmgCardType != PICMG_CARD_TYPE_ATCA ){ in ipmi_picmg_amc_portstate_get()
1119 ( enabled == 0x01 )?"enabled":"disabled"); in ipmi_picmg_amc_portstate_get()
1160 /* device id - only for carrier needed */ in ipmi_picmg_amc_portstate_set()
1166 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_amc_portstate_set()
1170 return -1; in ipmi_picmg_amc_portstate_set()
1173 if (rsp->ccode) { in ipmi_picmg_amc_portstate_set()
1175 rsp->ccode); in ipmi_picmg_amc_portstate_set()
1176 return -1; in ipmi_picmg_amc_portstate_set()
1200 return (-1); in ipmi_picmg_get_led_properties()
1203 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_get_led_properties()
1207 return -1; in ipmi_picmg_get_led_properties()
1210 if (rsp->ccode) { in ipmi_picmg_get_led_properties()
1212 rsp->ccode); in ipmi_picmg_get_led_properties()
1213 return -1; in ipmi_picmg_get_led_properties()
1216 printf("General Status LED Properties: 0x%2x\n", rsp->data[1] ); in ipmi_picmg_get_led_properties()
1217 printf("App. Specific LED Count: 0x%2x\n", rsp->data[2] ); in ipmi_picmg_get_led_properties()
1241 return (-1); in ipmi_picmg_get_led_capabilities()
1244 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_get_led_capabilities()
1248 return -1; in ipmi_picmg_get_led_capabilities()
1251 if (rsp->ccode) { in ipmi_picmg_get_led_capabilities()
1253 rsp->ccode); in ipmi_picmg_get_led_capabilities()
1254 return -1; in ipmi_picmg_get_led_capabilities()
1259 if ( rsp->data[1] & (0x01 << i) ) { in ipmi_picmg_get_led_capabilities()
1266 printf(" LOCAL control: %s\n", led_color_str[ rsp->data[2] ] ); in ipmi_picmg_get_led_capabilities()
1267 printf(" OVERRIDE state: %s\n", led_color_str[ rsp->data[3] ] ); in ipmi_picmg_get_led_capabilities()
1290 return (-1); in ipmi_picmg_get_led_state()
1293 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_get_led_state()
1297 return -1; in ipmi_picmg_get_led_state()
1300 if (rsp->ccode) { in ipmi_picmg_get_led_state()
1301 lprintf(LOG_ERR, "LED get state failed with CC code 0x%02x", rsp->ccode); in ipmi_picmg_get_led_state()
1302 return -1; in ipmi_picmg_get_led_state()
1305 printf("LED states: %x ", rsp->data[1] ); in ipmi_picmg_get_led_state()
1306 if (rsp->data[1] == 0x1) in ipmi_picmg_get_led_state()
1308 else if (rsp->data[1] == 0x2) in ipmi_picmg_get_led_state()
1310 else if (rsp->data[1] == 0x4) in ipmi_picmg_get_led_state()
1315 printf(" Local Control function: %x ", rsp->data[2] ); in ipmi_picmg_get_led_state()
1316 if (rsp->data[2] == 0x0) in ipmi_picmg_get_led_state()
1318 else if (rsp->data[2] == 0xff) in ipmi_picmg_get_led_state()
1323 printf(" Local Control On-Duration: %x\n", rsp->data[3] ); in ipmi_picmg_get_led_state()
1324 printf(" Local Control Color: %x [%s]\n", rsp->data[4], led_color_str[ rsp->data[4] ]); in ipmi_picmg_get_led_state()
1327 if (rsp->data[1] == 0x02) { in ipmi_picmg_get_led_state()
1328 printf(" Override function: %x ", rsp->data[5] ); in ipmi_picmg_get_led_state()
1329 if (rsp->data[2] == 0x0) in ipmi_picmg_get_led_state()
1331 else if (rsp->data[2] == 0xff) in ipmi_picmg_get_led_state()
1336 printf(" Override On-Duration: %x\n", rsp->data[6] ); in ipmi_picmg_get_led_state()
1337 printf(" Override Color: %x [%s]\n", rsp->data[7], led_color_str[ rsp->data[7] ]); in ipmi_picmg_get_led_state()
1339 }else if (rsp->data[1] == 0x06) { in ipmi_picmg_get_led_state()
1340 printf(" Override function: %x ", rsp->data[5] ); in ipmi_picmg_get_led_state()
1341 if (rsp->data[2] == 0x0) in ipmi_picmg_get_led_state()
1343 else if (rsp->data[2] == 0xff) in ipmi_picmg_get_led_state()
1347 printf(" Override On-Duration: %x\n", rsp->data[6] ); in ipmi_picmg_get_led_state()
1348 printf(" Override Color: %x [%s]\n", rsp->data[7], led_color_str[ rsp->data[7] ]); in ipmi_picmg_get_led_state()
1349 printf(" Lamp test duration: %x\n", rsp->data[8] ); in ipmi_picmg_get_led_state()
1376 return (-1); in ipmi_picmg_set_led_state()
1379 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_set_led_state()
1383 return -1; in ipmi_picmg_set_led_state()
1386 if (rsp->ccode) { in ipmi_picmg_set_led_state()
1387 lprintf(LOG_ERR, "LED set state failed with CC code 0x%02x", rsp->ccode); in ipmi_picmg_set_led_state()
1388 return -1; in ipmi_picmg_set_led_state()
1413 return (-1); in ipmi_picmg_get_power_level()
1415 /* PICMG Power Type - <0..3> */ in ipmi_picmg_get_power_level()
1419 return (-1); in ipmi_picmg_get_power_level()
1422 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_get_power_level()
1426 return -1; in ipmi_picmg_get_power_level()
1429 if (rsp->ccode) { in ipmi_picmg_get_power_level()
1430 lprintf(LOG_ERR, "Power level get failed with CC code 0x%02x", rsp->ccode); in ipmi_picmg_get_power_level()
1431 return -1; in ipmi_picmg_get_power_level()
1434 printf("Dynamic Power Configuration: %s\n", (rsp->data[1]&0x80)==0x80?"enabled":"disabled" ); in ipmi_picmg_get_power_level()
1435 printf("Actual Power Level: %i\n", (rsp->data[1] & 0xf)); in ipmi_picmg_get_power_level()
1436 printf("Delay to stable Power: %i\n", rsp->data[2]); in ipmi_picmg_get_power_level()
1437 printf("Power Multiplier: %i\n", rsp->data[3]); in ipmi_picmg_get_power_level()
1440 for ( i = 1; i+3 < rsp->data_len ; i++ ) { in ipmi_picmg_get_power_level()
1441 printf(" Power Draw %i: %i\n", i, (rsp->data[i+3]) * rsp->data[3] / 10); in ipmi_picmg_get_power_level()
1463 return (-1); in ipmi_picmg_set_power_level()
1465 /* PICMG Power Level - <0x00..0x14>, [0xFF] */ in ipmi_picmg_set_power_level()
1471 return (-1); in ipmi_picmg_set_power_level()
1473 /* PICMG Present-to-desired - <0..1> */ in ipmi_picmg_set_power_level()
1476 "Given PICMG Present-to-desired '%s' is invalid.", in ipmi_picmg_set_power_level()
1478 return (-1); in ipmi_picmg_set_power_level()
1481 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_set_power_level()
1485 return -1; in ipmi_picmg_set_power_level()
1488 if (rsp->ccode) { in ipmi_picmg_set_power_level()
1489 lprintf(LOG_ERR, "Power level set failed with CC code 0x%02x", rsp->ccode); in ipmi_picmg_set_power_level()
1490 return -1; in ipmi_picmg_set_power_level()
1524 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_bused_resource()
1528 return -1; in ipmi_picmg_bused_resource()
1531 if (rsp->ccode) { in ipmi_picmg_bused_resource()
1532 printf("bused resource control: returned CC code 0x%02x\n", rsp->ccode); in ipmi_picmg_bused_resource()
1533 return -1; in ipmi_picmg_bused_resource()
1535 printf("Resource 0x%02x '%-26s' : 0x%02x [%s] \n" , in ipmi_picmg_bused_resource()
1537 rsp->data[1], oemval2str(cmd,rsp->data[1], in ipmi_picmg_bused_resource()
1567 return (-1); in ipmi_picmg_fru_control()
1574 return (-1); in ipmi_picmg_fru_control()
1580 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_fru_control()
1584 return -1; in ipmi_picmg_fru_control()
1587 if (rsp->ccode) { in ipmi_picmg_fru_control()
1588 lprintf(LOG_ERR, "frucontrol failed with CC code 0x%02x", rsp->ccode); in ipmi_picmg_fru_control()
1589 return -1; in ipmi_picmg_fru_control()
1621 if(clk_res == -1 || PicmgCardType != PICMG_CARD_TYPE_ATCA ){ in ipmi_picmg_clk_get()
1628 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_clk_get()
1632 return -1; in ipmi_picmg_clk_get()
1635 if (rsp->ccode && (mode == PICMG_EKEY_MODE_QUERY) ) { in ipmi_picmg_clk_get()
1636 lprintf(LOG_ERR, "Clk get failed with CC code 0x%02x", rsp->ccode); in ipmi_picmg_clk_get()
1637 return -1; in ipmi_picmg_clk_get()
1640 if (rsp->ccode == 0 ) { in ipmi_picmg_clk_get()
1641 enabled = (rsp->data[1]&0x8)!=0; in ipmi_picmg_clk_get()
1642 direction = (rsp->data[1]&0x4)!=0; in ipmi_picmg_clk_get()
1675 printf("CLK setting : 0x%02x\n", rsp->data[1]); in ipmi_picmg_clk_get()
1676 printf(" - state: %s\n", (enabled)?"enabled":"disabled"); in ipmi_picmg_clk_get()
1677 printf(" - direction: %s\n", (direction)?"Source":"Receiver"); in ipmi_picmg_clk_get()
1678 printf(" - PLL ctrl: 0x%x\n", rsp->data[1]&0x3); in ipmi_picmg_clk_get()
1682 freq = ( rsp->data[5] << 0 in ipmi_picmg_clk_get()
1683 | rsp->data[6] << 8 in ipmi_picmg_clk_get()
1684 | rsp->data[7] << 16 in ipmi_picmg_clk_get()
1685 | rsp->data[8] << 24 ); in ipmi_picmg_clk_get()
1686 printf(" - Index: %3d\n", rsp->data[2]); in ipmi_picmg_clk_get()
1687 printf(" - Family: %3d [ %s ] \n", rsp->data[3], in ipmi_picmg_clk_get()
1688 val2str( rsp->data[3], picmg_clk_family_vals)); in ipmi_picmg_clk_get()
1689 printf(" - AccLVL: %3d [ %s ] \n", rsp->data[4], in ipmi_picmg_clk_get()
1690 oemval2str( rsp->data[3], rsp->data[4], in ipmi_picmg_clk_get()
1693 printf(" - Freq: %ld\n", freq); in ipmi_picmg_clk_get()
1723 return (-1); in ipmi_picmg_clk_set()
1738 return (-1); in ipmi_picmg_clk_set()
1744 return -1; in ipmi_picmg_clk_set()
1749 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_clk_set()
1752 return -1; in ipmi_picmg_clk_set()
1755 if (rsp->ccode) { in ipmi_picmg_clk_set()
1756 lprintf(LOG_ERR, "Clk set failed with CC code 0x%02x", rsp->ccode); in ipmi_picmg_clk_set()
1757 return -1; in ipmi_picmg_clk_set()
1784 rc = ipmi_picmg_getaddr(intf, argc-1, &argv[1]); in ipmi_picmg_main()
1798 rc = ipmi_picmg_fru_control(intf, argc-1, &(argv[1])); in ipmi_picmg_main()
1801 lprintf(LOG_NOTICE, "usage: frucontrol <FRU-ID> <OPTION>"); in ipmi_picmg_main()
1803 lprintf(LOG_NOTICE, " 0 - Cold Reset"); in ipmi_picmg_main()
1804 lprintf(LOG_NOTICE, " 1 - Warm Reset"); in ipmi_picmg_main()
1805 lprintf(LOG_NOTICE, " 2 - Graceful Reboot"); in ipmi_picmg_main()
1806 lprintf(LOG_NOTICE, " 3 - Issue Diagnostic Interrupt"); in ipmi_picmg_main()
1807 lprintf(LOG_NOTICE, " 4 - Quiesce [AMC only]"); in ipmi_picmg_main()
1808 lprintf(LOG_NOTICE, " 5-255 - Reserved"); in ipmi_picmg_main()
1810 return -1; in ipmi_picmg_main()
1818 rc = ipmi_picmg_fru_activation(intf, argc-1, &(argv[1]), PICMG_FRU_ACTIVATE); in ipmi_picmg_main()
1822 return -1; in ipmi_picmg_main()
1829 rc = ipmi_picmg_fru_activation(intf, argc-1, &(argv[1]), PICMG_FRU_DEACTIVATE); in ipmi_picmg_main()
1832 return -1; in ipmi_picmg_main()
1841 rc = ipmi_picmg_fru_activation_policy_get(intf, argc-1, &(argv[2])); in ipmi_picmg_main()
1847 rc = ipmi_picmg_fru_activation_policy_set(intf, argc-1, &(argv[2])); in ipmi_picmg_main()
1861 return -1; in ipmi_picmg_main()
1865 return -1; in ipmi_picmg_main()
1912 return (-1); in ipmi_picmg_main()
1921 lprintf(LOG_NOTICE, "<intf> <chn>|getall|getgranted|getdenied"); in ipmi_picmg_main()
1940 return (-1); in ipmi_picmg_main()
1956 "<intf> <chn> <port> <type> <ext> <group> <1|0>"); in ipmi_picmg_main()
1957 return -1; in ipmi_picmg_main()
1963 return -1; in ipmi_picmg_main()
2016 return (-1); in ipmi_picmg_main()
2020 return (-1); in ipmi_picmg_main()
2023 device = -1; in ipmi_picmg_main()
2032 lprintf(LOG_NOTICE, "<chn> <device>|getall|getgranted|getdenied"); in ipmi_picmg_main()
2037 int32_t device = -1; in ipmi_picmg_main()
2050 return (-1); in ipmi_picmg_main()
2054 return (-1); in ipmi_picmg_main()
2071 "<chn> <portflags> <type> <ext> <group> <1|0> [<device>]"); in ipmi_picmg_main()
2072 return -1; in ipmi_picmg_main()
2078 return -1; in ipmi_picmg_main()
2086 rc = ipmi_picmg_get_led_properties(intf, argc-1, &(argv[2])); in ipmi_picmg_main()
2089 lprintf(LOG_NOTICE, "led prop <FRU-ID>"); in ipmi_picmg_main()
2094 rc = ipmi_picmg_get_led_capabilities(intf, argc-1, &(argv[2])); in ipmi_picmg_main()
2097 lprintf(LOG_NOTICE, "led cap <FRU-ID> <LED-ID>"); in ipmi_picmg_main()
2102 rc = ipmi_picmg_get_led_state(intf, argc-1, &(argv[2])); in ipmi_picmg_main()
2105 lprintf(LOG_NOTICE, "led get <FRU-ID> <LED-ID>"); in ipmi_picmg_main()
2110 rc = ipmi_picmg_set_led_state(intf, argc-1, &(argv[2])); in ipmi_picmg_main()
2114 "led set <FRU-ID> <LED-ID> <function> <duration> <color>"); in ipmi_picmg_main()
2115 lprintf(LOG_NOTICE, " <FRU-ID>"); in ipmi_picmg_main()
2116 lprintf(LOG_NOTICE, " <LED-ID> 0: Blue LED"); in ipmi_picmg_main()
2120 lprintf(LOG_NOTICE, " 0x04-0xFE: OEM defined"); in ipmi_picmg_main()
2125 " 1 - 250: LED blinking override (off duration)"); in ipmi_picmg_main()
2131 " <duration> 1 - 127: LED Lamp Test / on duration"); in ipmi_picmg_main()
2154 rc = ipmi_picmg_get_power_level(intf, argc-1, &(argv[2])); in ipmi_picmg_main()
2157 lprintf(LOG_NOTICE, "power get <FRU-ID> <type>"); in ipmi_picmg_main()
2164 return -1; in ipmi_picmg_main()
2169 rc = ipmi_picmg_set_power_level(intf, argc-1, &(argv[2])); in ipmi_picmg_main()
2172 lprintf(LOG_NOTICE, "power set <FRU-ID> <level> <present-desired>"); in ipmi_picmg_main()
2174 lprintf(LOG_NOTICE, " 0x1-0x14 : Power level"); in ipmi_picmg_main()
2177 "\n <present-desired> 0: do not change present levels"); in ipmi_picmg_main()
2181 return -1; in ipmi_picmg_main()
2186 return -1; in ipmi_picmg_main()
2191 return -1; in ipmi_picmg_main()
2197 int8_t clk_res = -1; in ipmi_picmg_main()
2215 if( verbose ) { printf("Getting disabled clocks\n") ;} in ipmi_picmg_main()
2234 return (-1); in ipmi_picmg_main()
2238 return (-1); in ipmi_picmg_main()
2248 "<CLK-ID> [<DEV-ID>] |getall|getgranted|getdenied"); in ipmi_picmg_main()
2249 return -1; in ipmi_picmg_main()
2254 rc = ipmi_picmg_clk_set(intf, argc-1, &(argv[2])); in ipmi_picmg_main()
2258 "clk set <CLK-ID> <index> <setting> <family> <acc-lvl> <freq> [<DEV-ID>]"); in ipmi_picmg_main()
2260 return -1; in ipmi_picmg_main()
2265 return -1; in ipmi_picmg_main()
2270 return -1; in ipmi_picmg_main()
2277 return -1; in ipmi_picmg_main()
2289 if (!intf->picmg_avail) { in ipmi_picmg_ipmb_address()
2300 rsp = intf->sendrecv(intf, &req); in ipmi_picmg_ipmb_address()
2301 if (rsp && !rsp->ccode) { in ipmi_picmg_ipmb_address()
2302 return rsp->data[2]; in ipmi_picmg_ipmb_address()
2306 rsp->ccode, val2str(rsp->ccode, completion_code_vals)); in ipmi_picmg_ipmb_address()
2339 intf->my_addr, intf->transit_addr, intf->target_addr); in picmg_discover()
2340 rsp = intf->sendrecv(intf, &req); in picmg_discover()
2343 } else if (rsp->ccode != 0) { in picmg_discover()
2345 rsp->ccode); in picmg_discover()
2346 } else if (rsp->data_len < 4) { in picmg_discover()
2348 rsp->data_len); in picmg_discover()
2349 } else if (rsp->data[0] != 0) { in picmg_discover()
2351 rsp->data[0]); in picmg_discover()
2352 } else if ((rsp->data[1] & 0x0F) != PICMG_ATCA_MAJOR_VERSION in picmg_discover()
2353 && (rsp->data[1] & 0x0F) != PICMG_AMC_MAJOR_VERSION) { in picmg_discover()
2355 (rsp->data[1] & 0x0F), (rsp->data[1] >> 4)); in picmg_discover()
2359 (rsp->data[1] & 0x0f), (rsp->data[1] >> 4)); in picmg_discover()