Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ib_smi.h File Reference
#include <rdma/ib_mad.h>

Go to the source code of this file.

Data Structures

struct  ib_smp
 
struct  ib_port_info
 

Macros

#define IB_SMP_DATA_SIZE   64
 
#define IB_SMP_MAX_PATH_HOPS   64
 
#define IB_SMP_DIRECTION   cpu_to_be16(0x8000)
 
#define IB_SMP_ATTR_NOTICE   cpu_to_be16(0x0002)
 
#define IB_SMP_ATTR_NODE_DESC   cpu_to_be16(0x0010)
 
#define IB_SMP_ATTR_NODE_INFO   cpu_to_be16(0x0011)
 
#define IB_SMP_ATTR_SWITCH_INFO   cpu_to_be16(0x0012)
 
#define IB_SMP_ATTR_GUID_INFO   cpu_to_be16(0x0014)
 
#define IB_SMP_ATTR_PORT_INFO   cpu_to_be16(0x0015)
 
#define IB_SMP_ATTR_PKEY_TABLE   cpu_to_be16(0x0016)
 
#define IB_SMP_ATTR_SL_TO_VL_TABLE   cpu_to_be16(0x0017)
 
#define IB_SMP_ATTR_VL_ARB_TABLE   cpu_to_be16(0x0018)
 
#define IB_SMP_ATTR_LINEAR_FORWARD_TABLE   cpu_to_be16(0x0019)
 
#define IB_SMP_ATTR_RANDOM_FORWARD_TABLE   cpu_to_be16(0x001A)
 
#define IB_SMP_ATTR_MCAST_FORWARD_TABLE   cpu_to_be16(0x001B)
 
#define IB_SMP_ATTR_SM_INFO   cpu_to_be16(0x0020)
 
#define IB_SMP_ATTR_VENDOR_DIAG   cpu_to_be16(0x0030)
 
#define IB_SMP_ATTR_LED_INFO   cpu_to_be16(0x0031)
 
#define IB_SMP_ATTR_VENDOR_MASK   cpu_to_be16(0xFF00)
 

Functions

struct ib_smp __attribute__ ((packed))
 

Variables

u8 base_version
 
u8 mgmt_class
 
u8 class_version
 
u8 method
 
__be16 status
 
u8 hop_ptr
 
u8 hop_cnt
 
__be64 tid
 
__be16 attr_id
 
__be16 resv
 
__be32 attr_mod
 
__be64 mkey
 
__be16 dr_slid
 
__be16 dr_dlid
 
u8 reserved [28]
 
u8 data [IB_SMP_DATA_SIZE]
 
u8 initial_path [IB_SMP_MAX_PATH_HOPS]
 
u8 return_path [IB_SMP_MAX_PATH_HOPS]
 
struct ib_port_info __attribute__
 

Macro Definition Documentation

#define IB_SMP_ATTR_GUID_INFO   cpu_to_be16(0x0014)

Definition at line 73 of file ib_smi.h.

#define IB_SMP_ATTR_LED_INFO   cpu_to_be16(0x0031)

Definition at line 83 of file ib_smi.h.

#define IB_SMP_ATTR_LINEAR_FORWARD_TABLE   cpu_to_be16(0x0019)

Definition at line 78 of file ib_smi.h.

#define IB_SMP_ATTR_MCAST_FORWARD_TABLE   cpu_to_be16(0x001B)

Definition at line 80 of file ib_smi.h.

#define IB_SMP_ATTR_NODE_DESC   cpu_to_be16(0x0010)

Definition at line 70 of file ib_smi.h.

#define IB_SMP_ATTR_NODE_INFO   cpu_to_be16(0x0011)

Definition at line 71 of file ib_smi.h.

#define IB_SMP_ATTR_NOTICE   cpu_to_be16(0x0002)

Definition at line 69 of file ib_smi.h.

#define IB_SMP_ATTR_PKEY_TABLE   cpu_to_be16(0x0016)

Definition at line 75 of file ib_smi.h.

#define IB_SMP_ATTR_PORT_INFO   cpu_to_be16(0x0015)

Definition at line 74 of file ib_smi.h.

#define IB_SMP_ATTR_RANDOM_FORWARD_TABLE   cpu_to_be16(0x001A)

Definition at line 79 of file ib_smi.h.

#define IB_SMP_ATTR_SL_TO_VL_TABLE   cpu_to_be16(0x0017)

Definition at line 76 of file ib_smi.h.

#define IB_SMP_ATTR_SM_INFO   cpu_to_be16(0x0020)

Definition at line 81 of file ib_smi.h.

#define IB_SMP_ATTR_SWITCH_INFO   cpu_to_be16(0x0012)

Definition at line 72 of file ib_smi.h.

#define IB_SMP_ATTR_VENDOR_DIAG   cpu_to_be16(0x0030)

Definition at line 82 of file ib_smi.h.

#define IB_SMP_ATTR_VENDOR_MASK   cpu_to_be16(0xFF00)

Definition at line 84 of file ib_smi.h.

#define IB_SMP_ATTR_VL_ARB_TABLE   cpu_to_be16(0x0018)

Definition at line 77 of file ib_smi.h.

#define IB_SMP_DATA_SIZE   64

Definition at line 42 of file ib_smi.h.

#define IB_SMP_DIRECTION   cpu_to_be16(0x8000)

Definition at line 66 of file ib_smi.h.

#define IB_SMP_MAX_PATH_HOPS   64

Definition at line 43 of file ib_smi.h.

Function Documentation

struct ib_smp __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

__be16 attr_id

Definition at line 73 of file ib_smi.h.

__be32 attr_mod

Definition at line 75 of file ib_smi.h.

u8 base_version

Definition at line 65 of file ib_smi.h.

u8 class_version

Definition at line 67 of file ib_smi.h.

Definition at line 80 of file ib_smi.h.

__be16 dr_dlid

Definition at line 78 of file ib_smi.h.

__be16 dr_slid

Definition at line 77 of file ib_smi.h.

u8 hop_cnt

Definition at line 71 of file ib_smi.h.

u8 hop_ptr

Definition at line 70 of file ib_smi.h.

u8 initial_path[IB_SMP_MAX_PATH_HOPS]

Definition at line 81 of file ib_smi.h.

u8 method

Definition at line 68 of file ib_smi.h.

u8 mgmt_class

Definition at line 66 of file ib_smi.h.

__be64 mkey

Definition at line 76 of file ib_smi.h.

u8 reserved[28]

Definition at line 79 of file ib_smi.h.

__be16 resv

Definition at line 74 of file ib_smi.h.

u8 return_path[IB_SMP_MAX_PATH_HOPS]

Definition at line 82 of file ib_smi.h.

Definition at line 69 of file ib_smi.h.

__be64 tid

Definition at line 72 of file ib_smi.h.