Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
targetos.h File Reference
#include <asm/io.h>
#include <linux/netdevice.h>
#include <linux/fddidevice.h>
#include <linux/skbuff.h>
#include <linux/pci.h>
#include <linux/init.h>
#include "hwmtm.h"
#include <linux/sockios.h>

Go to the source code of this file.

Data Structures

struct  s_skfp_ioctl
 
struct  s_smt_os
 

Macros

#define PCI_VENDOR_ID_SK   0x1148
 
#define PCI_DEVICE_ID_SK_FP   0x4000
 
#define FDDI_MAC_HDR_LEN   13
 
#define FDDI_RII   0x01 /* routing information bit */
 
#define FDDI_RCF_DIR_BIT   0x80
 
#define FDDI_RCF_LEN_MASK   0x1f
 
#define FDDI_RCF_BROADCAST   0x8000
 
#define FDDI_RCF_LIMITED_BROADCAST   0xA000
 
#define FDDI_RCF_FRAME2K   0x20
 
#define FDDI_RCF_FRAME4K   0x30
 
#define ADDR(a)   (((a)>>7) ? (outp(smc->hw.iop+B0_RAP,(a)>>7), (smc->hw.iop+( ((a)&0x7F) | ((a)>>7 ? 0x80:0)) )) : (smc->hw.iop+(((a)&0x7F)|((a)>>7 ? 0x80:0))))
 
#define TRUE   1
 
#define FALSE   0
 
#define FDDI_TRACE(string, arg1, arg2, arg3)
 
#define SMT_PAGESIZE   PAGE_SIZE
 
#define TICKS_PER_SECOND   HZ
 
#define SMC_VERSION   1
 
#define NO_ADDRESS   0xffe0 /* No Device (I/O) Address */
 
#define SKFP_MAX_NUM_BOARDS   8 /* maximum number of PCI boards */
 
#define SK_BUS_TYPE_PCI   0
 
#define SK_BUS_TYPE_EISA   1
 
#define FP_IO_LEN   256 /* length of IO area used */
 
#define u8   unsigned char
 
#define u16   unsigned short
 
#define u32   unsigned int
 
#define MAX_TX_QUEUE_LEN   20
 
#define MAX_FRAME_SIZE   4550
 
#define RX_LOW_WATERMARK   NUM_RECEIVE_BUFFERS / 2
 
#define TX_LOW_WATERMARK   NUM_TRANSMIT_BUFFERS - 2
 
#define SKFPIOCTL   SIOCDEVPRIVATE
 
#define SKFP_GET_STATS   0x05 /* Get the driver statistics */
 
#define SKFP_CLR_STATS   0x06 /* Zero out the driver statistics */
 

Typedefs

typedef struct s_smt_os skfddi_priv
 

Macro Definition Documentation

#define ADDR (   a)    (((a)>>7) ? (outp(smc->hw.iop+B0_RAP,(a)>>7), (smc->hw.iop+( ((a)&0x7F) | ((a)>>7 ? 0x80:0)) )) : (smc->hw.iop+(((a)&0x7F)|((a)>>7 ? 0x80:0))))

Definition at line 58 of file targetos.h.

#define FALSE   0

Definition at line 64 of file targetos.h.

#define FDDI_MAC_HDR_LEN   13

Definition at line 32 of file targetos.h.

#define FDDI_RCF_BROADCAST   0x8000

Definition at line 37 of file targetos.h.

#define FDDI_RCF_DIR_BIT   0x80

Definition at line 35 of file targetos.h.

#define FDDI_RCF_FRAME2K   0x20

Definition at line 39 of file targetos.h.

#define FDDI_RCF_FRAME4K   0x30

Definition at line 40 of file targetos.h.

#define FDDI_RCF_LEN_MASK   0x1f

Definition at line 36 of file targetos.h.

#define FDDI_RCF_LIMITED_BROADCAST   0xA000

Definition at line 38 of file targetos.h.

#define FDDI_RII   0x01 /* routing information bit */

Definition at line 34 of file targetos.h.

#define FDDI_TRACE (   string,
  arg1,
  arg2,
  arg3 
)

Definition at line 68 of file targetos.h.

#define FP_IO_LEN   256 /* length of IO area used */

Definition at line 91 of file targetos.h.

#define MAX_FRAME_SIZE   4550

Definition at line 98 of file targetos.h.

#define MAX_TX_QUEUE_LEN   20

Definition at line 97 of file targetos.h.

#define NO_ADDRESS   0xffe0 /* No Device (I/O) Address */

Definition at line 85 of file targetos.h.

#define PCI_DEVICE_ID_SK_FP   0x4000

Definition at line 26 of file targetos.h.

#define PCI_VENDOR_ID_SK   0x1148

Definition at line 25 of file targetos.h.

#define RX_LOW_WATERMARK   NUM_RECEIVE_BUFFERS / 2

Definition at line 100 of file targetos.h.

#define SK_BUS_TYPE_EISA   1

Definition at line 89 of file targetos.h.

#define SK_BUS_TYPE_PCI   0

Definition at line 88 of file targetos.h.

#define SKFP_CLR_STATS   0x06 /* Zero out the driver statistics */

Definition at line 120 of file targetos.h.

#define SKFP_GET_STATS   0x05 /* Get the driver statistics */

Definition at line 119 of file targetos.h.

#define SKFP_MAX_NUM_BOARDS   8 /* maximum number of PCI boards */

Definition at line 86 of file targetos.h.

#define SKFPIOCTL   SIOCDEVPRIVATE

Definition at line 108 of file targetos.h.

#define SMC_VERSION   1

Definition at line 79 of file targetos.h.

#define SMT_PAGESIZE   PAGE_SIZE

Definition at line 72 of file targetos.h.

#define TICKS_PER_SECOND   HZ

Definition at line 78 of file targetos.h.

#define TRUE   1

Definition at line 63 of file targetos.h.

#define TX_LOW_WATERMARK   NUM_TRANSMIT_BUFFERS - 2

Definition at line 101 of file targetos.h.

#define u16   unsigned short

Definition at line 94 of file targetos.h.

#define u32   unsigned int

Definition at line 95 of file targetos.h.

#define u8   unsigned char

Definition at line 93 of file targetos.h.

Typedef Documentation

Definition at line 163 of file targetos.h.