Lines Matching defs:pSSMHandle
828 static void dmaSaveController(PSSMHANDLE pSSMHandle, DMAControl *dc)
833 SSMR3PutU8(pSSMHandle, dc->u8Command);
834 SSMR3PutU8(pSSMHandle, dc->u8Mask);
835 SSMR3PutU8(pSSMHandle, dc->fHiByte);
836 SSMR3PutU32(pSSMHandle, dc->is16bit);
837 SSMR3PutU8(pSSMHandle, dc->u8Status);
838 SSMR3PutU8(pSSMHandle, dc->u8Temp);
839 SSMR3PutU8(pSSMHandle, dc->u8ModeCtr);
840 SSMR3PutMem(pSSMHandle, &dc->au8Page, sizeof(dc->au8Page));
841 SSMR3PutMem(pSSMHandle, &dc->au8PageHi, sizeof(dc->au8PageHi));
848 SSMR3PutU16(pSSMHandle, ch->u16CurAddr);
849 SSMR3PutU16(pSSMHandle, ch->u16CurCount);
850 SSMR3PutU16(pSSMHandle, ch->u16BaseAddr);
851 SSMR3PutU16(pSSMHandle, ch->u16BaseCount);
852 SSMR3PutU8(pSSMHandle, ch->u8Mode);
856 static int dmaLoadController(PSSMHANDLE pSSMHandle, DMAControl *dc, int version)
862 SSMR3GetU8(pSSMHandle, &dc->u8Command);
863 SSMR3GetU8(pSSMHandle, &dc->u8Mask);
864 SSMR3GetU8(pSSMHandle, &u8val);
866 SSMR3GetU32(pSSMHandle, &dc->is16bit);
869 SSMR3GetU8(pSSMHandle, &dc->u8Status);
870 SSMR3GetU8(pSSMHandle, &dc->u8Temp);
871 SSMR3GetU8(pSSMHandle, &dc->u8ModeCtr);
872 SSMR3GetMem(pSSMHandle, &dc->au8Page, sizeof(dc->au8Page));
873 SSMR3GetMem(pSSMHandle, &dc->au8PageHi, sizeof(dc->au8PageHi));
883 SSMR3GetU32(pSSMHandle, &u32val);
885 SSMR3GetU32(pSSMHandle, &u32val);
890 SSMR3GetU16(pSSMHandle, &ch->u16CurAddr);
891 SSMR3GetU16(pSSMHandle, &ch->u16CurCount);
893 SSMR3GetU16(pSSMHandle, &ch->u16BaseAddr);
894 SSMR3GetU16(pSSMHandle, &ch->u16BaseCount);
895 SSMR3GetU8(pSSMHandle, &ch->u8Mode);
900 SSMR3GetU8(pSSMHandle, &u8val);
902 SSMR3GetU8(pSSMHandle, &u8val);
905 SSMR3GetU8(pSSMHandle, &u8val);
906 SSMR3GetU8(pSSMHandle, &u8val);
913 static DECLCALLBACK(int) dmaSaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle)
917 dmaSaveController(pSSMHandle, &pThis->DMAC[0]);
918 dmaSaveController(pSSMHandle, &pThis->DMAC[1]);
923 static DECLCALLBACK(int) dmaLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t uVersion, uint32_t uPass)
930 dmaLoadController(pSSMHandle, &pThis->DMAC[0], uVersion);
931 return dmaLoadController(pSSMHandle, &pThis->DMAC[1], uVersion);