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

Go to the source code of this file.

Data Structures

struct  Memconf
 
struct  Rcv_pkt
 
struct  Xmit_pkt
 
struct  Rcv_resp
 
struct  Xmit_resp
 
struct  Netstat
 
struct  Selftest
 
struct  Info
 
struct  Memdump
 
struct  pcb_struct
 
struct  elp_device
 

Macros

#define ELP_DMA   6
 
#define ELP_RX_PCBS   4
 
#define ELP_MAX_CARDS   4
 
#define PORT_COMMAND   0x00 /* read/write, 8-bit */
 
#define PORT_STATUS   0x02 /* read only, 8-bit */
 
#define PORT_AUXDMA   0x02 /* write only, 8-bit */
 
#define PORT_DATA   0x04 /* read/write, 16-bit */
 
#define PORT_CONTROL   0x06 /* read/write, 8-bit */
 
#define ELP_IO_EXTENT   0x10 /* size of used IO registers */
 
#define ATTN   0x80 /* attention */
 
#define FLSH   0x40 /* flush data register */
 
#define DMAE   0x20 /* DMA enable */
 
#define DIR   0x10 /* direction */
 
#define TCEN   0x08 /* terminal count interrupt enable */
 
#define CMDE   0x04 /* command register interrupt enable */
 
#define HSF2   0x02 /* host status flag 2 */
 
#define HSF1   0x01 /* host status flag 1 */
 
#define HSF_PCB_ACK   HSF1
 
#define HSF_PCB_NAK   HSF2
 
#define HSF_PCB_END   (HSF2|HSF1)
 
#define HSF_PCB_MASK   (HSF2|HSF1)
 
#define HRDY   0x80 /* data register ready */
 
#define HCRE   0x40 /* command register empty */
 
#define ACRF   0x20 /* adapter command register full */
 
#define DONE   0x08 /* DMA done */
 
#define ASF3   0x04 /* adapter status flag 3 */
 
#define ASF2   0x02 /* adapter status flag 2 */
 
#define ASF1   0x01 /* adapter status flag 1 */
 
#define ASF_PCB_ACK   ASF1
 
#define ASF_PCB_NAK   ASF2
 
#define ASF_PCB_END   (ASF2|ASF1)
 
#define ASF_PCB_MASK   (ASF2|ASF1)
 
#define DMA_BRST   0x01 /* DMA burst */
 
#define MAX_PCB_DATA   62
 
#define TIMEOUT   300
 
#define RECV_STATION   0x00
 
#define RECV_BROAD   0x01
 
#define RECV_MULTI   0x02
 
#define RECV_PROMISC   0x04
 
#define NO_LOOPBACK   0x00
 
#define INT_LOOPBACK   0x08
 
#define EXT_LOOPBACK   0x10
 
#define DMA_BUFFER_SIZE   1600
 
#define BACKLOG_SIZE   4
 

Typedefs

typedef unsigned char byte
 
typedef unsigned short int word
 
typedef unsigned long int dword
 

Enumerations

enum  {
  CMD_CONFIGURE_ADAPTER_MEMORY = 0x01, CMD_CONFIGURE_82586 = 0x02, CMD_STATION_ADDRESS = 0x03, CMD_DMA_DOWNLOAD = 0x04,
  CMD_DMA_UPLOAD = 0x05, CMD_PIO_DOWNLOAD = 0x06, CMD_PIO_UPLOAD = 0x07, CMD_RECEIVE_PACKET = 0x08,
  CMD_TRANSMIT_PACKET = 0x09, CMD_NETWORK_STATISTICS = 0x0a, CMD_LOAD_MULTICAST_LIST = 0x0b, CMD_CLEAR_PROGRAM = 0x0c,
  CMD_DOWNLOAD_PROGRAM = 0x0d, CMD_EXECUTE_PROGRAM = 0x0e, CMD_SELF_TEST = 0x0f, CMD_SET_STATION_ADDRESS = 0x10,
  CMD_ADAPTER_INFO = 0x11, NUM_TRANSMIT_CMDS, CMD_CONFIGURE_ADAPTER_RESPONSE = 0x31, CMD_CONFIGURE_82586_RESPONSE = 0x32,
  CMD_ADDRESS_RESPONSE = 0x33, CMD_DOWNLOAD_DATA_REQUEST = 0x34, CMD_UPLOAD_DATA_REQUEST = 0x35, CMD_RECEIVE_PACKET_COMPLETE = 0x38,
  CMD_TRANSMIT_PACKET_COMPLETE = 0x39, CMD_NETWORK_STATISTICS_RESPONSE = 0x3a, CMD_LOAD_MULTICAST_RESPONSE = 0x3b, CMD_CLEAR_PROGRAM_RESPONSE = 0x3c,
  CMD_DOWNLOAD_PROGRAM_RESPONSE = 0x3d, CMD_EXECUTE_RESPONSE = 0x3e, CMD_SELF_TEST_RESPONSE = 0x3f, CMD_SET_ADDRESS_RESPONSE = 0x40,
  CMD_ADAPTER_INFO_RESPONSE = 0x41
}
 

Macro Definition Documentation

#define ACRF   0x20 /* adapter command register full */

Definition at line 47 of file 3c505.h.

#define ASF1   0x01 /* adapter status flag 1 */

Definition at line 52 of file 3c505.h.

#define ASF2   0x02 /* adapter status flag 2 */

Definition at line 51 of file 3c505.h.

#define ASF3   0x04 /* adapter status flag 3 */

Definition at line 50 of file 3c505.h.

#define ASF_PCB_ACK   ASF1

Definition at line 57 of file 3c505.h.

#define ASF_PCB_END   (ASF2|ASF1)

