Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
n2_core.h File Reference

Go to the source code of this file.

Data Structures

struct  ino_blob
 
struct  spu_mdesc_info
 
struct  n2_crypto
 
struct  n2_mau
 
struct  cwq_initial_entry
 
struct  cwq_ext_entry
 
struct  cwq_final_entry
 

Macros

#define CWQ_ENTRY_SIZE   64
 
#define CWQ_NUM_ENTRIES   64
 
#define MAU_ENTRY_SIZE   64
 
#define MAU_NUM_ENTRIES   64
 
#define CONTROL_LEN   0x000000000000ffffULL
 
#define CONTROL_LEN_SHIFT   0
 
#define CONTROL_HMAC_KEY_LEN   0x0000000000ff0000ULL
 
#define CONTROL_HMAC_KEY_LEN_SHIFT   16
 
#define CONTROL_ENC_TYPE   0x00000000ff000000ULL
 
#define CONTROL_ENC_TYPE_SHIFT   24
 
#define ENC_TYPE_ALG_RC4_STREAM   0x00ULL
 
#define ENC_TYPE_ALG_RC4_NOSTREAM   0x04ULL
 
#define ENC_TYPE_ALG_DES   0x08ULL
 
#define ENC_TYPE_ALG_3DES   0x0cULL
 
#define ENC_TYPE_ALG_AES128   0x10ULL
 
#define ENC_TYPE_ALG_AES192   0x14ULL
 
#define ENC_TYPE_ALG_AES256   0x18ULL
 
#define ENC_TYPE_ALG_RESERVED   0x1cULL
 
#define ENC_TYPE_ALG_MASK   0x1cULL
 
#define ENC_TYPE_CHAINING_ECB   0x00ULL
 
#define ENC_TYPE_CHAINING_CBC   0x01ULL
 
#define ENC_TYPE_CHAINING_CFB   0x02ULL
 
#define ENC_TYPE_CHAINING_COUNTER   0x03ULL
 
#define ENC_TYPE_CHAINING_MASK   0x03ULL
 
#define CONTROL_AUTH_TYPE   0x0000001f00000000ULL
 
#define CONTROL_AUTH_TYPE_SHIFT   32
 
#define AUTH_TYPE_RESERVED   0x00ULL
 
#define AUTH_TYPE_MD5   0x01ULL
 
#define AUTH_TYPE_SHA1   0x02ULL
 
#define AUTH_TYPE_SHA256   0x03ULL
 
#define AUTH_TYPE_CRC32   0x04ULL
 
#define AUTH_TYPE_HMAC_MD5   0x05ULL
 
#define AUTH_TYPE_HMAC_SHA1   0x06ULL
 
#define AUTH_TYPE_HMAC_SHA256   0x07ULL
 
#define AUTH_TYPE_TCP_CHECKSUM   0x08ULL
 
#define AUTH_TYPE_SSL_HMAC_MD5   0x09ULL
 
#define AUTH_TYPE_SSL_HMAC_SHA1   0x0aULL
 
#define AUTH_TYPE_SSL_HMAC_SHA256   0x0bULL
 
#define CONTROL_STRAND   0x000000e000000000ULL
 
#define CONTROL_STRAND_SHIFT   37
 
#define CONTROL_HASH_LEN   0x0000ff0000000000ULL
 
#define CONTROL_HASH_LEN_SHIFT   40
 
#define CONTROL_INTERRUPT   0x0001000000000000ULL
 
#define CONTROL_STORE_FINAL_AUTH_STATE   0x0002000000000000ULL
 
#define CONTROL_RESERVED   0x001c000000000000ULL
 
#define CONTROL_HV_DONE   0x0004000000000000ULL
 
#define CONTROL_HV_PROTOCOL_ERROR   0x0008000000000000ULL
 
#define CONTROL_HV_HARDWARE_ERROR   0x0010000000000000ULL
 
#define CONTROL_END_OF_BLOCK   0x0020000000000000ULL
 
#define CONTROL_START_OF_BLOCK   0x0040000000000000ULL
 
#define CONTROL_ENCRYPT   0x0080000000000000ULL
 
#define CONTROL_OPCODE   0xff00000000000000ULL
 
#define CONTROL_OPCODE_SHIFT   56
 
#define OPCODE_INPLACE_BIT   0x80ULL
 
#define OPCODE_SSL_KEYBLOCK   0x10ULL
 
#define OPCODE_COPY   0x20ULL
 
#define OPCODE_ENCRYPT   0x40ULL
 
#define OPCODE_AUTH_MAC   0x41ULL
 
#define HV_NCS_QTYPE_MAU   0x01
 
#define HV_NCS_QTYPE_CWQ   0x02
 
#define HV_FAST_NCS_QCONF   0x111
 
#define HV_FAST_NCS_QINFO   0x112
 
