Revision f46f15bc hw/virtio.h
b/hw/virtio.h | ||
---|---|---|
48 | 48 |
|
49 | 49 |
struct VirtQueue; |
50 | 50 |
|
51 |
static inline target_phys_addr_t vring_align(target_phys_addr_t addr, |
|
52 |
unsigned long align) |
|
53 |
{ |
|
54 |
return (addr + align - 1) & ~(align - 1); |
|
55 |
} |
|
56 |
|
|
51 | 57 |
typedef struct VirtQueue VirtQueue; |
52 | 58 |
typedef struct VirtIODevice VirtIODevice; |
53 | 59 |
|
Also available in: Unified diff