Revision 3b46e624 hw/pckbd.c
b/hw/pckbd.c | ||
---|---|---|
338 | 338 |
static void kbd_save(QEMUFile* f, void* opaque) |
339 | 339 |
{ |
340 | 340 |
KBDState *s = (KBDState*)opaque; |
341 |
|
|
341 |
|
|
342 | 342 |
qemu_put_8s(f, &s->write_cmd); |
343 | 343 |
qemu_put_8s(f, &s->status); |
344 | 344 |
qemu_put_8s(f, &s->mode); |
... | ... | |
348 | 348 |
static int kbd_load(QEMUFile* f, void* opaque, int version_id) |
349 | 349 |
{ |
350 | 350 |
KBDState *s = (KBDState*)opaque; |
351 |
|
|
351 |
|
|
352 | 352 |
if (version_id != 3) |
353 | 353 |
return -EINVAL; |
354 | 354 |
qemu_get_8s(f, &s->write_cmd); |
Also available in: Unified diff