adb.c (75b7b25d44a64411ea0ae792d5ebad8ddf22527e) | adb.c (af0f07dfc7ce56a944c38d872b7d4502178e6948) |
---|---|
1/* 2 * QEMU ADB 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 --- 207 unchanged lines hidden (view full) --- 216 s->autopoll_cb = cb; 217 s->autopoll_cb_opaque = opaque; 218} 219 220static const VMStateDescription vmstate_adb_bus = { 221 .name = "adb_bus", 222 .version_id = 0, 223 .minimum_version_id = 0, | 1/* 2 * QEMU ADB 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 --- 207 unchanged lines hidden (view full) --- 216 s->autopoll_cb = cb; 217 s->autopoll_cb_opaque = opaque; 218} 219 220static const VMStateDescription vmstate_adb_bus = { 221 .name = "adb_bus", 222 .version_id = 0, 223 .minimum_version_id = 0, |
224 .fields = (VMStateField[]) { | 224 .fields = (const VMStateField[]) { |
225 VMSTATE_TIMER_PTR(autopoll_timer, ADBBusState), 226 VMSTATE_BOOL(autopoll_enabled, ADBBusState), 227 VMSTATE_UINT8(autopoll_rate_ms, ADBBusState), 228 VMSTATE_UINT16(autopoll_mask, ADBBusState), 229 VMSTATE_BOOL(autopoll_blocked, ADBBusState), 230 VMSTATE_END_OF_LIST() 231 } 232}; --- 41 unchanged lines hidden (view full) --- 274 .instance_size = sizeof(ADBBusState), 275 .class_init = adb_bus_class_init, 276}; 277 278const VMStateDescription vmstate_adb_device = { 279 .name = "adb_device", 280 .version_id = 0, 281 .minimum_version_id = 0, | 225 VMSTATE_TIMER_PTR(autopoll_timer, ADBBusState), 226 VMSTATE_BOOL(autopoll_enabled, ADBBusState), 227 VMSTATE_UINT8(autopoll_rate_ms, ADBBusState), 228 VMSTATE_UINT16(autopoll_mask, ADBBusState), 229 VMSTATE_BOOL(autopoll_blocked, ADBBusState), 230 VMSTATE_END_OF_LIST() 231 } 232}; --- 41 unchanged lines hidden (view full) --- 274 .instance_size = sizeof(ADBBusState), 275 .class_init = adb_bus_class_init, 276}; 277 278const VMStateDescription vmstate_adb_device = { 279 .name = "adb_device", 280 .version_id = 0, 281 .minimum_version_id = 0, |
282 .fields = (VMStateField[]) { | 282 .fields = (const VMStateField[]) { |
283 VMSTATE_INT32(devaddr, ADBDevice), 284 VMSTATE_INT32(handler, ADBDevice), 285 VMSTATE_END_OF_LIST() 286 } 287}; 288 289static void adb_device_realizefn(DeviceState *dev, Error **errp) 290{ --- 34 unchanged lines hidden --- | 283 VMSTATE_INT32(devaddr, ADBDevice), 284 VMSTATE_INT32(handler, ADBDevice), 285 VMSTATE_END_OF_LIST() 286 } 287}; 288 289static void adb_device_realizefn(DeviceState *dev, Error **errp) 290{ --- 34 unchanged lines hidden --- |