Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
bplibk.h
Go to the documentation of this file.
1 /******************************************************************************/
2 /* */
3 /* bypass library, Copyright (c) 2004 Silicom, Ltd */
4 /* */
5 /* This program is free software; you can redistribute it and/or modify */
6 /* it under the terms of the GNU General Public License as published by */
7 /* the Free Software Foundation, located in the file LICENSE. */
8 /* */
9 /* */
10 /* bplib.h */
11 /* */
12 /******************************************************************************/
13 #ifndef BYPASS_H
14 #define BYPASS_H
15 
16 #include "bp_ioctl.h"
17 #include "libbp_sd.h"
18 
19 #define IF_NAME "eth"
20 #define SILICOM_VID 0x1374
21 #define SILICOM_BP_PID_MIN 0x24
22 #define SILICOM_BP_PID_MAX 0x5f
23 #define INTEL_PEG4BPII_PID 0x10a0
24 #define INTEL_PEG4BPFII_PID 0x10a1
25 
26 #define PEGII_IF_SERIES(vid, pid) \
27  ((vid==0x8086)&& \
28  ((pid==INTEL_PEG4BPII_PID)|| \
29  (pid==INTEL_PEG4BPFII_PID)))
30 
31 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10))
32 #define pci_get_class pci_find_class
33 
34 #define pci_get_device pci_find_device
35 
36 #endif
37 
38 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,10))
39 #define EXPORT_SYMBOL_NOVERS EXPORT_SYMBOL
40 #endif
41 
42 #ifdef BP_VENDOR_SUPPORT
43 char *bp_desc_array[] =
44  { "e1000bp", "e1000bpe", "slcm5700", "bnx2xbp", "ixgbp", "ixgbpe", NULL };
45 #endif
46 
47 #endif