mirror of
https://github.com/apache/nuttx.git
synced 2026-08-04 13:49:06 +00:00
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>
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Make.defs | ||
| virtio-blk.c | ||
| virtio-blk.h | ||
| virtio-gpu.c | ||
| virtio-gpu.h | ||
| virtio-input-event-codes.h | ||
| virtio-input.c | ||
| virtio-input.h | ||
| virtio-mmio.c | ||
| virtio-net.c | ||
| virtio-net.h | ||
| virtio-rng.c | ||
| virtio-rng.h | ||
| virtio-rpmb.c | ||
| virtio-rpmb.h | ||
| virtio-serial.c | ||
| virtio-serial.h | ||
| virtio-snd.c | ||
| virtio-snd.h | ||
| virtio.c | ||