mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 06:36:46 +07:00
ec3d41c4db
This attempts to implement a "virtual I/O" layer which should allow common drivers to be efficiently used across most virtual I/O mechanisms. It will no-doubt need further enhancement. The virtio drivers add buffers to virtio queues; as the buffers are consumed the driver "interrupt" callbacks are invoked. There is also a generic implementation of config space which drivers can query to get setup information from the host. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: Dor Laor <dor.laor@qumranet.com> Cc: Arnd Bergmann <arnd@arndb.de>
14 lines
324 B
C
14 lines
324 B
C
/* Configuration space parsing helpers for virtio.
|
|
*
|
|
* The configuration is [type][len][... len bytes ...] fields.
|
|
*
|
|
* Copyright 2007 Rusty Russell, IBM Corporation.
|
|
* GPL v2 or later.
|
|
*/
|
|
#include <linux/err.h>
|
|
#include <linux/virtio.h>
|
|
#include <linux/virtio_config.h>
|
|
#include <linux/bug.h>
|
|
#include <asm/system.h>
|
|
|