i8257.c (3e39dac0354c39b4b647940e42360c6b1f3edc02) | i8257.c (63e6b5645021bb2b545a39f2896a42da5c300d9c) |
---|---|
1/* 2 * QEMU DMA emulation 3 * 4 * Copyright (c) 2003-2004 Vassili Karpov (malc) 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 503 unchanged lines hidden (view full) --- 512 .max_access_size = 1, 513 }, 514}; 515 516static const VMStateDescription vmstate_i8257_regs = { 517 .name = "dma_regs", 518 .version_id = 1, 519 .minimum_version_id = 1, | 1/* 2 * QEMU DMA emulation 3 * 4 * Copyright (c) 2003-2004 Vassili Karpov (malc) 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 503 unchanged lines hidden (view full) --- 512 .max_access_size = 1, 513 }, 514}; 515 516static const VMStateDescription vmstate_i8257_regs = { 517 .name = "dma_regs", 518 .version_id = 1, 519 .minimum_version_id = 1, |
520 .fields = (VMStateField[]) { | 520 .fields = (const VMStateField[]) { |
521 VMSTATE_INT32_ARRAY(now, I8257Regs, 2), 522 VMSTATE_UINT16_ARRAY(base, I8257Regs, 2), 523 VMSTATE_UINT8(mode, I8257Regs), 524 VMSTATE_UINT8(page, I8257Regs), 525 VMSTATE_UINT8(pageh, I8257Regs), 526 VMSTATE_UINT8(dack, I8257Regs), 527 VMSTATE_UINT8(eop, I8257Regs), 528 VMSTATE_END_OF_LIST() --- 8 unchanged lines hidden (view full) --- 537 return 0; 538} 539 540static const VMStateDescription vmstate_i8257 = { 541 .name = "dma", 542 .version_id = 1, 543 .minimum_version_id = 1, 544 .post_load = i8257_post_load, | 521 VMSTATE_INT32_ARRAY(now, I8257Regs, 2), 522 VMSTATE_UINT16_ARRAY(base, I8257Regs, 2), 523 VMSTATE_UINT8(mode, I8257Regs), 524 VMSTATE_UINT8(page, I8257Regs), 525 VMSTATE_UINT8(pageh, I8257Regs), 526 VMSTATE_UINT8(dack, I8257Regs), 527 VMSTATE_UINT8(eop, I8257Regs), 528 VMSTATE_END_OF_LIST() --- 8 unchanged lines hidden (view full) --- 537 return 0; 538} 539 540static const VMStateDescription vmstate_i8257 = { 541 .name = "dma", 542 .version_id = 1, 543 .minimum_version_id = 1, 544 .post_load = i8257_post_load, |
545 .fields = (VMStateField[]) { | 545 .fields = (const VMStateField[]) { |
546 VMSTATE_UINT8(command, I8257State), 547 VMSTATE_UINT8(mask, I8257State), 548 VMSTATE_UINT8(flip_flop, I8257State), 549 VMSTATE_INT32(dshift, I8257State), 550 VMSTATE_STRUCT_ARRAY(regs, I8257State, 4, 1, vmstate_i8257_regs, 551 I8257Regs), 552 VMSTATE_END_OF_LIST() 553 } --- 104 unchanged lines hidden --- | 546 VMSTATE_UINT8(command, I8257State), 547 VMSTATE_UINT8(mask, I8257State), 548 VMSTATE_UINT8(flip_flop, I8257State), 549 VMSTATE_INT32(dshift, I8257State), 550 VMSTATE_STRUCT_ARRAY(regs, I8257State, 4, 1, vmstate_i8257_regs, 551 I8257Regs), 552 VMSTATE_END_OF_LIST() 553 } --- 104 unchanged lines hidden --- |