/qemu/include/hw/misc/ |
H A D | led.h | 2 * QEMU single LED device 4 * Copyright (C) 2020 Philippe Mathieu-Daudé <f4bug@amsat.org> 6 * SPDX-License-Identifier: GPL-2.0-or-later 12 #include "hw/qdev-core.h" 14 #define TYPE_LED "led" 17 * LEDColor: Color of a LED 19 * This set is restricted to physically available LED colors. 21 * LED colors from 'Table 1. Product performance of LUXEON Rebel Color 23 * https://www.lumileds.com/products/color-leds/luxeon-rebel-color/ 48 * Determines whether a GPIO is using a positive (active-high) [all …]
|
H A D | mps2-fpgaio.h | 25 #include "hw/misc/led.h" 28 #define TYPE_MPS2_FPGAIO "mps2-fpgaio" 39 LEDState *led[MPS2FPGAIO_MAX_LEDS]; member
|
H A D | mps2-scc.h | 18 * + QOM property "scc-cfg4": value of the read-only CFG4 register 19 * + QOM property "scc-aid": value of the read-only SCC_AID register 20 * + QOM property "scc-id": value of the read-only SCC_ID register 21 * + QOM property "scc-cfg0": reset value of the CFG0 register 34 #include "hw/misc/led.h" 37 #define TYPE_MPS2_SCC "mps2-scc" 46 LEDState *led[8]; member
|
H A D | arm_integrator_debug.h | 2 * ARM Integrator Board Debug, switch and LED section 6 …//developer.arm.com/documentation/dui0159/b/peripherals-and-interfaces/debug-leds-and-dip-switch-i… 11 * See the COPYING file in the top-level directory.
|
/qemu/hw/gpio/ |
H A D | pca9552.c | 2 * PCA9552 I2C LED blinker 4 * https://www.nxp.com/docs/en/application-note/AN264.pdf 6 * Copyright (c) 2017-2018, IBM Corporation. 7 * Copyright (c) 2020 Philippe Mathieu-Daudé 10 * later. See the COPYING file in the top-level directory. 17 #include "hw/qdev-properties.h" 57 return extract32(s->regs[reg], shift, 2); in pca955x_pin_get_config() 63 return (s->regs[PCA9552_INPUT1] << 8) | s->regs[PCA9552_INPUT0]; in pca955x_pins_get_status() 81 for (i = 0; i < k->pin_count; i++) { in pca955x_display_pins_status() 89 trace_pca955x_gpio_status(s->description, buf); in pca955x_display_pins_status() [all …]
|
/qemu/docs/interop/ |
H A D | vnc-ledstate-pseudo-encoding.rst | 1 VNC LED state Pseudo-encoding 5 ------------ 7 This document describes the Pseudo-encoding of LED state for RFB which 10 http://tigervnc.svn.sourceforge.net/viewvc/tigervnc/rfbproto/rfbproto.rst?content-type=text/plain 13 between the lock keys notification LED on the computer running the VNC 17 To solve this problem it attempts to add LED state Pseudo-encoding 18 extension to VNC protocol to deal with setting LED state. 20 Pseudo-encoding 21 --------------- 23 This Pseudo-encoding requested by client declares to server that it supports [all …]
|
/qemu/hw/display/ |
H A D | dm163.c | 2 * QEMU DM163 8x3-channel constant current led driver 6 * Copyright (C) 2024 Arnaud Minier <arnaud.minier@telecom-paris.fr> 7 * Copyright (C) 2024 Inès Varhol <ines.varhol@telecom-paris.fr> 9 * SPDX-License-Identifier: GPL-2.0-or-later 14 * http://www.siti.com.tw/product/spec/LED/DM163.pdf 21 #include "hw/qdev-properties.h" 29 #define TURNED_OFF_ROW (COLOR_BUFFER_SIZE - 1) 61 s->sin = 0; in dm163_reset_hold() 62 s->dck = 0; in dm163_reset_hold() 63 s->rst_b = 0; in dm163_reset_hold() [all …]
|
H A D | jazz_led.c | 2 * QEMU JAZZ LED emulator. 4 * Copyright (c) 2007-2012 Herve Poussineau 38 #define TYPE_JAZZ_LED "jazz-led" 56 val = s->segments; in jazz_led_read() 70 s->segments = new_val; in jazz_led_write() 71 s->state |= REDRAW_SEGMENTS; in jazz_led_write() 150 DisplaySurface *surface = qemu_console_surface(s->con); in jazz_led_update_display() 155 if (s->state & REDRAW_BACKGROUND) { in jazz_led_update_display() 165 if (s->state & REDRAW_SEGMENTS) { in jazz_led_update_display() 194 (s->segments & 0x02) ? color_segment : 0); in jazz_led_update_display() [all …]
|
/qemu/hw/misc/ |
H A D | led.c | 2 * QEMU single LED device 4 * Copyright (C) 2020 Philippe Mathieu-Daudé <f4bug@amsat.org> 6 * SPDX-License-Identifier: GPL-2.0-or-later 11 #include "hw/qdev-properties.h" 12 #include "hw/misc/led.h" 43 trace_led_set_intensity(s->description, s->color, intensity_percent); in led_set_intensity() 44 if (intensity_percent != s->intensity_percent) { in led_set_intensity() 45 trace_led_change_intensity(s->description, s->color, in led_set_intensity() 46 s->intensity_percent, intensity_percent); in led_set_intensity() 48 s->intensity_percent = intensity_percent; in led_set_intensity() [all …]
|
H A D | mps2-scc.c | 29 #include "hw/misc/mps2-scc.h" 30 #include "hw/misc/led.h" 31 #include "hw/qdev-properties.h" 60 return extract32(s->id, 4, 8); in scc_partno() 116 if (function != 1 || device >= s->num_oscclk) { in scc_cfg_write() 123 s->oscclk[device] = value; in scc_cfg_write() 134 if (function != 1 || device >= s->num_oscclk) { in scc_cfg_read() 141 *value = s->oscclk[device]; in scc_cfg_read() 154 r = s->cfg0; in mps2_scc_read() 157 r = s->cfg1; in mps2_scc_read() [all …]
|
H A D | mps2-fpgaio.c | 26 #include "hw/misc/mps2-fpgaio.h" 27 #include "hw/misc/led.h" 28 #include "hw/qdev-properties.h" 44 return muldiv64(now - tick_offset, frq, NANOSECONDS_PER_SECOND); in counter_from_tickoff() 49 return now - muldiv64(count, NANOSECONDS_PER_SECOND, frq); in tickoff_from_counter() 55 * Update s->counter and s->pscntr to their true current values in resync_counter() 60 int64_t elapsed = now - s->pscntr_sync_ticks; in resync_counter() 66 uint64_t ticks = muldiv64(elapsed, s->prescale_clk, NANOSECONDS_PER_SECOND); in resync_counter() 70 * PSCNTR reloads from PRESCALE one tick-period after it hits zero, in resync_counter() 76 } else if (ticks < s->pscntr) { in resync_counter() [all …]
|
H A D | trace-events | 3 # allwinner-cpucfg.c 8 # allwinner-h3-dramc.c 18 # allwinner-r40-dramc.c 32 # allwinner-sid.c 36 # allwinner-sramc.c 90 slavio_led_mem_writew(uint32_t val) "Write diagnostic LED 0x%04x" 91 slavio_led_mem_readw(uint32_t ret) "Read diagnostic LED 0x%04x" 101 # mps2-scc.c 108 # mps2-fpgaio.c 113 # msf2-sysreg.c [all …]
|
H A D | arm_integrator_debug.c | 2 * LED, Switch and Debug control registers for ARM Integrator Boards 9 …//developer.arm.com/documentation/dui0159/b/peripherals-and-interfaces/debug-leds-and-dip-switch-i… 14 * See the COPYING file in the top-level directory. 83 memory_region_init_io(&s->iomem, obj, &intdbg_control_ops, in intdbg_control_init() 84 NULL, "dbg-leds", 0x1000000); in intdbg_control_init() 85 sysbus_init_mmio(sd, &s->iomem); in intdbg_control_init()
|
/qemu/tests/functional/ |
H A D | test_avr_uno.py | 5 # SPDX-License-Identifier: GPL-2.0-or-later 19 The binary constantly prints out 'LED Blink' 21 self.set_machine('arduino-uno') 24 self.vm.add_args('-bios', rom_path) 28 wait_for_console_pattern(self, 'LED Blink')
|
/qemu/hw/arm/ |
H A D | kzm.c | 5 * Written by Hans at OK-Labs 12 * KZM-ARM11-01 evaluation board, with a Freescale 18 #include "hw/arm/fsl-imx31.h" 21 #include "qemu/error-report.h" 22 #include "system/address-spaces.h" 25 #include "hw/char/serial-mm.h" 31 * 0x00000000-0x7fffffff See i.MX31 SOC for support 32 * 0x80000000-0x8fffffff RAM EMULATED 33 * 0x90000000-0x9fffffff RAM EMULATED 34 * 0xa0000000-0xafffffff Flash IGNORED [all …]
|
/qemu/hw/net/ |
H A D | e1000_regs.h | 4 Copyright(c) 1999 - 2006 Intel Corporation. 23 e1000-devel Mailing List <e1000-devel@lists.sourceforge.net> 24 Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 37 #define E1000_ITR 0x000C4 /* Interrupt Throttling Rate - RW */ 38 #define E1000_EIAC 0x000DC /* Ext. Interrupt Auto Clear - RW */ 39 #define E1000_IVAR 0x000E4 /* Interrupt Vector Allocation Register - RW */ 40 #define E1000_EITR 0x000E8 /* Extended Interrupt Throttling Rate - RW */ 41 #define E1000_RDBAL1 0x02900 /* RX Descriptor Base Address Low (1) - RW */ 42 #define E1000_RDBAH1 0x02904 /* RX Descriptor Base Address High (1) - RW */ 43 #define E1000_RDLEN1 0x02908 /* RX Descriptor Length (1) - RW */ [all …]
|
/qemu/include/hw/gpio/ |
H A D | pca9552.h | 2 * PCA9552 I2C LED blinker 4 * Copyright (c) 2017-2018, IBM Corporation. 7 * later. See the COPYING file in the top-level directory.
|
H A D | pca9552_regs.h | 2 * PCA9552 I2C LED blinker registers 4 * Copyright (c) 2017-2018, IBM Corporation. 7 * later. See the COPYING file in the top-level directory. 27 * Bit [4] is used to activate the Auto-Increment option of the
|
/qemu/hw/input/ |
H A D | hid.c | 77 return hs->n > 0 || hs->idle_pending; in hid_has_events() 84 hs->idle_pending = true; in hid_idle_timer() 85 hs->event(hs); in hid_idle_timer() 90 if (hs->idle_timer) { in hid_del_idle_timer() 91 timer_free(hs->idle_timer); in hid_del_idle_timer() 92 hs->idle_timer = NULL; in hid_del_idle_timer() 98 if (hs->idle) { in hid_set_next_idle() 100 NANOSECONDS_PER_SECOND * hs->idle * 4 / 1000; in hid_set_next_idle() 101 if (!hs->idle_timer) { in hid_set_next_idle() 102 hs->idle_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, hid_idle_timer, hs); in hid_set_next_idle() [all …]
|
H A D | adb-kbd.c | 30 #include "hw/input/adb-keys.h" 31 #include "adb-internal.h" 182 if (s->count < sizeof(s->data)) { in adb_kbd_put_keycode() 183 s->data[s->wptr] = keycode; in adb_kbd_put_keycode() 184 if (++s->wptr == sizeof(s->data)) { in adb_kbd_put_keycode() 185 s->wptr = 0; in adb_kbd_put_keycode() 187 s->count++; in adb_kbd_put_keycode() 196 if (s->count == 0) { in adb_kbd_poll() 199 keycode = s->data[s->rptr]; in adb_kbd_poll() 200 s->rptr++; in adb_kbd_poll() [all …]
|
/qemu/hw/pci/ |
H A D | shpc.c | 3 #include "qemu/host-utils.h" 5 #include "qemu/error-report.h" 7 #include "migration/qemu-file-types.h" 17 /* TODO: remove fully only on state DISABLED and LED off. 22 #define SHPC_SLOTS_33 0x04 /* 4 bytes. Also encodes PCI-X slots. */ 112 #define SHPC_SIZEOF(d) SHPC_SLOT_REG((d)->shpc->nslots) 122 #define SHPC_LOGICAL_TO_IDX(target) ((target) - 1) 124 #define SHPC_PCI_TO_IDX(pci_slot) ((pci_slot) - 1) 145 return "power-only"; in shpc_slot_state_to_str() 157 uint8_t *status = shpc->config + SHPC_SLOT_STATUS(slot); in shpc_get_status() [all …]
|
/qemu/include/hw/display/ |
H A D | dm163.h | 2 * QEMU DM163 8x3-channel constant current led driver 6 * Copyright (C) 2024 Arnaud Minier <arnaud.minier@telecom-paris.fr> 7 * Copyright (C) 2024 Inès Varhol <ines.varhol@telecom-paris.fr> 9 * SPDX-License-Identifier: GPL-2.0-or-later 16 #include "hw/qdev-core.h"
|
/qemu/docs/system/arm/ |
H A D | b-l475e-iot01a.rst | 1 B-L475E-IOT01A IoT Node (``b-l475e-iot01a``) 4 The B-L475E-IOT01A IoT Node uses the STM32L475VG SoC which is based on 5 ARM Cortex-M4F core. It is part of STMicroelectronics 7 ultra-low power series. The STM32L4x5 chip runs at up to 80 MHz and 8 integrates 128 KiB of SRAM and up to 1MiB of Flash. The B-L475E-IOT01A board 15 Currently B-L475E-IOT01A machines support the following devices: 17 - Cortex-M4F based STM32L4x5 SoC 18 - STM32L4x5 EXTI (Extended interrupts and events controller) 19 - STM32L4x5 SYSCFG (System configuration controller) 20 - STM32L4x5 RCC (Reset and clock control) [all …]
|
/qemu/tests/qtest/ |
H A D | pca9552-test.c | 2 * QTest testcase for the PCA9552 LED blinker 4 * Copyright (c) 2017-2018, IBM Corporation. 7 * See the COPYING file in the top-level directory. 17 #define PCA9552_TEST_ID "pca9552-test" 88 qos_node_consumes("pca9552", "i2c-bus", &opts); in pca9552_register_nodes() 90 qos_add_test("tx-rx", "pca9552", send_and_receive, NULL); in pca9552_register_nodes() 91 qos_add_test("rx-autoinc", "pca9552", receive_autoinc, NULL); in pca9552_register_nodes()
|
/qemu/hw/m68k/ |
H A D | next-cube.c | 5 * Copyright (c) 2024 Mark Cave-Ayland 15 #include "exec/cpu-interrupt.h" 19 #include "hw/m68k/next-cube.h" 28 #include "hw/qdev-properties.h" 30 #include "qemu/error-report.h" 48 #define TYPE_NEXT_RTC "next-rtc" 66 #define TYPE_NEXT_SCSI "next-scsi" 82 #define TYPE_NEXT_PC "next-pc" 102 uint32_t led; member 133 #define TYPE_NEXT_MACHINE MACHINE_TYPE_NAME("next-cube") [all …]
|