mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
![Rusty Russell](/assets/img/avatar_default.png)
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>
13 lines
324 B
C
13 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>
|
|
|