lasips2.c (749d14f782c333b8167f712d55cc36797e88122a) lasips2.c (af0f07dfc7ce56a944c38d872b7d4502178e6948)
1/*
2 * QEMU HP Lasi PS/2 interface emulation
3 *
4 * Copyright (c) 2019 Sven Schnelle
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

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

34#include "hw/irq.h"
35#include "qapi/error.h"
36
37
38static const VMStateDescription vmstate_lasips2_port = {
39 .name = "lasips2-port",
40 .version_id = 1,
41 .minimum_version_id = 1,
1/*
2 * QEMU HP Lasi PS/2 interface emulation
3 *
4 * Copyright (c) 2019 Sven Schnelle
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

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

34#include "hw/irq.h"
35#include "qapi/error.h"
36
37
38static const VMStateDescription vmstate_lasips2_port = {
39 .name = "lasips2-port",
40 .version_id = 1,
41 .minimum_version_id = 1,
42 .fields = (VMStateField[]) {
42 .fields = (const VMStateField[]) {
43 VMSTATE_UINT8(control, LASIPS2Port),
44 VMSTATE_UINT8(buf, LASIPS2Port),
45 VMSTATE_BOOL(loopback_rbne, LASIPS2Port),
46 VMSTATE_END_OF_LIST()
47 }
48};
49
50static const VMStateDescription vmstate_lasips2 = {
51 .name = "lasips2",
52 .version_id = 1,
53 .minimum_version_id = 1,
43 VMSTATE_UINT8(control, LASIPS2Port),
44 VMSTATE_UINT8(buf, LASIPS2Port),
45 VMSTATE_BOOL(loopback_rbne, LASIPS2Port),
46 VMSTATE_END_OF_LIST()
47 }
48};
49
50static const VMStateDescription vmstate_lasips2 = {
51 .name = "lasips2",
52 .version_id = 1,
53 .minimum_version_id = 1,
54 .fields = (VMStateField[]) {
54 .fields = (const VMStateField[]) {
55 VMSTATE_UINT8(int_status, LASIPS2State),
56 VMSTATE_STRUCT(kbd_port.parent_obj, LASIPS2State, 1,
57 vmstate_lasips2_port, LASIPS2Port),
58 VMSTATE_STRUCT(mouse_port.parent_obj, LASIPS2State, 1,
59 vmstate_lasips2_port, LASIPS2Port),
60 VMSTATE_END_OF_LIST()
61 }
62};

--- 413 unchanged lines hidden ---
55 VMSTATE_UINT8(int_status, LASIPS2State),
56 VMSTATE_STRUCT(kbd_port.parent_obj, LASIPS2State, 1,
57 vmstate_lasips2_port, LASIPS2Port),
58 VMSTATE_STRUCT(mouse_port.parent_obj, LASIPS2State, 1,
59 vmstate_lasips2_port, LASIPS2Port),
60 VMSTATE_END_OF_LIST()
61 }
62};

--- 413 unchanged lines hidden ---