Linux Kernel
3.7.1
|
#include <linux/dma-mapping.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/platform_device.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <asm/sgi/hpc3.h>
#include <asm/sgi/ip22.h>
#include <asm/sgi/seeq.h>
#include "sgiseeq.h"
Go to the source code of this file.
Data Structures | |
struct | sgiseeq_rx_desc |
struct | sgiseeq_tx_desc |
struct | sgiseeq_init_block |
struct | sgiseeq_private |
Macros | |
#define | SEEQ_RX_BUFFERS 16 |
#define | SEEQ_TX_BUFFERS 16 |
#define | PKT_BUF_SZ 1584 |
#define | NEXT_RX(i) (((i) + 1) & (SEEQ_RX_BUFFERS - 1)) |
#define | NEXT_TX(i) (((i) + 1) & (SEEQ_TX_BUFFERS - 1)) |
#define | PREV_RX(i) (((i) - 1) & (SEEQ_RX_BUFFERS - 1)) |
#define | PREV_TX(i) (((i) - 1) & (SEEQ_TX_BUFFERS - 1)) |
#define | TX_BUFFS_AVAIL(sp) |
#define | VIRT_TO_DMA(sp, v) |
#define | PAD_SIZE (128 - sizeof(struct hpc_dma_desc) - sizeof(void *)) |
#define | RSTAT_GO_BITS |
#define | TCNTINFO_INIT (HPCDMA_EOX | HPCDMA_ETXD) |
#define | RCNTCFG_INIT (HPCDMA_OWN | HPCDMA_EORP | HPCDMA_XIE) |
#define | RCNTINFO_INIT (RCNTCFG_INIT | (PKT_BUF_SZ & HPCDMA_BCNT)) |
#define | TSTAT_INIT_SEEQ (SEEQ_TCMD_IPT|SEEQ_TCMD_I16|SEEQ_TCMD_IC|SEEQ_TCMD_IUF) |
#define | TSTAT_INIT_EDLC ((TSTAT_INIT_SEEQ) | SEEQ_TCMD_RB2) |
Functions | |
module_platform_driver (sgiseeq_driver) | |
MODULE_DESCRIPTION ("SGI Seeq 8003 driver") | |
MODULE_AUTHOR ("Linux/MIPS Mailing List <[email protected]>") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("platform:sgiseeq") | |
#define NEXT_RX | ( | i | ) | (((i) + 1) & (SEEQ_RX_BUFFERS - 1)) |
#define NEXT_TX | ( | i | ) | (((i) + 1) & (SEEQ_TX_BUFFERS - 1)) |
#define PAD_SIZE (128 - sizeof(struct hpc_dma_desc) - sizeof(void *)) |
#define PREV_RX | ( | i | ) | (((i) - 1) & (SEEQ_RX_BUFFERS - 1)) |
#define PREV_TX | ( | i | ) | (((i) - 1) & (SEEQ_TX_BUFFERS - 1)) |
#define RCNTCFG_INIT (HPCDMA_OWN | HPCDMA_EORP | HPCDMA_XIE) |
#define RCNTINFO_INIT (RCNTCFG_INIT | (PKT_BUF_SZ & HPCDMA_BCNT)) |
#define RSTAT_GO_BITS |
#define TCNTINFO_INIT (HPCDMA_EOX | HPCDMA_ETXD) |
#define TSTAT_INIT_EDLC ((TSTAT_INIT_SEEQ) | SEEQ_TCMD_RB2) |
#define TSTAT_INIT_SEEQ (SEEQ_TCMD_IPT|SEEQ_TCMD_I16|SEEQ_TCMD_IC|SEEQ_TCMD_IUF) |
#define TX_BUFFS_AVAIL | ( | sp | ) |
MODULE_ALIAS | ( | "platform:sgiseeq" | ) |
MODULE_AUTHOR | ( | "Linux/MIPS Mailing List <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "SGI Seeq 8003 driver" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | sgiseeq_driver | ) |