edu.c (0c28d0d07fbcd7aa44d231241d444d00882256e2) edu.c (631b22ea206300f09b9d1bb9249169e0f0092639)
1/*
2 * QEMU educational PCI device
3 *
4 * Copyright (c) 2012-2015 Jiri Slaby
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation

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

274
275static const MemoryRegionOps edu_mmio_ops = {
276 .read = edu_mmio_read,
277 .write = edu_mmio_write,
278 .endianness = DEVICE_NATIVE_ENDIAN,
279};
280
281/*
1/*
2 * QEMU educational PCI device
3 *
4 * Copyright (c) 2012-2015 Jiri Slaby
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation

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

274
275static const MemoryRegionOps edu_mmio_ops = {
276 .read = edu_mmio_read,
277 .write = edu_mmio_write,
278 .endianness = DEVICE_NATIVE_ENDIAN,
279};
280
281/*
282 * We purposedly use a thread, so that users are forced to wait for the status
282 * We purposely use a thread, so that users are forced to wait for the status
283 * register.
284 */
285static void *edu_fact_thread(void *opaque)
286{
287 EduState *edu = opaque;
288
289 while (1) {
290 uint32_t val, ret = 1;

--- 118 unchanged lines hidden ---
283 * register.
284 */
285static void *edu_fact_thread(void *opaque)
286{
287 EduState *edu = opaque;
288
289 while (1) {
290 uint32_t val, ret = 1;

--- 118 unchanged lines hidden ---