13#ifndef ZEPHYR_INCLUDE_DRIVERS_FIRMWARE_QEMU_FWCFG_H_
14#define ZEPHYR_INCLUDE_DRIVERS_FIRMWARE_QEMU_FWCFG_H_
34#define FW_CFG_SIGNATURE 0x0000
36#define FW_CFG_ID 0x0001
38#define FW_CFG_FILE_DIR 0x0019
41#define FW_CFG_ID_F_TRADITIONAL BIT(0)
43#define FW_CFG_ID_F_DMA BIT(1)
int qemu_fwcfg_read_item(const struct device *dev, uint16_t key, void *buf, size_t len)
Read data from an fw_cfg item.
bool qemu_fwcfg_dma_supported(const struct device *dev)
Check whether fw_cfg DMA feature is available.
int qemu_fwcfg_find_file(const struct device *dev, const char *file, uint16_t *select, uint32_t *size)
Look up a file entry in fw_cfg file directory.
int qemu_fwcfg_get_features(const struct device *dev, uint32_t *features)
Get fw_cfg feature bits reported by the device.
int qemu_fwcfg_write_item(const struct device *dev, uint16_t key, const void *buf, size_t len)
Write data to an fw_cfg item.
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout)
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Runtime device structure (in ROM) per driver instance.
Definition device.h:513