#define HV_FAST_NCS_GETHEAD   0x113
 
#define HV_FAST_NCS_GETTAIL   0x114
 
#define HV_FAST_NCS_SETTAIL   0x115
 
#define HV_FAST_NCS_QHANDLE_TO_DEVINO   0x116
 
#define HV_FAST_NCS_SETHEAD_MARKER   0x117
 

Functions

unsigned long sun4v_ncs_qconf (unsigned long queue_type, unsigned long queue_ra, unsigned long num_entries, unsigned long *qhandle)
 
unsigned long sun4v_ncs_qinfo (unsigned long qhandle, unsigned long *queue_type, unsigned long *queue_ra, unsigned long *num_entries)
 
unsigned long sun4v_ncs_gethead (unsigned long qhandle, unsigned long *head)
 
unsigned long sun4v_ncs_gettail (unsigned long qhandle, unsigned long *tail)
 
unsigned long sun4v_ncs_settail (unsigned long qhandle, unsigned long tail)
 
unsigned long sun4v_ncs_qhandle_to_devino (unsigned long qhandle, unsigned long *devino)
 
unsigned long sun4v_ncs_sethead_marker (unsigned long qhandle, unsigned long head)
 

Macro Definition Documentation

#define AUTH_TYPE_CRC32   0x04ULL

Definition at line 92 of file n2_core.h.

#define AUTH_TYPE_HMAC_MD5   0x05ULL

Definition at line 93 of file n2_core.h.

#define AUTH_TYPE_HMAC_SHA1   0x06ULL

Definition at line 94 of file n2_core.h.

#define AUTH_TYPE_HMAC_SHA256   0x07ULL

Definition at line 95 of file n2_core.h.

#define AUTH_TYPE_MD5   0x01ULL

Definition at line 89 of file n2_core.h.

#define AUTH_TYPE_RESERVED   0x00ULL

Definition at line 88 of file n2_core.h.

#define AUTH_TYPE_SHA1   0x02ULL

Definition at line 90 of file n2_core.h.

#define AUTH_TYPE_SHA256   0x03ULL

Definition at line 91 of file n2_core.h.

#define AUTH_TYPE_SSL_HMAC_MD5   0x09ULL

Definition at line 97 of file n2_core.h.

#define AUTH_TYPE_SSL_HMAC_SHA1   0x0aULL

Definition at line 98 of file n2_core.h.

#define AUTH_TYPE_SSL_HMAC_SHA256   0x0bULL

Definition at line 99 of file n2_core.h.

#define AUTH_TYPE_TCP_CHECKSUM   0x08ULL

Definition at line 96 of file n2_core.h.

#define CONTROL_AUTH_TYPE   0x0000001f00000000ULL

Definition at line 86 of file n2_core.h.

#define CONTROL_AUTH_TYPE_SHIFT   32

Definition at line 87 of file n2_core.h.

#define CONTROL_ENC_TYPE   0x00000000ff000000ULL

Definition at line 70 of file n2_core.h.

#define CONTROL_ENC_TYPE_SHIFT   24

Definition at line 71 of file n2_core.h.

#define CONTROL_ENCRYPT   0x0080000000000000ULL

Definition at line 112 of file n2_core.h.

#define CONTROL_END_OF_BLOCK   0x0020000000000000ULL

Definition at line 110 of file n2_core.h.

#define CONTROL_HASH_LEN   0x0000ff0000000000ULL

Definition at line 102 of file n2_core.h.

#define CONTROL_HASH_LEN_SHIFT   40

Definition at line 103 of file n2_core.h.

#define CONTROL_HMAC_KEY_LEN   0x0000000000ff0000ULL

Definition at line 68 of file n2_core.h.

#define CONTROL_HMAC_KEY_LEN_SHIFT   16

Definition at line 69 of file n2_core.h.

#define CONTROL_HV_DONE   0x0004000000000000ULL

Definition at line 107 of file n2_core.h.

#define CONTROL_HV_HARDWARE_ERROR   0x0010000000000000ULL

Definition at line 109 of file n2_core.h.

#define CONTROL_HV_PROTOCOL_ERROR   0x0008000000000000ULL

Definition at line 108 of file n2_core.h.

#define CONTROL_INTERRUPT   0x0001000000000000ULL

Definition at line 104 of file n2_core.h.

#define CONTROL_LEN   0x000000000000ffffULL

Definition at line 66 of file n2_core.h.

#define CONTROL_LEN_SHIFT   0

Definition at line 67 of file n2_core.h.

#define CONTROL_OPCODE   0xff00000000000000ULL

Definition at line 113 of file n2_core.h.

#define CONTROL_OPCODE_SHIFT   56

Definition at line 114 of file n2_core.h.

#define CONTROL_RESERVED   0x001c000000000000ULL

Definition at line 106 of file n2_core.h.

