nuttx/drivers/virtio
Bowen Wang e9a146bbfc virtio-mmio: use byte to byte in read/write config when length != 1,2,4,8
The length of some config elements are not equal to 1,2,4,8, so we can't
assert in virtio_mmio_config_read/write() direclty when length != 1,2,4,8

For example, in virtio_net_config from virtio spec v1.2
struct virtio_net_config {
	u8 mac[6];
	le16 status;
	le16 max_virtqueue_pairs;
	le16 mtu;
	le32 speed;
	u8 duplex;
	u8 rss_max_key_size;
	le16 rss_max_indirection_table_length;
	le32 supported_hash_types;
};

The mac length is 6 and not equal to 1,2,4,8

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-01-06 04:23:05 -08:00
..
CMakeLists.txt audio:add virtio snd driver 2023-08-11 20:40:40 +08:00
Kconfig rptun: Select OPENMAP under RPTUN 2023-12-28 11:08:57 +08:00
Make.defs rpmb: add virtio rpmb support 2023-09-09 00:13:25 +08:00
virtio-blk.c inode/i_private: remove all unnecessary cast for i_private 2023-08-29 08:58:07 +02:00
virtio-blk.h virtio: add virtio framework in NuttX 2023-08-10 03:39:39 +08:00
virtio-gpu.c virtio-gpu: convert virito-gpu fb_register to virtio_gpu_fb_register 2023-12-13 09:05:17 -08:00
virtio-gpu.h virtio-gpu: convert virito-gpu fb_register to virtio_gpu_fb_register 2023-12-13 09:05:17 -08:00
virtio-input-event-codes.h drivers/virtio: add virtio input driver 2023-08-13 11:47:39 -03:00
virtio-input.c drivers/virtio: add virtio input driver 2023-08-13 11:47:39 -03:00
virtio-input.h drivers/virtio: add virtio input driver 2023-08-13 11:47:39 -03:00
virtio-mmio.c virtio-mmio: use byte to byte in read/write config when length != 1,2,4,8 2024-01-06 04:23:05 -08:00
virtio-net.c virtio-net:Fix the compile error. 2023-12-21 01:21:01 -08:00
virtio-net.h virtio: add virtio framework in NuttX 2023-08-10 03:39:39 +08:00
virtio-rng.c virtio: add virtio framework in NuttX 2023-08-10 03:39:39 +08:00
virtio-rng.h virtio: add virtio framework in NuttX 2023-08-10 03:39:39 +08:00
virtio-rpmb.c rpmb: add virtio rpmb support 2023-09-09 00:13:25 +08:00
virtio-rpmb.h rpmb: add virtio rpmb support 2023-09-09 00:13:25 +08:00
virtio-serial.c virtio: add virtio framework in NuttX 2023-08-10 03:39:39 +08:00
virtio-serial.h virtio: add virtio framework in NuttX 2023-08-10 03:39:39 +08:00
virtio-snd.c audio:add state sync for virtio snd device 2023-09-25 21:04:59 +08:00
virtio-snd.h audio:add virtio snd driver 2023-08-11 20:40:40 +08:00
virtio.c rpmb: add virtio rpmb support 2023-09-09 00:13:25 +08:00