Definition at line 59 of file 3c505.h.

#define ASF_PCB_MASK   (ASF2|ASF1)

Definition at line 60 of file 3c505.h.

#define ASF_PCB_NAK   ASF2

Definition at line 58 of file 3c505.h.

#define ATTN   0x80 /* attention */

Definition at line 25 of file 3c505.h.

#define BACKLOG_SIZE   4

Definition at line 258 of file 3c505.h.

#define CMDE   0x04 /* command register interrupt enable */

Definition at line 30 of file 3c505.h.

#define DIR   0x10 /* direction */

Definition at line 28 of file 3c505.h.

#define DMA_BRST   0x01 /* DMA burst */

Definition at line 65 of file 3c505.h.

#define DMA_BUFFER_SIZE   1600

Definition at line 257 of file 3c505.h.

#define DMAE   0x20 /* DMA enable */

Definition at line 27 of file 3c505.h.

#define DONE   0x08 /* DMA done */

Definition at line 49 of file 3c505.h.

#define ELP_DMA   6

Definition at line 7 of file 3c505.h.

#define ELP_IO_EXTENT   0x10 /* size of used IO registers */

Definition at line 20 of file 3c505.h.

#define ELP_MAX_CARDS   4

Definition at line 9 of file 3c505.h.

#define ELP_RX_PCBS   4

Definition at line 8 of file 3c505.h.

#define EXT_LOOPBACK   0x10

Definition at line 249 of file 3c505.h.

#define FLSH   0x40 /* flush data register */

Definition at line 26 of file 3c505.h.

#define HCRE   0x40 /* command register empty */

Definition at line 46 of file 3c505.h.

#define HRDY   0x80 /* data register ready */

Definition at line 45 of file 3c505.h.

#define HSF1   0x01 /* host status flag 1 */

Definition at line 32 of file 3c505.h.

#define HSF2   0x02 /* host status flag 2 */

Definition at line 31 of file 3c505.h.

#define HSF_PCB_ACK   HSF1

Definition at line 37 of file 3c505.h.

#define HSF_PCB_END   (HSF2|HSF1)

Definition at line 39 of file 3c505.h.

#define HSF_PCB_MASK   (HSF2|HSF1)

Definition at line 40 of file 3c505.h.

#define HSF_PCB_NAK   HSF2

Definition at line 38 of file 3c505.h.

#define INT_LOOPBACK   0x08

Definition at line 248 of file 3c505.h.

#define MAX_PCB_DATA   62

Definition at line 70 of file 3c505.h.

#define NO_LOOPBACK   0x00

Definition at line 247 of file 3c505.h.

#define PORT_AUXDMA   0x02 /* write only, 8-bit */

Definition at line 16 of file 3c505.h.

#define PORT_COMMAND   0x00 /* read/write, 8-bit */

Definition at line 14 of file 3c505.h.

#define PORT_CONTROL   0x06 /* read/write, 8-bit */

Definition at line 18 of file 3c505.h.

#define PORT_DATA   0x04 /* read/write, 16-bit */

Definition at line 17 of file 3c505.h.

#define PORT_STATUS   0x02 /* read only, 8-bit */

Definition at line 15 of file 3c505.h.

#define RECV_BROAD   0x01

Definition at line 244 of file 3c505.h.

#define RECV_MULTI   0x02

Definition at line 245 of file 3c505.h.

#define RECV_PROMISC   0x04

Definition at line 246 of file 3c505.h.

#define RECV_STATION   0x00

Definition at line 243 of file 3c505.h.

#define TCEN   0x08 /* terminal count interrupt enable */

Definition at line 29 of file 3c505.h.

#define TIMEOUT   300

Definition at line 81 of file 3c505.h.

Typedef Documentation

typedef unsigned char byte

Definition at line 135 of file 3c505.h.

typedef unsigned long int dword

Definition at line 137 of file 3c505.h.

typedef unsigned short int word

Definition at line 136 of file 3c505.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CMD_CONFIGURE_ADAPTER_MEMORY 
CMD_CONFIGURE_82586 
CMD_STATION_ADDRESS 
CMD_DMA_DOWNLOAD 
CMD_DMA_UPLOAD 
CMD_PIO_DOWNLOAD 
CMD_PIO_UPLOAD 
CMD_RECEIVE_PACKET 
CMD_TRANSMIT_PACKET 
CMD_NETWORK_STATISTICS 
CMD_LOAD_MULTICAST_LIST 
CMD_CLEAR_PROGRAM 
CMD_DOWNLOAD_PROGRAM 
CMD_EXECUTE_PROGRAM 
CMD_SELF_TEST 
CMD_SET_STATION_ADDRESS 
CMD_ADAPTER_INFO 
NUM_TRANSMIT_CMDS 
CMD_CONFIGURE_ADAPTER_RESPONSE 
CMD_CONFIGURE_82586_RESPONSE 
CMD_ADDRESS_RESPONSE 
CMD_DOWNLOAD_DATA_REQUEST 
CMD_UPLOAD_DATA_REQUEST 
CMD_RECEIVE_PACKET_COMPLETE 
CMD_TRANSMIT_PACKET_COMPLETE 
CMD_NETWORK_STATISTICS_RESPONSE 
CMD_LOAD_MULTICAST_RESPONSE 
CMD_CLEAR_PROGRAM_RESPONSE 
CMD_DOWNLOAD_PROGRAM_RESPONSE 
CMD_EXECUTE_RESPONSE 
CMD_SELF_TEST_RESPONSE 
CMD_SET_ADDRESS_RESPONSE 
CMD_ADAPTER_INFO_RESPONSE 

Definition at line 89 of file 3c505.h.