Lines Matching refs:pCurKey

254  * @param   pCurKey         The current key structure (input / output).
260 typedef DECLCALLBACK(uint8_t) DEVSMCKEYGETTER(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd,
268 * @param pCurKey The current key structure (input / output).
273 typedef DECLCALLBACK(uint8_t) DEVSMCKEYPUTTER(PDEVSMC pThis, PCDEVSMCCURKEY pCurKey, uint8_t bCmd,
507 static uint8_t scmKeyGetOSKs(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
513 memcpy(pCurKey->Value.ab, pszSrc, 32);
519 static uint8_t scmKeyGetKeyCount(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
523 pCurKey->Value.u32 = RT_H2BE_U32(cKeys);
529 static uint8_t scmKeyGetRevision(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
532 pCurKey->Value.ab[0] = 0x02;
533 pCurKey->Value.ab[1] = 0x03;
534 pCurKey->Value.ab[2] = 0x0f;
535 pCurKey->Value.ab[3] = 0x00;
536 pCurKey->Value.ab[4] = 0x00;
537 pCurKey->Value.ab[5] = 0x35;
539 pCurKey->Value.ab[0] = 0x01;
540 pCurKey->Value.ab[1] = 0x25;
541 pCurKey->Value.ab[2] = 0x0f;
542 pCurKey->Value.ab[3] = 0x00;
543 pCurKey->Value.ab[4] = 0x00;
544 pCurKey->Value.ab[5] = 0x04;
552 static uint8_t scmKeyGetDollarAddress(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
554 pCurKey->Value.u32 = RT_H2BE_U32(SMC_PORT_FIRST);
560 static uint8_t scmKeyGetDollarNumber(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
562 pCurKey->Value.ab[0] = pThis->bDollaryNumber;
567 static uint8_t scmKeyPutDollarNumber(PDEVSMC pThis, PCDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
569 Log(("scmKeyPutDollarNumber: %#x -> %#x\n", pThis->bDollaryNumber, pCurKey->Value.ab[0]));
570 pThis->bDollaryNumber = pCurKey->Value.ab[0];
577 static uint8_t scmKeyGetShutdownReason(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
579 pCurKey->Value.ab[0] = pThis->bShutdownReason;
585 static uint8_t scmKeyPutShutdownReason(PDEVSMC pThis, PCDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
587 Log(("scmKeyPutShutdownReason: %#x -> %#x\n", pThis->bShutdownReason, pCurKey->Value.ab[0]));
588 pThis->bShutdownReason = pCurKey->Value.ab[0];
594 static uint8_t scmKeyGetNinjaTimerAction(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
596 pCurKey->Value.ab[0] = pThis->bNinjaActionTimerJob;
602 static uint8_t scmKeyPutNinjaTimerAction(PDEVSMC pThis, PCDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
604 Log(("scmKeyPutNinjaTimerAction: %#x -> %#x\n", pThis->bNinjaActionTimerJob, pCurKey->Value.ab[0]));
605 pThis->bNinjaActionTimerJob = pCurKey->Value.ab[0];
612 static uint8_t scmKeyGetOne(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
614 memset(&pCurKey->Value.ab[0], 0, pKeyDesc->cbValue);
615 pCurKey->Value.ab[pKeyDesc->cbValue - 1] = 1;
622 static uint8_t scmKeyGetZero(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc)
624 memset(&pCurKey->Value.ab[0], 0, pKeyDesc->cbValue);