Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
qib_qsfp.c File Reference
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/vmalloc.h>
#include "qib.h"
#include "qib_qsfp.h"

Go to the source code of this file.

Macros

#define QSFP_MAX_RETRY   4
 
#define QSFP_DUMP_CHUNK   16 /* Holds longest string */
 
#define QSFP_DEFAULT_HDR_CNT   224
 

Functions

int qib_refresh_qsfp_cache (struct qib_pportdata *ppd, struct qib_qsfp_cache *cp)
 
int qib_qsfp_mod_present (struct qib_pportdata *ppd)
 
void qib_qsfp_init (struct qib_qsfp_data *qd, void(*fevent)(struct work_struct *))
 
void qib_qsfp_deinit (struct qib_qsfp_data *qd)
 
int qib_qsfp_dump (struct qib_pportdata *ppd, char *buf, int len)
 

Variables

const char *const qib_qsfp_devtech [16]
 

Macro Definition Documentation

#define QSFP_DEFAULT_HDR_CNT   224

Definition at line 437 of file qib_qsfp.c.

#define QSFP_DUMP_CHUNK   16 /* Holds longest string */

Definition at line 436 of file qib_qsfp.c.

#define QSFP_MAX_RETRY   4

Definition at line 45 of file qib_qsfp.c.

Function Documentation

void qib_qsfp_deinit ( struct qib_qsfp_data qd)

Definition at line 486 of file qib_qsfp.c.

int qib_qsfp_dump ( struct qib_pportdata ppd,
char buf,
int  len 
)

Definition at line 496 of file qib_qsfp.c.

void qib_qsfp_init ( struct qib_qsfp_data qd,
void(*)(struct work_struct *)  fevent 
)

Definition at line 458 of file qib_qsfp.c.

int qib_qsfp_mod_present ( struct qib_pportdata ppd)

Definition at line 441 of file qib_qsfp.c.

int qib_refresh_qsfp_cache ( struct qib_pportdata ppd,
struct qib_qsfp_cache cp 
)

Definition at line 271 of file qib_qsfp.c.

Variable Documentation

const char* const qib_qsfp_devtech[16]
Initial value:
= {
"850nm VCSEL", "1310nm VCSEL", "1550nm VCSEL", "1310nm FP",
"1310nm DFB", "1550nm DFB", "1310nm EML", "1550nm EML",
"Cu Misc", "1490nm DFB", "Cu NoEq", "Cu Eq",
"Undef", "Cu Active BothEq", "Cu FarEq", "Cu NearEq"
}

Definition at line 429 of file qib_qsfp.c.