Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
vnic_dev.h File Reference
#include "vnic_resource.h"
#include "vnic_devcmd.h"

Go to the source code of this file.

Data Structures

struct  vnic_dev_bar
 
struct  vnic_dev_ring
 

Macros

#define VNIC_PADDR_TARGET   0x0000000000000000ULL
 
#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Enumerations

enum  vnic_dev_intr_mode {
  VNIC_DEV_INTR_MODE_UNKNOWN, VNIC_DEV_INTR_MODE_INTX, VNIC_DEV_INTR_MODE_MSI, VNIC_DEV_INTR_MODE_MSIX,
  VNIC_DEV_INTR_MODE_UNKNOWN, VNIC_DEV_INTR_MODE_INTX, VNIC_DEV_INTR_MODE_MSI, VNIC_DEV_INTR_MODE_MSIX
}
 

Functions

voidvnic_dev_priv (struct vnic_dev *vdev)
 
unsigned int vnic_dev_get_res_count (struct vnic_dev *vdev, enum vnic_res_type type)
 
void __iomemvnic_dev_get_res (struct vnic_dev *vdev, enum vnic_res_type type, unsigned int index)
 
void vnic_dev_clear_desc_ring (struct vnic_dev_ring *ring)
 
int vnic_dev_alloc_desc_ring (struct vnic_dev *vdev, struct vnic_dev_ring *ring, unsigned int desc_count, unsigned int desc_size)
 
void vnic_dev_free_desc_ring (struct vnic_dev *vdev, struct vnic_dev_ring *ring)
 
int vnic_dev_cmd (struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait)
 
void vnic_dev_cmd_proxy_by_index_start (struct vnic_dev *vdev, u16 index)
 
void vnic_dev_cmd_proxy_end (struct vnic_dev *vdev)
 
int vnic_dev_fw_info (struct vnic_dev *vdev, struct vnic_devcmd_fw_info **fw_info)
 
int vnic_dev_spec (struct vnic_dev *vdev, unsigned int offset, unsigned int size, void *value)
 
int vnic_dev_stats_dump (struct vnic_dev *vdev, struct vnic_stats **stats)
 
int vnic_dev_hang_notify (struct vnic_dev *vdev)
 
int vnic_dev_packet_filter (struct vnic_dev *vdev, int directed, int multicast, int broadcast, int promisc, int allmulti)
 
int vnic_dev_add_addr (struct vnic_dev *vdev, u8 *addr)
 
int vnic_dev_del_addr (struct vnic_dev *vdev, u8 *addr)
 
int vnic_dev_get_mac_addr (struct vnic_dev *vdev, u8 *mac_addr)
 
int vnic_dev_notify_set (struct vnic_dev *vdev, u16 intr)
 
int vnic_dev_notify_unset (struct vnic_dev *vdev)
 
int vnic_dev_link_status (struct vnic_dev *vdev)
 
u32 vnic_dev_port_speed (struct vnic_dev *vdev)
 
u32 vnic_dev_msg_lvl (struct vnic_dev *vdev)
 
u32 vnic_dev_mtu (struct vnic_dev *vdev)
 
int vnic_dev_close (struct vnic_dev *vdev)
 
int vnic_dev_enable_wait (struct vnic_dev *vdev)
 
int vnic_dev_disable (struct vnic_dev *vdev)
 
int vnic_dev_open (struct vnic_dev *vdev, int arg)
 
int vnic_dev_open_done (struct vnic_dev *vdev, int *done)
 
int vnic_dev_init (struct vnic_dev *vdev, int arg)
 
int vnic_dev_deinit (struct vnic_dev *vdev)
 
void vnic_dev_intr_coal_timer_info_default (struct vnic_dev *vdev)
 
int vnic_dev_intr_coal_timer_info (struct vnic_dev *vdev)
 
int vnic_dev_hang_reset (struct vnic_dev *vdev, int arg)
 
int vnic_dev_hang_reset_done (struct vnic_dev *vdev, int *done)
 
void vnic_dev_set_intr_mode (struct vnic_dev *vdev, enum vnic_dev_intr_mode intr_mode)
 
enum vnic_dev_intr_mode vnic_dev_get_intr_mode (struct vnic_dev *vdev)
 
u32 vnic_dev_intr_coal_timer_usec_to_hw (struct vnic_dev *vdev, u32 usec)
 
u32 vnic_dev_intr_coal_timer_hw_to_usec (struct vnic_dev *vdev, u32 hw_cycles)
 
