Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
at1700.c File Reference
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/in.h>
#include <linux/skbuff.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/crc32.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/dma.h>

Go to the source code of this file.

Data Structures

struct  net_local
 

Macros

#define DRV_NAME   "at1700"
 
#define MC_FILTERBREAK   64
 
#define NET_DEBUG   1
 
#define STATUS   0
 
#define TX_STATUS   0
 
#define RX_STATUS   1
 
#define TX_INTR   2 /* Bit-mapped interrupt enable registers. */
 
#define RX_INTR   3
 
#define TX_MODE   4
 
#define RX_MODE   5
 
#define CONFIG_0   6 /* Misc. configuration settings. */
 
#define CONFIG_1   7
 
#define DATAPORT   8 /* Word-wide DMA or programmed-I/O dataport. */
 
#define TX_START   10
 
#define COL16CNTL   11 /* Control Reg for 16 collisions */
 
#define MODE13   13
 
#define RX_CTRL   14
 
#define EEPROM_Ctrl   16
 
#define EEPROM_Data   17
 
#define CARDSTATUS   16 /* FMV-18x Card Status */
 
#define CARDSTATUS1   17 /* FMV-18x Card Status */
 
#define IOCONFIG   18 /* Either read the jumper, or move the I/O. */
 
#define IOCONFIG1   19
 
#define SAPROM   20 /* The station address PROM, if no EEPROM. */
 
#define MODE24   24
 
#define RESET   31 /* Write to reset some parts of the chip. */
 
#define AT1700_IO_EXTENT   32
 
#define PORT_OFFSET(o)   (o)
 
#define TX_TIMEOUT   (HZ/10)
 
#define EE_SHIFT_CLK   0x40 /* EEPROM shift clock, in reg. 16. */
 
#define EE_CS   0x20 /* EEPROM chip select, in reg. 16. */
 
#define EE_DATA_WRITE   0x80 /* EEPROM chip data in, in reg. 17. */
 
#define EE_DATA_READ   0x80 /* EEPROM chip data out, in reg. 17. */
 
#define EE_WRITE_CMD   (5 << 6)
 
#define EE_READ_CMD   (6 << 6)
 
#define EE_ERASE_CMD   (7 << 6)
 

Typedefs

typedef unsigned char uchar
 

Functions

struct net_device *__init at1700_probe (int unit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AT1700_IO_EXTENT   32

Definition at line 128 of file at1700.c.

#define CARDSTATUS   16 /* FMV-18x Card Status */

Definition at line 121 of file at1700.c.

#define CARDSTATUS1   17 /* FMV-18x Card Status */

Definition at line 122 of file at1700.c.

#define COL16CNTL   11 /* Control Reg for 16 collisions */

Definition at line 115 of file at1700.c.

#define CONFIG_0   6 /* Misc. configuration settings. */

Definition at line 110 of file at1700.c.

#define CONFIG_1   7

Definition at line 111 of file at1700.c.

#define DATAPORT   8 /* Word-wide DMA or programmed-I/O dataport. */

Definition at line 113 of file at1700.c.

#define DRV_NAME   "at1700"

Definition at line 60 of file at1700.c.

#define EE_CS   0x20 /* EEPROM chip select, in reg. 16. */

Definition at line 384 of file at1700.c.

#define EE_DATA_READ   0x80 /* EEPROM chip data out, in reg. 17. */

Definition at line 386 of file at1700.c.

#define EE_DATA_WRITE   0x80 /* EEPROM chip data in, in reg. 17. */

Definition at line 385 of file at1700.c.

#define EE_ERASE_CMD   (7 << 6)

Definition at line 391 of file at1700.c.

#define EE_READ_CMD   (6 << 6)

Definition at line 390 of file at1700.c.

#define EE_SHIFT_CLK   0x40 /* EEPROM shift clock, in reg. 16. */

Definition at line 383 of file at1700.c.

#define EE_WRITE_CMD   (5 << 6)

Definition at line 389 of file at1700.c.

#define EEPROM_Ctrl   16

Definition at line 119 of file at1700.c.

#define EEPROM_Data   17

Definition at line 120 of file at1700.c.

#define IOCONFIG   18 /* Either read the jumper, or move the I/O. */

Definition at line 123 of file at1700.c.

#define IOCONFIG1   19

Definition at line 124 of file at1700.c.

#define MC_FILTERBREAK   64

Definition at line 65 of file at1700.c.

#define MODE13   13

Definition at line 116 of file at1700.c.

#define MODE24   24

Definition at line 126 of file at1700.c.

#define NET_DEBUG   1

Definition at line 83 of file at1700.c.

#define PORT_OFFSET (   o)    (o)

Definition at line 129 of file at1700.c.

#define RESET   31 /* Write to reset some parts of the chip. */

Definition at line 127 of file at1700.c.

#define RX_CTRL   14

Definition at line 117 of file at1700.c.

#define RX_INTR   3

Definition at line 107 of file at1700.c.

#define RX_MODE   5

Definition at line 109 of file at1700.c.

#define RX_STATUS   1

Definition at line 105 of file at1700.c.

#define SAPROM   20 /* The station address PROM, if no EEPROM. */

Definition at line 125 of file at1700.c.

#define STATUS   0

Definition at line 103 of file at1700.c.

#define TX_INTR   2 /* Bit-mapped interrupt enable registers. */

Definition at line 106 of file at1700.c.

#define TX_MODE   4

Definition at line 108 of file at1700.c.

#define TX_START   10

Definition at line 114 of file at1700.c.

#define TX_STATUS   0

Definition at line 104 of file at1700.c.

#define TX_TIMEOUT   (HZ/10)

Definition at line 132 of file at1700.c.

Typedef Documentation

typedef unsigned char uchar

Definition at line 87 of file at1700.c.

Function Documentation

struct net_device* __init at1700_probe ( int  unit)
read

Definition at line 166 of file at1700.c.

MODULE_LICENSE ( "GPL"  )