adb-kbd.c (46919512fcfec1e677733a16bc178898c524854f) adb-kbd.c (af0f07dfc7ce56a944c38d872b7d4502178e6948)
1/*
2 * QEMU ADB keyboard support
3 *
4 * Copyright (c) 2004 Fabrice Bellard
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

--- 318 unchanged lines hidden (view full) ---

327
328 adb_kbd_put_keycode(s, keycode);
329}
330
331static const VMStateDescription vmstate_adb_kbd = {
332 .name = "adb_kbd",
333 .version_id = 2,
334 .minimum_version_id = 2,
1/*
2 * QEMU ADB keyboard support
3 *
4 * Copyright (c) 2004 Fabrice Bellard
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

--- 318 unchanged lines hidden (view full) ---

327
328 adb_kbd_put_keycode(s, keycode);
329}
330
331static const VMStateDescription vmstate_adb_kbd = {
332 .name = "adb_kbd",
333 .version_id = 2,
334 .minimum_version_id = 2,
335 .fields = (VMStateField[]) {
335 .fields = (const VMStateField[]) {
336 VMSTATE_STRUCT(parent_obj, KBDState, 0, vmstate_adb_device, ADBDevice),
337 VMSTATE_BUFFER(data, KBDState),
338 VMSTATE_INT32(rptr, KBDState),
339 VMSTATE_INT32(wptr, KBDState),
340 VMSTATE_INT32(count, KBDState),
341 VMSTATE_END_OF_LIST()
342 }
343};

--- 65 unchanged lines hidden ---
336 VMSTATE_STRUCT(parent_obj, KBDState, 0, vmstate_adb_device, ADBDevice),
337 VMSTATE_BUFFER(data, KBDState),
338 VMSTATE_INT32(rptr, KBDState),
339 VMSTATE_INT32(wptr, KBDState),
340 VMSTATE_INT32(count, KBDState),
341 VMSTATE_END_OF_LIST()
342 }
343};

--- 65 unchanged lines hidden ---