From: Michael Gernoth Date: Mon, 23 Aug 2010 16:48:27 +0000 (+0200) Subject: dummy for platform event messages, so rsbs2 doesn't wait for timeout X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/commitdiff_plain/4f3bb1187e9576afbc90f99d904633ca02d023e2?ds=inline dummy for platform event messages, so rsbs2 doesn't wait for timeout --- diff --git a/bmc/ipmb.c b/bmc/ipmb.c index 65ddea0..023b240 100644 --- a/bmc/ipmb.c +++ b/bmc/ipmb.c @@ -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);