On 03/26/2012 10:09 PM, Gowda, Srinivas G wrote:
> 
> 
> Thanks,
> G
> srinivas_g_go...@dell.com
> DELL


Rewritten patch using macros.

Thanks,
G
srinivas_g_go...@dell.com
DELL
diff -Naurp 07-ipmitool_opensel_part3_delloem/lib/ipmi_sel.c 
08-ipmitool_opensel_part4_delloem/lib/ipmi_sel.c
--- 07-ipmitool_opensel_part3_delloem/lib/ipmi_sel.c    2012-04-03 
17:51:37.000000000 +0530
+++ 08-ipmitool_opensel_part4_delloem/lib/ipmi_sel.c    2012-04-03 
17:51:37.000000000 +0530
@@ -791,6 +791,92 @@ char * get_dell_evt_desc(struct ipmi_int
                                }
                                }
                        break;
+                       case 0x20:
+                               if((EVT1_OFFSET(data1)== 
0x00)&&(EVT1_OEM2_VALID(data1) && EVT1_OEM3_VALID(data1)))
+                               {
+                                       if((data2 > 0x00)&&(data2<0xFF))
+                                       {
+                                               //Add the code to display 194 
entries.This sensor present only in ORCA
+                                               
+                                       }       
+                                       switch(data3)
+                                       {
+                                               case 0x01:
+                                                       
snprintf(desc,SIZE_OF_DESC,"BIOS TXT Error");
+                                                       break;
+                                               case 0x02:
+                                                       
snprintf(desc,SIZE_OF_DESC,"Processor/FIT TXT");
+                                                       break;
+                                               case 0x03:
+                                                       
snprintf(desc,SIZE_OF_DESC,"BIOS ACM TXT Error");
+                                                       break;
+                                               case 0x04:
+                                                       
snprintf(desc,SIZE_OF_DESC,"SINIT ACM TXT Error");
+                                                       break;
+                                               case 0xff:
+                                                       
snprintf(desc,SIZE_OF_DESC,"Unrecognized TT Error12");
+                                                       break;
+                                               default:
+                                                       break;                  
                        
+                                       }
+                               }
+                       break;  
+                       case 0x23:
+                               
+                               if(data1 == 0xC1)
+                               {
+                                       if(data2 == 0x04)
+                                       {
+                                               
snprintf(desc,SIZE_OF_DESC,"Hard Reset|Interrupt type None,SMS/OS Timer used at 
expiration");
+                                       }
+                               }       
+                               
+                       break;
+                       case 0x2B:
+                               if((EVT1_OFFSET(data1)== 
0x02)&&(EVT1_OEM2_VALID(data1) && EVT1_OEM3_VALID(data1)))
+                               {
+                                       if(data2 == 0x02)
+                                       {
+                                               if(data3 == 0x00)
+                                               {
+                                                       snprintf(desc, 
SIZE_OF_DESC, "between BMC/iDRAC Firmware and other hardware");
+                                               }
+                                               else if(data3 == 0x01)
+                                               {
+                                                       snprintf(desc, 
SIZE_OF_DESC, "between BMC/iDRAC Firmware and CPU");
+                                               }
+                                       }
+                               }
+                       break;  
+                       
+                       case 0xC1:
+                               if(rec->sel_type.standard_type.sensor_num == 
0x25)
+                               {
+                                       if(EVT1_OFFSET(data1) == 0x01)
+                                       {
+                                               snprintf(desc, SIZE_OF_DESC, 
"Failed to program Virtual Mac Address");
+                                               if((data1 & 0x80)&&(data1 & 
0x20))
+                                               {
+                                                       snprintf(tmpdesc, 
SIZE_OF_DESC, "PCI %.2x:%.2x.%x",
+                                                       data3 &0x7f, (data2 >> 
3) & 0x1F, 
+                                                       data2 & 0x7);
+                                               }
+                                       }
+                                       else if(EVT1_OFFSET(data1) == 0x02)
+                                       {
+                                               snprintf(desc, SIZE_OF_DESC, 
"Device option ROM failed to support link tuning or flex address");
+                                               if((data1 & 0x80)&&(data1 & 
0x20))
+                                               {
+                                                       //Add Mezzanine code 
here.DELLOEM SEL displayed unknown event
+                                               }
+                                       }
+                                       else if(EVT1_OFFSET(data1) == 0x03)
+                                       {
+                                               snprintf(desc, SIZE_OF_DESC, 
"Failed to get link tuning or flex address data from BMC/iDRAC");
+                                       }
+                                       strcat(desc,tmpdesc);
+                               }
+                       break;  
                        
                        default:
                        break;                          
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to