Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/ptrace.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/crc32.h>
#include <linux/mii.h>
#include "8390.h"
#include <pcmcia/cistpl.h>
#include <pcmcia/ciscode.h>
#include <pcmcia/ds.h>
#include <pcmcia/cisreg.h>
#include <asm/io.h>
#include <asm/byteorder.h>
#include <asm/uaccess.h>
#include <linux/bitops.h>
#include <asm/irq.h>
#include <linux/fcntl.h>
#include <linux/in.h>
#include <linux/interrupt.h>
Go to the source code of this file.
Data Structures | |
struct | axnet_dev_t |
Macros | |
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
#define | AXNET_CMD 0x00 |
#define | AXNET_DATAPORT 0x10 /* NatSemi-defined port window offset. */ |
#define | AXNET_RESET 0x1f /* Issue a read to reset, a write to clear. */ |
#define | AXNET_MII_EEP 0x14 /* Offset of MII access port */ |
#define | AXNET_TEST 0x15 /* Offset of TEST Register port */ |
#define | AXNET_GPIO 0x17 /* Offset of General Purpose Register Port */ |
#define | AXNET_START_PG 0x40 /* First page of TX buffer */ |
#define | AXNET_STOP_PG 0x80 /* Last page +1 of RX ring */ |
#define | AXNET_RDC_TIMEOUT 0x02 /* Max wait in jiffies for Tx RDC */ |
#define | IS_AX88190 0x0001 |
#define | IS_AX88790 0x0002 |
#define | MDIO_SHIFT_CLK 0x01 |
#define | MDIO_DATA_WRITE0 0x00 |
#define | MDIO_DATA_WRITE1 0x08 |
#define | MDIO_DATA_READ 0x04 |
#define | MDIO_MASK 0x0f |
#define | MDIO_ENB_IN 0x02 |
#define | BUG_83C690 |
#define | ei_reset_8390 (ei_local->reset_8390) |
#define | ei_block_output (ei_local->block_output) |
#define | ei_block_input (ei_local->block_input) |
#define | ei_get_8390_hdr (ei_local->get_8390_hdr) |
#define | dev_lock(dev) (((struct ei_device *)netdev_priv(dev))->page_lock) |
Typedefs | |
typedef struct axnet_dev_t | axnet_dev_t |
Functions | |
MODULE_AUTHOR ("David Hinds <[email protected]>") | |
MODULE_DESCRIPTION ("Asix AX88190 PCMCIA ethernet driver") | |
MODULE_LICENSE ("GPL") | |
MODULE_DEVICE_TABLE (pcmcia, axnet_ids) | |
module_init (init_axnet_cs) | |
module_exit (exit_axnet_cs) | |
#define AXNET_CMD 0x00 |
Definition at line 52 of file axnet_cs.c.
#define AXNET_DATAPORT 0x10 /* NatSemi-defined port window offset. */ |
Definition at line 53 of file axnet_cs.c.
#define AXNET_GPIO 0x17 /* Offset of General Purpose Register Port */ |
Definition at line 57 of file axnet_cs.c.
#define AXNET_MII_EEP 0x14 /* Offset of MII access port */ |
Definition at line 55 of file axnet_cs.c.
#define AXNET_RDC_TIMEOUT 0x02 /* Max wait in jiffies for Tx RDC */ |
Definition at line 62 of file axnet_cs.c.
#define AXNET_RESET 0x1f /* Issue a read to reset, a write to clear. */ |
Definition at line 54 of file axnet_cs.c.
#define AXNET_START_PG 0x40 /* First page of TX buffer */ |
Definition at line 59 of file axnet_cs.c.
#define AXNET_STOP_PG 0x80 /* Last page +1 of RX ring */ |
Definition at line 60 of file axnet_cs.c.
#define AXNET_TEST 0x15 /* Offset of TEST Register port */ |
Definition at line 56 of file axnet_cs.c.
#define BUG_83C690 |
Definition at line 800 of file axnet_cs.c.
Definition at line 895 of file axnet_cs.c.
#define ei_block_input (ei_local->block_input) |
Definition at line 822 of file axnet_cs.c.
#define ei_block_output (ei_local->block_output) |
Definition at line 821 of file axnet_cs.c.
#define ei_get_8390_hdr (ei_local->get_8390_hdr) |
Definition at line 823 of file axnet_cs.c.
#define ei_reset_8390 (ei_local->reset_8390) |
Definition at line 820 of file axnet_cs.c.
#define IS_AX88190 0x0001 |
Definition at line 64 of file axnet_cs.c.
#define IS_AX88790 0x0002 |
Definition at line 65 of file axnet_cs.c.
#define MDIO_DATA_READ 0x04 |
Definition at line 415 of file axnet_cs.c.
#define MDIO_DATA_WRITE0 0x00 |
Definition at line 413 of file axnet_cs.c.
#define MDIO_DATA_WRITE1 0x08 |
Definition at line 414 of file axnet_cs.c.
#define MDIO_ENB_IN 0x02 |
Definition at line 417 of file axnet_cs.c.
#define MDIO_MASK 0x0f |
Definition at line 416 of file axnet_cs.c.
#define MDIO_SHIFT_CLK 0x01 |
Definition at line 412 of file axnet_cs.c.
Definition at line 27 of file axnet_cs.c.
typedef struct axnet_dev_t axnet_dev_t |
MODULE_AUTHOR | ( | "David Hinds <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | pcmcia | , |
axnet_ids | |||
) |
module_exit | ( | exit_axnet_cs | ) |
module_init | ( | init_axnet_cs | ) |
MODULE_LICENSE | ( | "GPL" | ) |