/qemu/include/standard-headers/linux/ |
H A D | input.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Copyright (c) 1999-2002 Vojtech Pavlik 5 * This program is free software; you can redistribute it and/or modify it 10 #define _INPUT_H 15 #include "standard-headers/linux/types.h" 17 #include "standard-headers/linux/input-event-codes.h" 28 #define input_event_sec time.tv_sec 29 #define input_event_usec time.tv_usec 38 #define input_event_sec __sec 39 #define input_event_usec __usec [all …]
|
/qemu/hw/ipmi/ |
H A D | smbus_ipmi.c | 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 * all copies or substantial portions of the Software. 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 28 #include "qemu/error-report.h" 33 #define TYPE_SMBUS_IPMI "smbus-ipmi" 36 #define SSIF_IPMI_REQUEST 2 37 #define SSIF_IPMI_MULTI_PART_REQUEST_START 6 [all …]
|
/qemu/hw/sensor/ |
H A D | tmp421.c | 13 * This program is free software; you can redistribute it and/or 15 * published by the Free Software Foundation; either version 2 or 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 36 #define TMP421_MANUFACTURER_ID 0x55 37 #define TMP421_DEVICE_ID 0x21 38 #define TMP422_DEVICE_ID 0x22 39 #define TMP423_DEVICE_ID 0x23 63 uint8_t len; member 74 #define TYPE_TMP421 "tmp421-generic" 79 #define TMP421_STATUS_REG 0x08 [all …]
|
H A D | dps310.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2017-2021 Joel Stanley <joel@jms.id.au>, IBM Corporation 7 * https://www.infineon.com/cms/en/product/sensor/pressure-sensors/pressure-sensors-for-iot/dps310/ 17 #define NUM_REGISTERS 0x33 26 uint8_t len; member 31 #define TYPE_DPS310 "dps310" 32 #define DPS310(obj) OBJECT_CHECK(DPS310State, (obj), TYPE_DPS310) 34 #define DPS310_PRS_B2 0x00 35 #define DPS310_PRS_B1 0x01 36 #define DPS310_PRS_B0 0x02 [all …]
|
/qemu/hw/char/ |
H A D | grlib_apbuart.c | 4 * SPDX-License-Identifier: MIT 6 * Copyright (c) 2010-2024 AdaCore 11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 16 * all copies or substantial portions of the Software. 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 29 #include "hw/qdev-properties.h" 30 #include "hw/qdev-properties-system.h" [all …]
|
/qemu/tests/tcg/hexagon/ |
H A D | circ.c | 2 * Copyright(c) 2019-2022 Qualcomm Innovation Center, Inc. All Rights Reserved. 4 * This program is free software; you can redistribute it and/or modify 6 * the Free Software Foundation; either version 2 of the License, or 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 #define DEBUG 0 26 #define DEBUG_PRINTF(...) \ 34 #define NBYTES (1 << 8) 35 #define NHALFS (NBYTES / sizeof(short)) 36 #define NWORDS (NBYTES / sizeof(int)) 37 #define NDOBLS (NBYTES / sizeof(long long)) [all …]
|
/qemu/hw/dma/ |
H A D | sparc32_dma.c | 7 * 2010-Feb-14 Artyom Tarasenko : reworked irq generation 12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 17 * all copies or substantial portions of the Software. 19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 30 #include "hw/qdev-properties.h" 43 * http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C100.txt 45 * http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/DMA2.txt [all …]
|
/qemu/include/exec/ |
H A D | memory_ldst_cached.h.inc | 6 * This library is free software; you can redistribute it and/or 9 * version 2.1 of the License, or (at your option) any later version. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 #define ADDRESS_SPACE_LD_CACHED(size) \ 22 #define ADDRESS_SPACE_LD_CACHED_SLOW(size) \ 24 #define LD_P(size) \ 30 assert(addr < cache->len && 2 <= cache->len - addr); 31 fuzz_dma_read_cb(cache->xlat + addr, 2, cache->mrs.mr); 32 if (likely(cache->ptr)) { 33 return LD_P(uw)(cache->ptr + addr); [all …]
|
/qemu/fsdev/ |
H A D | p9array.h | 2 * P9Array - deep auto free C-array 12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 17 * all copies or substantial portions of the Software. 19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 28 #define QEMU_P9ARRAY_H 31 * P9Array provides a mechanism to access arrays in common C-style (e.g. by 52 * free(foo->s); [all …]
|
/qemu/target/i386/ |
H A D | gdbstub.c | 4 * Copyright (c) 2003-2005 Fabrice Bellard 7 * This library is free software; you can redistribute it and/or 10 * version 2.1 of the License, or (at your option) any later version. 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 #include "accel/tcg/vcpu-state.h" 26 #include "linux-user/qemu.h" 35 #define gpr_map gpr_map32 50 * general regs -----> 8 or 16 52 #define IDX_NB_IP 1 53 #define IDX_NB_FLAGS 1 [all …]
|
/qemu/hw/nvram/ |
H A D | spapr_nvram.c | 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 * all copies or substantial portions of the Software. 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 31 #include "system/block-backend.h" 39 #include "hw/qdev-properties.h" 40 #include "hw/qdev-properties-system.h" 51 #define TYPE_VIO_SPAPR_NVRAM "spapr-nvram" [all …]
|
/qemu/target/hexagon/mmvec/ |
H A D | macros.h | 2 * Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. 4 * This program is free software; you can redistribute it and/or modify 6 * the Free Software Foundation; either version 2 of the License, or 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 #define HEXAGON_MMVEC_MACROS_H 21 #include "qemu/host-utils.h" 28 #define VdV (*(MMVector *restrict)(VdV_void)) 29 #define VsV (*(MMVector *restrict)(VsV_void)) 30 #define VuV (*(MMVector *restrict)(VuV_void)) 31 #define VvV (*(MMVector *restrict)(VvV_void)) [all …]
|
/qemu/hw/vmapple/ |
H A D | bdif.c | 4 * Copyright © 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. 6 * This work is licensed under the terms of the GNU GPL, version 2 or later. 7 * See the COPYING file in the top-level directory. 9 * SPDX-License-Identifier: GPL-2.0-or-later 21 #include "system/block-backend.h" 34 #define VMAPPLE_BDIF_SIZE 0x00200000 36 #define REG_DEVID_MASK 0xffff0000 37 #define DEVID_ROOT 0x00000000 38 #define DEVID_AUX 0x00010000 39 #define DEVID_USB 0x00100000 [all …]
|
H A D | aes.c | 4 * Copyright © 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. 6 * This work is licensed under the terms of the GNU GPL, version 2 or later. 7 * See the COPYING file in the top-level directory. 9 * SPDX-License-Identifier: GPL-2.0-or-later 28 #define MAX_FIFO_SIZE 9 30 #define CMD_KEY 0x1 31 #define CMD_KEY_CONTEXT_SHIFT 27 32 #define CMD_KEY_CONTEXT_MASK (0x1 << CMD_KEY_CONTEXT_SHIFT) 33 #define CMD_KEY_SELECT_MAX_IDX 0x7 34 #define CMD_KEY_SELECT_SHIFT 24 [all …]
|
/qemu/chardev/ |
H A D | wctablet.c | 14 * and/or sell copies of the Software, and to permit persons to whom the 18 * all copies or substantial portions of the Software. 20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM 25 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 31 #include "chardev/char-serial.h" 38 #define WC_OUTPUT_BUF_MAX_LEN 512 39 #define WC_COMMAND_MAX_LEN 60 41 #define WC_L7(n) ((n) & 127) [all …]
|
H A D | baum.c | 4 * Copyright (c) 2008, 2010-2011, 2016-2017 Samuel Thibault 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 * all copies or substantial portions of the Software. 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 28 #include "qemu/main-loop.h" 39 #define DPRINTF(fmt, ...) \ 42 #define DPRINTF(fmt, ...) [all …]
|
H A D | testdev.c | 11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 16 * all copies or substantial portions of the Software. 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 32 #define BUF_SIZE 32 42 #define TYPE_CHARDEV_TESTDEV "chardev-testdev" 49 const uint8_t *cur = testdev->in_buf; in DECLARE_INSTANCE_CHECKER() 50 int len = testdev->in_buf_used; in DECLARE_INSTANCE_CHECKER() local [all …]
|
/qemu/hw/net/rocker/ |
H A D | rocker_tlv.h | 2 * QEMU rocker switch emulation - TLV parsing and composing 6 * This program is free software; you can redistribute it and/or modify 8 * the Free Software Foundation; either version 2 of the License, or 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 #define ROCKER_TLV_H 20 #define ROCKER_TLV_ALIGNTO 8U 21 #define ROCKER_TLV_ALIGN(len) \ argument 22 (((len) + ROCKER_TLV_ALIGNTO - 1) & ~(ROCKER_TLV_ALIGNTO - 1)) 23 #define ROCKER_TLV_HDRLEN ROCKER_TLV_ALIGN(sizeof(RockerTlv)) 26 * <------- ROCKER_TLV_HDRLEN -------> <--- ROCKER_TLV_ALIGN(payload) ---> [all …]
|
/qemu/pc-bios/s390-ccw/ |
H A D | virtio-net.c | 2 * Virtio-net driver for the s390-ccw firmware 6 * This code is free software; you can redistribute it and/or modify it 8 * Free Software Foundation; either version 2 of the License, or (at your 20 #include "s390-ccw.h" 22 #include "s390-time.h" 26 #define DEBUG_VIRTIO_NET 0 29 #define VIRTIO_NET_F_MAC_BIT (1 << 5) 31 #define VQ_RX 0 /* Receive queue */ 32 #define VQ_TX 1 /* Transmit queue */ 41 /*uint16_t num_buffers;*/ /* Only with VIRTIO_NET_F_MRG_RXBUF or VIRTIO1 */ [all …]
|
/qemu/util/ |
H A D | buffer.c | 6 * This library is free software; you can redistribute it and/or 9 * version 2.1 of the License, or (at your option) any later version. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 22 #include "qemu/host-utils.h" 26 #define BUFFER_MIN_INIT_SIZE 4096 27 #define BUFFER_MIN_SHRINK_SIZE 65536 29 /* define the factor alpha for the exponential smoothing 32 #define BUFFER_AVG_SIZE_SHIFT 7 34 static size_t buffer_req_size(Buffer *buffer, size_t len) in buffer_req_size() argument 37 pow2ceil(buffer->offset + len)); in buffer_req_size() [all …]
|
/qemu/include/system/ |
H A D | dma.h | 7 * (GNU GPL), version 2 or later. 11 #define DMA_H 14 #include "system/address-spaces.h" 27 * or less have to treat these as 64-bit always to cover all (or at 32 #define DMA_ADDR_BITS 64 33 #define DMA_ADDR_FMT "%" PRIx64 54 * Users of map(), unmap() or lower level st/ld_* in dma_barrier() 73 dma_addr_t addr, dma_addr_t len, in dma_memory_valid() argument 76 return address_space_access_valid(as, addr, len, in dma_memory_valid() 83 void *buf, dma_addr_t len, in dma_memory_rw_relaxed() argument [all …]
|
/qemu/bsd-user/ |
H A D | qemu.h | 4 * This program is free software; you can redistribute it and/or modify 6 * the Free Software Foundation; either version 2 of the License, or 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 #define QEMU_H 25 #include "accel/tcg/cpu-ldst.h" 29 #include "user/page-protection.h" 42 #include "exec/page-protection.h" 43 #include "accel/tcg/vcpu-state.h" 45 #include "qemu-os.h" 51 #define HOST_PAGE_ALIGN(addr) ROUND_UP((addr), qemu_host_page_size) [all …]
|
/qemu/tests/qtest/ |
H A D | ipmi-bt-test.c | 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 * all copies or substantial portions of the Software. 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 33 #include "libqtest-single.h" 35 #define IPMI_IRQ 5 37 #define IPMI_BT_BASE 0xe4 39 #define IPMI_BT_CTLREG_CLR_WR_PTR 0 [all …]
|
/qemu/include/gdbstub/ |
H A D | helpers.h | 9 * SPDX-License-Identifier: GPL-2.0-or-later 13 #define _GDBSTUB_HELPERS_H_ 20 #include "cpu-param.h" 73 static inline int gdb_get_zeroes(GByteArray *array, size_t len) in gdb_get_zeroes() argument 75 guint oldlen = array->len; in gdb_get_zeroes() 76 g_byte_array_set_size(array, oldlen + len); in gdb_get_zeroes() 77 memset(array->data + oldlen, 0, len); in gdb_get_zeroes() 79 return len; in gdb_get_zeroes() 84 * @len: length of element 87 * element for additional processing. Some front-ends do additional [all …]
|
/qemu/hw/net/ |
H A D | sunhme.c | 4 * Copyright (c) 2017 Mark Cave-Ayland 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 * all copies or substantial portions of the Software. 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 27 #include "hw/qdev-properties.h" 38 #define HME_REG_SIZE 0x8000 40 #define HME_SEB_REG_SIZE 0x2000 [all …]
|