u32 vnic_dev_get_intr_coal_timer_max (struct vnic_dev *vdev)
 
void vnic_dev_unregister (struct vnic_dev *vdev)
 
int vnic_dev_set_ig_vlan_rewrite_mode (struct vnic_dev *vdev, u8 ig_vlan_rewrite_mode)
 
struct vnic_devvnic_dev_register (struct vnic_dev *vdev, void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar, unsigned int num_bars)
 
int vnic_dev_init_prov2 (struct vnic_dev *vdev, u8 *buf, u32 len)
 
int vnic_dev_enable2 (struct vnic_dev *vdev, int active)
 
int vnic_dev_enable2_done (struct vnic_dev *vdev, int *status)
 
int vnic_dev_deinit_done (struct vnic_dev *vdev, int *status)
 
int vnic_dev_set_mac_addr (struct vnic_dev *vdev, u8 *mac_addr)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 45 of file vnic_dev.h.

#define VNIC_PADDR_TARGET   0x0000000000000000ULL

Definition at line 27 of file vnic_dev.h.

Enumeration Type Documentation

Enumerator:
VNIC_DEV_INTR_MODE_UNKNOWN 
VNIC_DEV_INTR_MODE_INTX 
VNIC_DEV_INTR_MODE_MSI 
VNIC_DEV_INTR_MODE_MSIX 
VNIC_DEV_INTR_MODE_UNKNOWN 
VNIC_DEV_INTR_MODE_INTX 
VNIC_DEV_INTR_MODE_MSI 
VNIC_DEV_INTR_MODE_MSIX 

Definition at line 47 of file vnic_dev.h.

Function Documentation

int vnic_dev_add_addr ( struct vnic_dev vdev,
u8 addr 
)

Definition at line 655 of file vnic_dev.c.

int vnic_dev_alloc_desc_ring ( struct vnic_dev vdev,
struct vnic_dev_ring ring,
unsigned int  desc_count,
unsigned int  desc_size 
)

Definition at line 229 of file vnic_dev.c.

void vnic_dev_clear_desc_ring ( struct vnic_dev_ring ring)

Definition at line 224 of file vnic_dev.c.

int vnic_dev_close ( struct vnic_dev vdev)

Definition at line 497 of file vnic_dev.c.

int vnic_dev_cmd ( struct vnic_dev vdev,
enum vnic_devcmd_cmd  cmd,
u64 a0,
u64 a1,
int  wait 
)

Definition at line 393 of file vnic_dev.c.

void vnic_dev_cmd_proxy_by_index_start ( struct vnic_dev vdev,
u16  index 
)

Definition at line 381 of file vnic_dev.c.

void vnic_dev_cmd_proxy_end ( struct vnic_dev vdev)

Definition at line 387 of file vnic_dev.c.

int vnic_dev_deinit ( struct vnic_dev vdev)

Definition at line 813 of file vnic_dev.c.

int vnic_dev_deinit_done ( struct vnic_dev vdev,
int status 
)

Definition at line 1022 of file vnic_dev.c.

int vnic_dev_del_addr ( struct vnic_dev vdev,
u8 addr 
)

Definition at line 672 of file vnic_dev.c.

int vnic_dev_disable ( struct vnic_dev vdev)

Definition at line 515 of file vnic_dev.c.

int vnic_dev_enable2 ( struct vnic_dev vdev,
int  active 
)

Definition at line 993 of file vnic_dev.c.

int vnic_dev_enable2_done ( struct vnic_dev vdev,
int status 
)

Definition at line 1017 of file vnic_dev.c.

int vnic_dev_enable_wait ( struct vnic_dev vdev)

Definition at line 504 of file vnic_dev.c.

void vnic_dev_free_desc_ring ( struct vnic_dev vdev,
struct vnic_dev_ring ring 
)

Definition at line 256 of file vnic_dev.c.

int vnic_dev_fw_info ( struct vnic_dev vdev,
struct vnic_devcmd_fw_info **  fw_info 
)

Definition at line 422 of file vnic_dev.c.

u32 vnic_dev_get_intr_coal_timer_max ( struct vnic_dev vdev)

Definition at line 918 of file vnic_dev.c.

enum vnic_dev_intr_mode vnic_dev_get_intr_mode ( struct vnic_dev vdev)

Definition at line 900 of file vnic_dev.c.

