diff options
Diffstat (limited to 'linux-2.6-xen-sparse/drivers/xen/netback/common.h')
-rw-r--r-- | linux-2.6-xen-sparse/drivers/xen/netback/common.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/linux-2.6-xen-sparse/drivers/xen/netback/common.h b/linux-2.6-xen-sparse/drivers/xen/netback/common.h index a1f9146511..c3c877ce6c 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netback/common.h +++ b/linux-2.6-xen-sparse/drivers/xen/netback/common.h @@ -20,6 +20,13 @@ #include <asm/io.h> #include <asm/pgalloc.h> +#if defined(CONFIG_XEN_NETDEV_GRANT_TX) || defined(CONFIG_XEN_NETDEV_GRANT_RX) +#include <asm-xen/xen-public/grant_table.h> +#include <asm-xen/gnttab.h> +#endif + + + #if 0 #define ASSERT(_p) \ if ( !(_p) ) { printk("Assertion '%s' failed, line %d, file %s", #_p , \ @@ -40,7 +47,17 @@ typedef struct netif_st { /* Physical parameters of the comms window. */ unsigned long tx_shmem_frame; +#ifdef CONFIG_XEN_NETDEV_GRANT_TX + u16 tx_shmem_handle; + memory_t tx_shmem_vaddr; + grant_ref_t tx_shmem_ref; +#endif unsigned long rx_shmem_frame; +#ifdef CONFIG_XEN_NETDEV_GRANT_RX + u16 rx_shmem_handle; + memory_t rx_shmem_vaddr; + grant_ref_t rx_shmem_ref; +#endif unsigned int evtchn; /* The shared rings and indexes. */ |