]> git.zerfleddert.de Git - rsbs2/commitdiff
dummy for platform event messages, so rsbs2 doesn't wait for timeout
authorMichael Gernoth <michael@gernoth.net>
Mon, 23 Aug 2010 16:48:27 +0000 (18:48 +0200)
committerMichael Gernoth <michael@gernoth.net>
Mon, 23 Aug 2010 16:48:27 +0000 (18:48 +0200)
bmc/ipmb.c

index 65ddea0b36a7bf4b810e82f82fa0df0e7d9f5f16..023b240a785ab7271f9a387d4a7ee8917028d470 100644 (file)
@@ -119,6 +119,32 @@ void ipmb_cmd(struct ipmb_req *req)
 
                case IPMB_NETFN_SENSOR_EVENT:
                        switch (req->cmd) {
+                               case IPMB_SE_PLATFORM_EVENT:
+                                       /*
+                                        * >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+                                        * Connection Header:
+                                        *         rs Slave Addr.: 0x24
+                                        *         netFn: 0x04, LUN: 0x00
+                                        * Data:
+                                        *         rq Slave Addr.: 0x28
+                                        *         rqSeq: 0x03, rqLUN: 0x00
+                                        *         cmd: 0x02
+                                        *         Data: 0x03 0xc8 0x00 0x6f 0x61 0x8f 0x03
+                                        * <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+                                        * data[0] - EvMRev:                            0x03
+                                        * data[1] - Sensor Type:                       0xc8
+                                        * data[2] - Sensor #:                          0x00
+                                        * data[3] - Event Dir(1)|Event Type(7):        0x6f: 0x0|0x6f (assert, discrete)
+                                        * data[4] - Event Data:                        0x61
+                                        * data[5] - Event Data:                        0x8f
+                                        * data[6] - Event Data:                        0x03
+                                        */
+                                       resp.data = cc_normal;
+                                       resp.datalen = sizeof(cc_normal);
+                                       ipmb_send(&resp);
+                                       break;
+
+                                       
                                default:
 #ifdef DEBUG
                                        printf("Unknown sensor cmd 0x%02x\n", req->cmd);
Impressum, Datenschutz