int vnic_dev_get_mac_addr ( struct vnic_dev vdev,
u8 mac_addr 
)

Definition at line 616 of file vnic_dev.c.

void __iomem* vnic_dev_get_res ( struct vnic_dev vdev,
enum vnic_res_type  type,
unsigned int  index 
)

Definition at line 179 of file vnic_dev.c.

unsigned int vnic_dev_get_res_count ( struct vnic_dev vdev,
enum vnic_res_type  type 
)

Definition at line 173 of file vnic_dev.c.

int vnic_dev_hang_notify ( struct vnic_dev vdev)

Definition at line 609 of file vnic_dev.c.

int vnic_dev_hang_reset ( struct vnic_dev vdev,
int  arg 
)

Definition at line 570 of file vnic_dev.c.

int vnic_dev_hang_reset_done ( struct vnic_dev vdev,
int done 
)

Definition at line 587 of file vnic_dev.c.

int vnic_dev_init ( struct vnic_dev vdev,
int  arg 
)

Definition at line 792 of file vnic_dev.c.

int vnic_dev_init_prov2 ( struct vnic_dev vdev,
u8 buf,
u32  len 
)

Definition at line 970 of file vnic_dev.c.

u32 vnic_dev_intr_coal_timer_hw_to_usec ( struct vnic_dev vdev,
u32  hw_cycles 
)

Definition at line 912 of file vnic_dev.c.

int vnic_dev_intr_coal_timer_info ( struct vnic_dev vdev)

Definition at line 830 of file vnic_dev.c.

void vnic_dev_intr_coal_timer_info_default ( struct vnic_dev vdev)

Definition at line 821 of file vnic_dev.c.

u32 vnic_dev_intr_coal_timer_usec_to_hw ( struct vnic_dev vdev,
u32  usec 
)

Definition at line 906 of file vnic_dev.c.

int vnic_dev_link_status ( struct vnic_dev vdev)

Definition at line 862 of file vnic_dev.c.

u32 vnic_dev_msg_lvl ( struct vnic_dev vdev)

Definition at line 878 of file vnic_dev.c.

u32 vnic_dev_mtu ( struct vnic_dev vdev)

Definition at line 886 of file vnic_dev.c.

int vnic_dev_notify_set ( struct vnic_dev vdev,
u16  intr 
)

Definition at line 722 of file vnic_dev.c.

int vnic_dev_notify_unset ( struct vnic_dev vdev)

Definition at line 759 of file vnic_dev.c.

int vnic_dev_open ( struct vnic_dev vdev,
int  arg 
)

Definition at line 522 of file vnic_dev.c.

int vnic_dev_open_done ( struct vnic_dev vdev,
int done 
)

Definition at line 529 of file vnic_dev.c.

int vnic_dev_packet_filter ( struct vnic_dev vdev,
int  directed,
int  multicast,
int  broadcast,
int  promisc,
int  allmulti 
)

Definition at line 635 of file vnic_dev.c.

u32 vnic_dev_port_speed ( struct vnic_dev vdev)

Definition at line 870 of file vnic_dev.c.

void* vnic_dev_priv ( struct vnic_dev vdev)

Definition at line 76 of file vnic_dev.c.

struct vnic_dev* vnic_dev_register ( struct vnic_dev vdev,
void priv,
struct pci_dev pdev,
struct vnic_dev_bar bar,
unsigned int  num_bars 
)
read

Definition at line 943 of file vnic_dev.c.

int vnic_dev_set_ig_vlan_rewrite_mode ( struct vnic_dev vdev,
u8  ig_vlan_rewrite_mode 
)

Definition at line 689 of file vnic_dev.c.

void vnic_dev_set_intr_mode ( struct vnic_dev vdev,
enum vnic_dev_intr_mode  intr_mode 
)

Definition at line 894 of file vnic_dev.c.

int vnic_dev_set_mac_addr ( struct vnic_dev vdev,
u8 mac_addr 
)

Definition at line 1027 of file vnic_dev.c.

int vnic_dev_spec ( struct vnic_dev vdev,
unsigned int  offset,
unsigned int  size,
void value 
)

Definition at line 455 of file vnic_dev.c.

int vnic_dev_stats_dump ( struct vnic_dev vdev,
struct vnic_stats **  stats 
)

Definition at line 478 of file vnic_dev.c.

void vnic_dev_unregister ( struct vnic_dev vdev)

Definition at line 923 of file vnic_dev.c.