#define CONTROL_START_OF_BLOCK   0x0040000000000000ULL

Definition at line 111 of file n2_core.h.

#define CONTROL_STORE_FINAL_AUTH_STATE   0x0002000000000000ULL

Definition at line 105 of file n2_core.h.

#define CONTROL_STRAND   0x000000e000000000ULL

Definition at line 100 of file n2_core.h.

#define CONTROL_STRAND_SHIFT   37

Definition at line 101 of file n2_core.h.

#define CWQ_ENTRY_SIZE   64

Definition at line 27 of file n2_core.h.

#define CWQ_NUM_ENTRIES   64

Definition at line 28 of file n2_core.h.

#define ENC_TYPE_ALG_3DES   0x0cULL

Definition at line 75 of file n2_core.h.

#define ENC_TYPE_ALG_AES128   0x10ULL

Definition at line 76 of file n2_core.h.

#define ENC_TYPE_ALG_AES192   0x14ULL

Definition at line 77 of file n2_core.h.

#define ENC_TYPE_ALG_AES256   0x18ULL

Definition at line 78 of file n2_core.h.

#define ENC_TYPE_ALG_DES   0x08ULL

Definition at line 74 of file n2_core.h.

#define ENC_TYPE_ALG_MASK   0x1cULL

Definition at line 80 of file n2_core.h.

#define ENC_TYPE_ALG_RC4_NOSTREAM   0x04ULL

Definition at line 73 of file n2_core.h.

#define ENC_TYPE_ALG_RC4_STREAM   0x00ULL

Definition at line 72 of file n2_core.h.

#define ENC_TYPE_ALG_RESERVED   0x1cULL

Definition at line 79 of file n2_core.h.

#define ENC_TYPE_CHAINING_CBC   0x01ULL

Definition at line 82 of file n2_core.h.

#define ENC_TYPE_CHAINING_CFB   0x02ULL

Definition at line 83 of file n2_core.h.

#define ENC_TYPE_CHAINING_COUNTER   0x03ULL

Definition at line 84 of file n2_core.h.

#define ENC_TYPE_CHAINING_ECB   0x00ULL

Definition at line 81 of file n2_core.h.

#define ENC_TYPE_CHAINING_MASK   0x03ULL

Definition at line 85 of file n2_core.h.

#define HV_FAST_NCS_GETHEAD   0x113

Definition at line 172 of file n2_core.h.

#define HV_FAST_NCS_GETTAIL   0x114

Definition at line 181 of file n2_core.h.

#define HV_FAST_NCS_QCONF   0x111

Definition at line 152 of file n2_core.h.

#define HV_FAST_NCS_QHANDLE_TO_DEVINO   0x116

Definition at line 199 of file n2_core.h.

#define HV_FAST_NCS_QINFO   0x112

Definition at line 163 of file n2_core.h.

#define HV_FAST_NCS_SETHEAD_MARKER   0x117

Definition at line 208 of file n2_core.h.

#define HV_FAST_NCS_SETTAIL   0x115

Definition at line 190 of file n2_core.h.

#define HV_NCS_QTYPE_CWQ   0x02

Definition at line 125 of file n2_core.h.

#define HV_NCS_QTYPE_MAU   0x01

Definition at line 124 of file n2_core.h.

#define MAU_ENTRY_SIZE   64

Definition at line 30 of file n2_core.h.

#define MAU_NUM_ENTRIES   64

Definition at line 31 of file n2_core.h.

#define OPCODE_AUTH_MAC   0x41ULL

Definition at line 119 of file n2_core.h.

#define OPCODE_COPY   0x20ULL

Definition at line 117 of file n2_core.h.

#define OPCODE_ENCRYPT   0x40ULL

Definition at line 118 of file n2_core.h.

#define OPCODE_INPLACE_BIT   0x80ULL

Definition at line 115 of file n2_core.h.

#define OPCODE_SSL_KEYBLOCK   0x10ULL

Definition at line 116 of file n2_core.h.

Function Documentation

unsigned long sun4v_ncs_gethead ( unsigned long  qhandle,
unsigned long head 
)
unsigned long sun4v_ncs_gettail ( unsigned long  qhandle,
unsigned long tail 
)
unsigned long sun4v_ncs_qconf ( unsigned long  queue_type,
unsigned long  queue_ra,
unsigned long  num_entries,
unsigned long qhandle 
)
unsigned long sun4v_ncs_qhandle_to_devino ( unsigned long  qhandle,
unsigned long devino 
)
unsigned long sun4v_ncs_qinfo ( unsigned long  qhandle,
unsigned long queue_type,
unsigned long queue_ra,
unsigned long num_entries 
)
unsigned long sun4v_ncs_sethead_marker ( unsigned long  qhandle,
unsigned long  head 
)
unsigned long sun4v_ncs_settail ( unsigned long  qhandle,
unsigned long  tail 
)