Lines Matching +full:cross +full:- +full:win32 +full:- +full:system

15 /*----------------------------------------------------------------------* 
39 *----------------------------------------------------------------------*/
43 * ID: 65 - Fixes for configure.in for cross compilation
45 * 'src/plugins/imb/imbapi.c' - don't cast NULL to int, ever!!!
48 * ID: 65 - Fixes for configure.in for cross compilation
58 * fix lots of little errors that show up with -Werror -Wall
66 * Mods for open-source & various compile cleanup mods
82 #ifdef WIN32
122 /* uncomment out the #define below or use -DLINUX_DEBUG_MAX in the makefile
123 // if you want a dump of the memory to debug mmap system call in
134 // pre-processor directives to separate os-specific code (pai 11/21) */
162 #ifdef WIN32
210 if (respLength < (IPMI10_GET_DEVICE_ID_RESP_LENGTH-1)) in open_imb()
221 } /*end open_imb for Win32 */ in open_imb()
296 if (respLength < (IPMI10_GET_DEVICE_ID_RESP_LENGTH-1)) in open_imb()
322 /*---------------------------------------------------------------------*
324 *---------------------------------------------------------------------*/
330 else rc = -1; in ipmi_open_ia()
338 #ifdef WIN32 in ipmi_close_ia()
347 #ifndef WIN32
508 } * wrReq = (struct WriteReadI2C *) req->req.data; in SendTimedI2cRequest()
517 req->req.rsSa = BMC_SA; in SendTimedI2cRequest()
518 req->req.cmd = WRITE_READ_I2C; in SendTimedI2cRequest()
519 req->req.netFn = APP_NETFN; in SendTimedI2cRequest()
520 req->req.rsLun = BMC_LUN; in SendTimedI2cRequest()
521 req->req.dataLength = reqPtr->dataLength + MIN_WRI2C_SIZE; in SendTimedI2cRequest()
523 wrReq->busType = reqPtr->busType; in SendTimedI2cRequest()
524 wrReq->rsSa = reqPtr->rsSa; in SendTimedI2cRequest()
525 wrReq->count = reqPtr->numberOfBytesToRead; in SendTimedI2cRequest()
527 memcpy( wrReq->data, reqPtr->data, reqPtr->dataLength ); in SendTimedI2cRequest()
529 req->flags = 0; in SendTimedI2cRequest()
530 req->timeOut = timeOut * 1000; /* convert to uSec units */ in SendTimedI2cRequest()
557 *completionCode = resp->cCode; in SendTimedI2cRequest()
558 *respDataLen = respLength - 1; in SendTimedI2cRequest()
561 memcpy( respDataPtr, resp->data, *respDataLen); in SendTimedI2cRequest()
601 req->req.rsSa = BMC_SA; in SendTimedEmpMessageResponse()
603 req->req.cmd = WRITE_EMP_BUFFER; in SendTimedEmpMessageResponse()
605 req->req.cmd = SEND_MESSAGE; in SendTimedEmpMessageResponse()
606 req->req.netFn = APP_NETFN; in SendTimedEmpMessageResponse()
607 req->req.rsLun = 0; in SendTimedEmpMessageResponse()
611 req->req.data[i++] = EMP_CHANNEL; in SendTimedEmpMessageResponse()
613 req->req.data[i++] = ptr->rqSa; in SendTimedEmpMessageResponse()
614 req->req.data[i++] = (((ptr->nfLn & 0xfc) | 0x4) | ((ptr->seqLn) & 0x3)); in SendTimedEmpMessageResponse()
616 req->req.data[i++] = ((~(req->req.data[0] + req->req.data[1])) +1); in SendTimedEmpMessageResponse()
618 req->req.data[i++] = ((~(req->req.data[1] + req->req.data[2])) +1); in SendTimedEmpMessageResponse()
620 req->req.data[i++] = BMC_SA; /*though software is responding, we have to in SendTimedEmpMessageResponse()
624 req->req.data[i++] = ( (ptr->seqLn & 0xfc) | (ptr->nfLn & 0x3) ); in SendTimedEmpMessageResponse()
626 req->req.data[i++] = ptr->cmd; in SendTimedEmpMessageResponse()
628 req->req.data[i] = responseDataBuf[j]; in SendTimedEmpMessageResponse()
630 req->req.data[i] = 0; in SendTimedEmpMessageResponse()
635 for ( ; j < ( i -3); ++j) in SendTimedEmpMessageResponse()
636 req->req.data[i] += req->req.data[j+3]; in SendTimedEmpMessageResponse()
637 req->req.data[i] = ~(req->req.data[i]) +1; in SendTimedEmpMessageResponse()
639 req->req.dataLength = i; in SendTimedEmpMessageResponse()
641 req->flags = 0; in SendTimedEmpMessageResponse()
642 req->timeOut = timeOut * 1000; /* convert to uSec units */ in SendTimedEmpMessageResponse()
697 //Emp - 1,Lan channel one - 6,Lan channel two(primary channel) - 7. */ in SendTimedEmpMessageResponse_Ex()
709 req->req.rsSa = BMC_SA; in SendTimedEmpMessageResponse_Ex()
711 req->req.cmd = WRITE_EMP_BUFFER; in SendTimedEmpMessageResponse_Ex()
713 req->req.cmd = SEND_MESSAGE; in SendTimedEmpMessageResponse_Ex()
714 req->req.netFn = APP_NETFN; in SendTimedEmpMessageResponse_Ex()
715 req->req.rsLun = 0; in SendTimedEmpMessageResponse_Ex()
724 req->req.data[i++] = EMP_CHANNEL; in SendTimedEmpMessageResponse_Ex()
726 req->req.data[i++] = channelNumber; in SendTimedEmpMessageResponse_Ex()
729 req->req.data[i++] = sessionHandle; in SendTimedEmpMessageResponse_Ex()
732 req->req.data[i++] = ptr->rqSa; in SendTimedEmpMessageResponse_Ex()
735 req->req.data[i++] = (((ptr->nfLn & 0xfc) | 0x4) | ((ptr->seqLn) & 0x3)); in SendTimedEmpMessageResponse_Ex()
741 req->req.data[i++] = ((~(req->req.data[0] + req->req.data[1])) +1); in SendTimedEmpMessageResponse_Ex()
745 req->req.data[i++] = ((~(req->req.data[1] + req->req.data[2])) +1); in SendTimedEmpMessageResponse_Ex()
747 req->req.data[i++] = ((~(req->req.data[2]+ req->req.data[3])) +1); in SendTimedEmpMessageResponse_Ex()
752 req->req.data[i++] = BMC_SA; /*though software is responding, we have to in SendTimedEmpMessageResponse_Ex()
757 req->req.data[i++] = ( (ptr->seqLn & 0xfc) | (ptr->nfLn & 0x3) ); in SendTimedEmpMessageResponse_Ex()
760 req->req.data[i++] = ptr->cmd; in SendTimedEmpMessageResponse_Ex()
765 req->req.data[i] = responseDataBuf[j]; in SendTimedEmpMessageResponse_Ex()
767 req->req.data[i] = 0; in SendTimedEmpMessageResponse_Ex()
780 for ( ; j < ( i -3); ++j) in SendTimedEmpMessageResponse_Ex()
781 req->req.data[i] += req->req.data[j+3]; in SendTimedEmpMessageResponse_Ex()
782 req->req.data[i] = ~(req->req.data[i]) +1; in SendTimedEmpMessageResponse_Ex()
784 req->req.dataLength = i; in SendTimedEmpMessageResponse_Ex()
787 req->flags = 0; in SendTimedEmpMessageResponse_Ex()
788 req->timeOut = timeOut * 1000; /* convert to uSec units */ in SendTimedEmpMessageResponse_Ex()
850 req->req.rsSa = BMC_SA; in SendTimedLanMessageResponse()
852 req->req.cmd = WRITE_EMP_BUFFER; in SendTimedLanMessageResponse()
854 req->req.cmd = SEND_MESSAGE; in SendTimedLanMessageResponse()
855 req->req.netFn = APP_NETFN; in SendTimedLanMessageResponse()
859 // Over Lan. - Simont (5/17/00) */ in SendTimedLanMessageResponse()
860 req->req.rsLun = 0; in SendTimedLanMessageResponse()
864 req->req.data[i++] = LAN_CHANNEL; in SendTimedLanMessageResponse()
866 req->req.data[i++] = ptr->rqSa; in SendTimedLanMessageResponse()
867 req->req.data[i++] = (((ptr->nfLn & 0xfc) | 0x4) | ((ptr->seqLn) & 0x3)); in SendTimedLanMessageResponse()
869 req->req.data[i++] = ((~(req->req.data[0] + req->req.data[1])) +1); in SendTimedLanMessageResponse()
871 req->req.data[i++] = ((~(req->req.data[1] + req->req.data[2])) +1); in SendTimedLanMessageResponse()
873 req->req.data[i++] = BMC_SA; /*though software is responding, we have to in SendTimedLanMessageResponse()
877 req->req.data[i++] = ( (ptr->seqLn & 0xfc) | (ptr->nfLn & 0x3) ); in SendTimedLanMessageResponse()
879 req->req.data[i++] = ptr->cmd; in SendTimedLanMessageResponse()
881 req->req.data[i] = responseDataBuf[j]; in SendTimedLanMessageResponse()
883 req->req.data[i] = 0; in SendTimedLanMessageResponse()
888 for ( ; j < ( i -3); ++j) in SendTimedLanMessageResponse()
889 req->req.data[i] += req->req.data[j+3]; in SendTimedLanMessageResponse()
890 req->req.data[i] = ~(req->req.data[i]) +1; in SendTimedLanMessageResponse()
892 req->req.dataLength = i; in SendTimedLanMessageResponse()
894 req->flags = 0; in SendTimedLanMessageResponse()
895 req->timeOut = timeOut * 1000; /* convert to uSec units */ in SendTimedLanMessageResponse()
946 //Emp - 1,Lan channel one - 6,Lan channel two(primary channel) - 7. */ in SendTimedLanMessageResponse_Ex()
958 req->req.rsSa = BMC_SA; in SendTimedLanMessageResponse_Ex()
960 req->req.cmd = WRITE_EMP_BUFFER; in SendTimedLanMessageResponse_Ex()
962 req->req.cmd = SEND_MESSAGE; in SendTimedLanMessageResponse_Ex()
963 req->req.netFn = APP_NETFN; in SendTimedLanMessageResponse_Ex()
967 // Over Lan. - Simont (5/17/00) */ in SendTimedLanMessageResponse_Ex()
968 req->req.rsLun = 0; in SendTimedLanMessageResponse_Ex()
975 req->req.data[i++] = LAN_CHANNEL; in SendTimedLanMessageResponse_Ex()
977 req->req.data[i++] = channelNumber; in SendTimedLanMessageResponse_Ex()
980 req->req.data[i++] = sessionHandle; in SendTimedLanMessageResponse_Ex()
983 req->req.data[i++] = ptr->rqSa; in SendTimedLanMessageResponse_Ex()
986 req->req.data[i++] = (((ptr->nfLn & 0xfc) | 0x4) | ((ptr->seqLn) & 0x3)); in SendTimedLanMessageResponse_Ex()
992 req->req.data[i++] = ((~(req->req.data[0] + req->req.data[1])) +1); in SendTimedLanMessageResponse_Ex()
996 req->req.data[i++] = ((~(req->req.data[1] + req->req.data[2])) +1); in SendTimedLanMessageResponse_Ex()
998 req->req.data[i++] = ((~(req->req.data[2]+ req->req.data[3])) +1); in SendTimedLanMessageResponse_Ex()
1003 req->req.data[i++] = BMC_SA; /*though software is responding, we have to in SendTimedLanMessageResponse_Ex()
1008 req->req.data[i++] = ( (ptr->seqLn & 0xfc) | (ptr->nfLn & 0x3) ); in SendTimedLanMessageResponse_Ex()
1011 req->req.data[i++] = ptr->cmd; in SendTimedLanMessageResponse_Ex()
1016 req->req.data[i] = responseDataBuf[j]; in SendTimedLanMessageResponse_Ex()
1018 req->req.data[i] = 0; in SendTimedLanMessageResponse_Ex()
1031 for ( ; j < ( i -3); ++j) in SendTimedLanMessageResponse_Ex()
1032 req->req.data[i] += req->req.data[j+3]; in SendTimedLanMessageResponse_Ex()
1033 req->req.data[i] = ~(req->req.data[i]) +1; in SendTimedLanMessageResponse_Ex()
1035 req->req.dataLength = i; in SendTimedLanMessageResponse_Ex()
1038 req->flags = 0; in SendTimedLanMessageResponse_Ex()
1039 req->timeOut = timeOut * 1000; /* convert to uSec units */ in SendTimedLanMessageResponse_Ex()
1095 req->req.rsSa = reqPtr->rsSa; in SendTimedImbpRequest()
1096 req->req.cmd = reqPtr->cmdType; in SendTimedImbpRequest()
1097 req->req.netFn = reqPtr->netFn; in SendTimedImbpRequest()
1098 req->req.rsLun = reqPtr->rsLun; in SendTimedImbpRequest()
1099 req->req.dataLength = reqPtr->dataLength; in SendTimedImbpRequest()
1102 DEBUG("cmd=%02x, pdata=%p, datalen=%x\n", req->req.cmd, in SendTimedImbpRequest()
1103 reqPtr->data, reqPtr->dataLength ); in SendTimedImbpRequest()
1105 memcpy( req->req.data, reqPtr->data, reqPtr->dataLength ); in SendTimedImbpRequest()
1107 req->flags = 0; in SendTimedImbpRequest()
1108 req->timeOut = timeOut * 1000; /* convert to uSec units */ in SendTimedImbpRequest()
1112 req->req.rsSa, req->req.cmd, req->req.netFn, req->req.rsLun); in SendTimedImbpRequest()
1130 __FUNCTION__, req->req.rsSa, req->req.cmd, req->req.netFn, in SendTimedImbpRequest()
1131 req->req.rsLun, status, resp->cCode, respLength ); in SendTimedImbpRequest()
1146 *completionCode = resp->cCode; in SendTimedImbpRequest()
1151 *respDataLen = respLength - 1; in SendTimedImbpRequest()
1152 memcpy( respDataPtr, resp->data, *respDataLen); in SendTimedImbpRequest()
1187 req->req.rsSa = reqPtr->rsSa; in SendAsyncImbpRequest()
1188 req->req.cmd = reqPtr->cmdType; in SendAsyncImbpRequest()
1189 req->req.netFn = reqPtr->netFn; in SendAsyncImbpRequest()
1190 req->req.rsLun = reqPtr->rsLun; in SendAsyncImbpRequest()
1191 req->req.dataLength = reqPtr->dataLength; in SendAsyncImbpRequest()
1193 memcpy( req->req.data, reqPtr->data, reqPtr->dataLength ); in SendAsyncImbpRequest()
1195 req->flags = NO_RESPONSE_EXPECTED; in SendAsyncImbpRequest()
1196 req->timeOut = 0; /* no timeouts for async sends */ in SendAsyncImbpRequest()
1222 *seqNo = resp->data[0]; in SendAsyncImbpRequest()
1249 DWORD *msgLen, /* IN - length of buffer, OUT - msg len */ in GetAsyncImbpMessage()
1305 respLength -= MIN_ASYNC_RESP_SIZE; in GetAsyncImbpMessage()
1331 (lun != ((((ImbPacket *)(resp->data))->nfLn) & 0x3 )) in GetAsyncImbpMessage()
1334 *seqNo = resp->thisSeq; in GetAsyncImbpMessage()
1339 memcpy( msgPtr, resp->data, respLength ); in GetAsyncImbpMessage()
1347 if (resp->data[0] != (BYTE)channelNumber) in GetAsyncImbpMessage()
1349 *seqNo = resp->thisSeq; in GetAsyncImbpMessage()
1353 memcpy( msgPtr, &(resp->data[1]), respLength-1 ); in GetAsyncImbpMessage()
1354 *msgLen = respLength-1; in GetAsyncImbpMessage()
1362 *seqNo = resp->thisSeq; in GetAsyncImbpMessage()
1391 DWORD *msgLen, /* IN - length of buffer, OUT - msg len */ in GetAsyncImbpMessage_Ex()
1449 respLength -= MIN_ASYNC_RESP_SIZE; in GetAsyncImbpMessage_Ex()
1475 (lun != ((((ImbPacket *)(resp->data))->nfLn) & 0x3 )) in GetAsyncImbpMessage_Ex()
1478 *seqNo = resp->thisSeq; in GetAsyncImbpMessage_Ex()
1483 memcpy( msgPtr, resp->data, respLength ); in GetAsyncImbpMessage_Ex()
1496 *privilege = (resp->data[0] & 0xf0)>> 4; in GetAsyncImbpMessage_Ex()
1498 if ((resp->data[0] & 0x0f) != (BYTE)channelNumber) in GetAsyncImbpMessage_Ex()
1500 *seqNo = resp->thisSeq; in GetAsyncImbpMessage_Ex()
1508 *sessionHandle = resp->data[1]; in GetAsyncImbpMessage_Ex()
1509 memcpy( msgPtr, &(resp->data[2]), respLength-1 ); in GetAsyncImbpMessage_Ex()
1510 *msgLen = respLength-1; in GetAsyncImbpMessage_Ex()
1518 *seqNo = resp->thisSeq; in GetAsyncImbpMessage_Ex()
1607 DWORD * msgLen, /* IN - length of buffer, OUT - msg len */
1693 respLength -= MIN_ASYNC_RESP_SIZE;
1702 memcpy( msgPtr, resp->data, respLength );
1708 *seqNo = resp->thisSeq;
1786 // Purpose: This function un-registers the calling application
1790 // Context: Used by Upper level agents to un-register
1839 // Context: Called by the System Control Subsystem
1892 // system physical memory
1915 #ifdef WIN32
2003 startpAddress -= diff; in MapPhysicalMemory()
2049 virtualAddress -= diff; in UnmapPhysicalMemory()