Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
sunhme.h File Reference
#include <linux/pci.h>

Go to the source code of this file.

Data Structures

struct  happy_meal_rxd
 
struct  happy_meal_txd
 
struct  hmeal_init_block
 
struct  happy_meal
 
struct  quattro
 

Macros

#define GREG_SWRESET   0x000UL /* Software Reset */
 
#define GREG_CFG   0x004UL /* Config Register */
 
#define GREG_STAT   0x108UL /* Status */
 
#define GREG_IMASK   0x10cUL /* Interrupt Mask */
 
#define GREG_REG_SIZE   0x110UL
 
#define GREG_RESET_ETX   0x01
 
#define GREG_RESET_ERX   0x02
 
#define GREG_RESET_ALL   0x03
 
#define GREG_CFG_BURSTMSK   0x03
 
#define GREG_CFG_BURST16   0x00
 
#define GREG_CFG_BURST32   0x01
 
#define GREG_CFG_BURST64   0x02
 
#define GREG_CFG_64BIT   0x04
 
#define GREG_CFG_PARITY   0x08
 
#define GREG_CFG_RESV   0x10
 
#define GREG_STAT_GOTFRAME   0x00000001 /* Received a frame */
 
#define GREG_STAT_RCNTEXP   0x00000002 /* Receive frame counter expired */
 
#define GREG_STAT_ACNTEXP   0x00000004 /* Align-error counter expired */
 
#define GREG_STAT_CCNTEXP   0x00000008 /* CRC-error counter expired */
 
#define GREG_STAT_LCNTEXP   0x00000010 /* Length-error counter expired */
 
#define GREG_STAT_RFIFOVF   0x00000020 /* Receive FIFO overflow */
 
#define GREG_STAT_CVCNTEXP   0x00000040 /* Code-violation counter expired */
 
#define GREG_STAT_STSTERR   0x00000080 /* Test error in XIF for SQE */
 
#define GREG_STAT_SENTFRAME   0x00000100 /* Transmitted a frame */
 
#define GREG_STAT_TFIFO_UND   0x00000200 /* Transmit FIFO underrun */
 
#define GREG_STAT_MAXPKTERR   0x00000400 /* Max-packet size error */
 
#define GREG_STAT_NCNTEXP   0x00000800 /* Normal-collision counter expired */
 
#define GREG_STAT_ECNTEXP   0x00001000 /* Excess-collision counter expired */
 
#define GREG_STAT_LCCNTEXP   0x00002000 /* Late-collision counter expired */
 
#define GREG_STAT_FCNTEXP   0x00004000 /* First-collision counter expired */
 
#define GREG_STAT_DTIMEXP   0x00008000 /* Defer-timer expired */
 
#define GREG_STAT_RXTOHOST   0x00010000 /* Moved from receive-FIFO to host memory */
 
#define GREG_STAT_NORXD   0x00020000 /* No more receive descriptors */
 
#define GREG_STAT_RXERR   0x00040000 /* Error during receive dma */
 
#define GREG_STAT_RXLATERR   0x00080000 /* Late error during receive dma */
 
#define GREG_STAT_RXPERR   0x00100000 /* Parity error during receive dma */
 
#define GREG_STAT_RXTERR   0x00200000 /* Tag error during receive dma */
 
#define GREG_STAT_EOPERR   0x00400000 /* Transmit descriptor did not have EOP set */
 
#define GREG_STAT_MIFIRQ   0x00800000 /* MIF is signaling an interrupt condition */
 
#define GREG_STAT_HOSTTOTX   0x01000000 /* Moved from host memory to transmit-FIFO */
 
#define GREG_STAT_TXALL   0x02000000 /* Transmitted all packets in the tx-fifo */
 
#define GREG_STAT_TXEACK   0x04000000 /* Error during transmit dma */
 
#define GREG_STAT_TXLERR   0x08000000 /* Late error during transmit dma */
 
#define GREG_STAT_TXPERR   0x10000000 /* Parity error during transmit dma */
 
#define GREG_STAT_TXTERR   0x20000000 /* Tag error during transmit dma */
 
#define GREG_STAT_SLVERR   0x40000000 /* PIO access got an error */
 
#define GREG_STAT_SLVPERR   0x80000000 /* PIO access got a parity error */
 
#define GREG_STAT_ERRORS   0xfc7efefc
 
#define GREG_IMASK_GOTFRAME   0x00000001 /* Received a frame */
 
#define GREG_IMASK_RCNTEXP   0x00000002 /* Receive frame counter expired */
 
#define GREG_IMASK_ACNTEXP   0x00000004 /* Align-error counter expired */
 
#define GREG_IMASK_CCNTEXP   0x00000008 /* CRC-error counter expired */
 
#define GREG_IMASK_LCNTEXP   0x00000010 /* Length-error counter expired */
 
#define GREG_IMASK_RFIFOVF   0x00000020 /* Receive FIFO overflow */
 
#define GREG_IMASK_CVCNTEXP   0x00000040 /* Code-violation counter expired */
 
#define GREG_IMASK_STSTERR   0x00000080 /* Test error in XIF for SQE */
 
#define GREG_IMASK_SENTFRAME   0x00000100 /* Transmitted a frame */
 
#define GREG_IMASK_TFIFO_UND   0x00000200 /* Transmit FIFO underrun */
 
#define GREG_IMASK_MAXPKTERR   0x00000400 /* Max-packet size error */
 
#define GREG_IMASK_NCNTEXP   0x00000800 /* Normal-collision counter expired */
 
#define GREG_IMASK_ECNTEXP   0x00001000 /* Excess-collision counter expired */
 
#define GREG_IMASK_LCCNTEXP   0x00002000 /* Late-collision counter expired */
 
#define GREG_IMASK_FCNTEXP   0x00004000 /* First-collision counter expired */
 
#define GREG_IMASK_DTIMEXP   0x00008000 /* Defer-timer expired */
 
#define GREG_IMASK_RXTOHOST   0x00010000 /* Moved from receive-FIFO to host memory */
 
#define GREG_IMASK_NORXD   0x00020000 /* No more receive descriptors */
 
#define GREG_IMASK_RXERR   0x00040000 /* Error during receive dma */
 
#define GREG_IMASK_RXLATERR   0x00080000 /* Late error during receive dma */
 
#define GREG_IMASK_RXPERR   0x00100000 /* Parity error during receive dma */
 
#define GREG_IMASK_RXTERR   0x00200000 /* Tag error during receive dma */
 
#define GREG_IMASK_EOPERR   0x00400000 /* Transmit descriptor did not have EOP set */
 
#define GREG_IMASK_MIFIRQ   0x00800000 /* MIF is signaling an interrupt condition */
 
#define GREG_IMASK_HOSTTOTX   0x01000000 /* Moved from host memory to transmit-FIFO */
 
#define GREG_IMASK_TXALL   0x02000000 /* Transmitted all packets in the tx-fifo */
 
#define GREG_IMASK_TXEACK   0x04000000 /* Error during transmit dma */
 
#define GREG_IMASK_TXLERR   0x08000000 /* Late error during transmit dma */
 
#define GREG_IMASK_TXPERR   0x10000000 /* Parity error during transmit dma */
 
#define GREG_IMASK_TXTERR   0x20000000 /* Tag error during transmit dma */
 
#define GREG_IMASK_SLVERR   0x40000000 /* PIO access got an error */
 
#define GREG_IMASK_SLVPERR   0x80000000 /* PIO access got a parity error */
 
#define ETX_PENDING   0x00UL /* Transmit pending/wakeup register */
 
#define ETX_CFG   0x04UL /* Transmit config register */
 
#define ETX_RING   0x08UL /* Transmit ring pointer */
 
#define ETX_BBASE   0x0cUL /* Transmit buffer base */
 
#define ETX_BDISP   0x10UL /* Transmit buffer displacement */
 
#define ETX_FIFOWPTR   0x14UL /* FIFO write ptr */
 
#define ETX_FIFOSWPTR   0x18UL /* FIFO write ptr (shadow register) */
 
#define ETX_FIFORPTR   0x1cUL /* FIFO read ptr */
 
#define ETX_FIFOSRPTR   0x20UL /* FIFO read ptr (shadow register) */
 
#define ETX_FIFOPCNT   0x24UL /* FIFO packet counter */
 
#define ETX_SMACHINE   0x28UL /* Transmitter state machine */
 
#define ETX_RSIZE   0x2cUL /* Ring descriptor size */
 
#define ETX_BPTR   0x30UL /* Transmit data buffer ptr */
 
#define ETX_REG_SIZE   0x34UL
 
#define ETX_TP_DMAWAKEUP   0x00000001 /* Restart transmit dma */
 
#define ETX_CFG_DMAENABLE   0x00000001 /* Enable transmit dma */
 
#define ETX_CFG_FIFOTHRESH   0x000003fe /* Transmit FIFO threshold */
 
#define ETX_CFG_IRQDAFTER   0x00000400 /* Interrupt after TX-FIFO drained */
 
#define ETX_CFG_IRQDBEFORE   0x00000000 /* Interrupt before TX-FIFO drained */
 
#define ETX_RSIZE_SHIFT   4
 
#define ERX_CFG   0x00UL /* Receiver config register */
 
#define ERX_RING   0x04UL /* Receiver ring ptr */
 
#define ERX_BPTR   0x08UL /* Receiver buffer ptr */
 
#define ERX_FIFOWPTR   0x0cUL /* FIFO write ptr */
 
#define ERX_FIFOSWPTR   0x10UL /* FIFO write ptr (shadow register) */
 
#define ERX_FIFORPTR   0x14UL /* FIFO read ptr */
 
#define ERX_FIFOSRPTR   0x18UL /* FIFO read ptr (shadow register) */
 
#define ERX_SMACHINE   0x1cUL /* Receiver state machine */
 
#define ERX_REG_SIZE   0x20UL
 
#define ERX_CFG_DMAENABLE   0x00000001 /* Enable receive DMA */
 
#define ERX_CFG_RESV1   0x00000006 /* Unused... */
 
#define ERX_CFG_BYTEOFFSET   0x00000038 /* Receive first byte offset */
 
#define ERX_CFG_RESV2   0x000001c0 /* Unused... */
 
#define ERX_CFG_SIZE32   0x00000000 /* Receive ring size == 32 */
 
#define ERX_CFG_SIZE64   0x00000200 /* Receive ring size == 64 */
 
#define ERX_CFG_SIZE128   0x00000400 /* Receive ring size == 128 */
 
#define ERX_CFG_SIZE256   0x00000600 /* Receive ring size == 256 */
 
#define ERX_CFG_RESV3   0x0000f800 /* Unused... */
 
#define ERX_CFG_CSUMSTART
 
#define BMAC_XIFCFG   0x0000UL /* XIF config register */
 
#define BMAC_TXSWRESET   0x208UL /* Transmitter software reset */
 
#define BMAC_TXCFG   0x20cUL /* Transmitter config register */
 
#define BMAC_IGAP1   0x210UL /* Inter-packet gap 1 */
 
#define BMAC_IGAP2   0x214UL /* Inter-packet gap 2 */
 
#define BMAC_ALIMIT   0x218UL /* Transmit attempt limit */
 
#define BMAC_STIME   0x21cUL /* Transmit slot time */
 
#define BMAC_PLEN   0x220UL /* Size of transmit preamble */
 
#define BMAC_PPAT   0x224UL /* Pattern for transmit preamble */
 
#define BMAC_TXSDELIM   0x228UL /* Transmit delimiter */
 
#define BMAC_JSIZE   0x22cUL /* Jam size */
 
#define BMAC_TXMAX   0x230UL /* Transmit max pkt size */
 
#define BMAC_TXMIN   0x234UL /* Transmit min pkt size */
 
#define BMAC_PATTEMPT   0x238UL /* Count of transmit peak attempts */
 
#define BMAC_DTCTR   0x23cUL /* Transmit defer timer */
 
#define BMAC_NCCTR   0x240UL /* Transmit normal-collision counter */
 
#define BMAC_FCCTR   0x244UL /* Transmit first-collision counter */
 
#define BMAC_EXCTR   0x248UL /* Transmit excess-collision counter */
 
#define BMAC_LTCTR   0x24cUL /* Transmit late-collision counter */
 
#define BMAC_RSEED   0x250UL /* Transmit random number seed */
 
#define BMAC_TXSMACHINE   0x254UL /* Transmit state machine */
 
#define BMAC_RXSWRESET   0x308UL /* Receiver software reset */
 
#define BMAC_RXCFG   0x30cUL /* Receiver config register */
 
#define BMAC_RXMAX   0x310UL /* Receive max pkt size */
 
#define BMAC_RXMIN   0x314UL /* Receive min pkt size */
 
#define BMAC_MACADDR2   0x318UL /* Ether address register 2 */
 
#define BMAC_MACADDR1   0x31cUL /* Ether address register 1 */
 
#define BMAC_MACADDR0   0x320UL /* Ether address register 0 */
 
#define BMAC_FRCTR   0x324UL /* Receive frame receive counter */
 
#define BMAC_GLECTR   0x328UL /* Receive giant-length error counter */
 
#define BMAC_UNALECTR   0x32cUL /* Receive unaligned error counter */
 
#define BMAC_RCRCECTR   0x330UL /* Receive CRC error counter */
 
#define BMAC_RXSMACHINE   0x334UL /* Receiver state machine */
 
#define BMAC_RXCVALID   0x338UL /* Receiver code violation */
 
#define BMAC_HTABLE3   0x340UL /* Hash table 3 */
 
#define BMAC_HTABLE2   0x344UL /* Hash table 2 */
 
#define BMAC_HTABLE1   0x348UL /* Hash table 1 */
 
#define BMAC_HTABLE0   0x34cUL /* Hash table 0 */
 
#define BMAC_AFILTER2   0x350UL /* Address filter 2 */
 
#define BMAC_AFILTER1   0x354UL /* Address filter 1 */
 
#define BMAC_AFILTER0   0x358UL /* Address filter 0 */
 
#define BMAC_AFMASK   0x35cUL /* Address filter mask */
 
#define BMAC_REG_SIZE   0x360UL
 
#define BIGMAC_XCFG_ODENABLE   0x00000001 /* Output driver enable */
 
#define BIGMAC_XCFG_XLBACK   0x00000002 /* Loopback-mode XIF enable */
 
#define BIGMAC_XCFG_MLBACK   0x00000004 /* Loopback-mode MII enable */
 
#define BIGMAC_XCFG_MIIDISAB   0x00000008 /* MII receive buffer disable */
 
#define BIGMAC_XCFG_SQENABLE   0x00000010 /* SQE test enable */
 
#define BIGMAC_XCFG_SQETWIN   0x000003e0 /* SQE time window */
 
#define BIGMAC_XCFG_LANCE   0x00000010 /* Lance mode enable */
 
#define BIGMAC_XCFG_LIPG0   0x000003e0 /* Lance mode IPG0 */
 
#define BIGMAC_TXCFG_ENABLE   0x00000001 /* Enable the transmitter */
 
#define BIGMAC_TXCFG_SMODE   0x00000020 /* Enable slow transmit mode */
 
#define BIGMAC_TXCFG_CIGN   0x00000040 /* Ignore transmit collisions */
 
#define BIGMAC_TXCFG_FCSOFF   0x00000080 /* Do not emit FCS */
 
#define BIGMAC_TXCFG_DBACKOFF   0x00000100 /* Disable backoff */
 
#define BIGMAC_TXCFG_FULLDPLX   0x00000200 /* Enable full-duplex */
 
#define BIGMAC_TXCFG_DGIVEUP   0x00000400 /* Don't give up on transmits */
 
#define BIGMAC_RXCFG_ENABLE   0x00000001 /* Enable the receiver */
 
#define BIGMAC_RXCFG_PSTRIP   0x00000020 /* Pad byte strip enable */
 
#define BIGMAC_RXCFG_PMISC   0x00000040 /* Enable promiscuous mode */
 
#define BIGMAC_RXCFG_DERR   0x00000080 /* Disable error checking */
 
#define BIGMAC_RXCFG_DCRCS   0x00000100 /* Disable CRC stripping */
 
#define BIGMAC_RXCFG_REJME   0x00000200 /* Reject packets addressed to me */
 
#define BIGMAC_RXCFG_PGRP   0x00000400 /* Enable promisc group mode */
 
#define BIGMAC_RXCFG_HENABLE   0x00000800 /* Enable the hash filter */
 
#define BIGMAC_RXCFG_AENABLE   0x00001000 /* Enable the address filter */
 
#define TCVR_BBCLOCK   0x00UL /* Bit bang clock register */
 
#define TCVR_BBDATA   0x04UL /* Bit bang data register */
 
#define TCVR_BBOENAB   0x08UL /* Bit bang output enable */
 
#define TCVR_FRAME   0x0cUL /* Frame control/data register */
 
#define TCVR_CFG   0x10UL /* MIF config register */
 
#define TCVR_IMASK   0x14UL /* MIF interrupt mask */
 
#define TCVR_STATUS   0x18UL /* MIF status */
 
#define TCVR_SMACHINE   0x1cUL /* MIF state machine */
 
#define TCVR_REG_SIZE   0x20UL
 
#define FRAME_WRITE   0x50020000
 
#define FRAME_READ   0x60020000
 
#define TCV_CFG_PSELECT   0x00000001 /* Select PHY */
 
#define TCV_CFG_PENABLE   0x00000002 /* Enable MIF polling */
 
#define TCV_CFG_BENABLE   0x00000004 /* Enable the "bit banger" oh baby */
 
#define TCV_CFG_PREGADDR   0x000000f8 /* Address of poll register */
 
#define TCV_CFG_MDIO0   0x00000100 /* MDIO zero, data/attached */
 
#define TCV_CFG_MDIO1   0x00000200 /* MDIO one, data/attached */
 
#define TCV_CFG_PDADDR   0x00007c00 /* Device PHY address polling */
 
#define TCV_PADDR_ETX   0 /* Internal transceiver */
 
#define TCV_PADDR_ITX   1 /* External transceiver */
 
#define TCV_STAT_BASIC   0xffff0000 /* The "basic" part */
 
#define TCV_STAT_NORMAL   0x0000ffff /* The "non-basic" part */
 
#define DP83840_CSCONFIG   0x17 /* CS configuration */
 
#define CSCONFIG_RESV1   0x0001 /* Unused... */
 
#define CSCONFIG_LED4   0x0002 /* Pin for full-dplx LED4 */
 
#define CSCONFIG_LED1   0x0004 /* Pin for conn-status LED1 */
 
#define CSCONFIG_RESV2   0x0008 /* Unused... */
 
#define CSCONFIG_TCVDISAB   0x0010 /* Turns off the transceiver */
 
#define CSCONFIG_DFBYPASS   0x0020 /* Bypass disconnect function */
 
#define CSCONFIG_GLFORCE   0x0040 /* Good link force for 100mbps */
 
#define CSCONFIG_CLKTRISTATE   0x0080 /* Tristate 25m clock */
 
#define CSCONFIG_RESV3   0x0700 /* Unused... */
 
#define CSCONFIG_ENCODE   0x0800 /* 1=MLT-3, 0=binary */
 
#define CSCONFIG_RENABLE   0x1000 /* Repeater mode enable */
 
#define CSCONFIG_TCDISABLE   0x2000 /* Disable timeout counter */
 
#define CSCONFIG_RESV4   0x4000 /* Unused... */
 
#define CSCONFIG_NDISABLE   0x8000 /* Disable NRZI */
 
#define RXFLAG_OWN   0x80000000 /* 1 = hardware, 0 = software */
 
#define RXFLAG_OVERFLOW   0x40000000 /* 1 = buffer overflow */
 
#define RXFLAG_SIZE   0x3fff0000 /* Size of the buffer */
 
#define RXFLAG_CSUM   0x0000ffff /* HW computed checksum */
 
#define TXFLAG_OWN   0x80000000 /* 1 = hardware, 0 = software */
 
#define TXFLAG_SOP   0x40000000 /* 1 = start of packet */
 
#define TXFLAG_EOP   0x20000000 /* 1 = end of packet */
 
#define TXFLAG_CSENABLE   0x10000000 /* 1 = enable hw-checksums */
 
#define TXFLAG_CSLOCATION   0x0ff00000 /* Where to stick the csum */
 
#define TXFLAG_CSBUFBEGIN   0x000fc000 /* Where to begin checksum */
 
#define TXFLAG_SIZE   0x00003fff /* Size of the packet */
 
#define TX_RING_SIZE   32 /* Must be >16 and <255, multiple of 16 */
 
#define RX_RING_SIZE   32 /* see ERX_CFG_SIZE* for possible values */
 
#define TX_RING_MAXSIZE   256
 
#define RX_RING_MAXSIZE   256
 
#define ERX_CFG_DEFAULT(off)   (ERX_CFG_DMAENABLE|((off)<<3)|ERX_CFG_SIZE32|((14/2)<<16))
 
#define NEXT_RX(num)   (((num) + 1) & (RX_RING_SIZE - 1))
 
#define NEXT_TX(num)   (((num) + 1) & (TX_RING_SIZE - 1))
 
#define PREV_RX(num)   (((num) - 1) & (RX_RING_SIZE - 1))
 
#define PREV_TX(num)   (((num) - 1) & (TX_RING_SIZE - 1))
 
#define TX_BUFFS_AVAIL(hp)
 
#define RX_OFFSET   2
 
#define RX_BUF_ALLOC_SIZE   (1546 + RX_OFFSET + 64)
 
#define RX_COPY_THRESHOLD   256
 
#define hblock_offset(mem, elem)   ((__u32)((unsigned long)(&(((struct hmeal_init_block *)0)->mem[elem]))))
 
#define HFLAG_POLL   0x00000001 /* We are doing MIF polling */
 
#define HFLAG_FENABLE   0x00000002 /* The MII frame is enabled */
 
#define HFLAG_LANCE   0x00000004 /* We are using lance-mode */
 
#define HFLAG_RXENABLE   0x00000008 /* Receiver is enabled */
 
#define HFLAG_AUTO   0x00000010 /* Using auto-negotiation, 0 = force */
 
#define HFLAG_FULL   0x00000020 /* Full duplex enable */
 
#define HFLAG_MACFULL   0x00000040 /* Using full duplex in the MAC */
 
#define HFLAG_POLLENABLE   0x00000080 /* Actually try MIF polling */
 
#define HFLAG_RXCV   0x00000100 /* XXX RXCV ENABLE */
 
#define HFLAG_INIT   0x00000200 /* Init called at least once */
 
#define HFLAG_LINKUP   0x00000400 /* 1 = Link is up */
 
#define HFLAG_PCI   0x00000800 /* PCI based Happy Meal */
 
#define HFLAG_QUATTRO   0x00001000 /* On QFE/Quattro card */
 
#define HFLAG_20_21   (HFLAG_POLLENABLE | HFLAG_FENABLE)
 
#define HFLAG_NOT_A0   (HFLAG_POLLENABLE | HFLAG_FENABLE | HFLAG_LANCE | HFLAG_RXCV)
 
#define ALIGNED_RX_SKB_ADDR(addr)   ((((unsigned long)(addr) + (64UL - 1UL)) & ~(64UL - 1UL)) - (unsigned long)(addr))
 
#define happy_meal_alloc_skb(__length, __gfp_flags)
 

Typedefs

typedef u32 __bitwise__ hme32
 

Enumerations

enum  happy_transceiver { external = 0, internal = 1, none = 2 }
 
enum  happy_timer_state { arbwait = 0, lupwait = 1, ltrywait = 2, asleep = 3 }
 

Macro Definition Documentation

#define ALIGNED_RX_SKB_ADDR (   addr)    ((((unsigned long)(addr) + (64UL - 1UL)) & ~(64UL - 1UL)) - (unsigned long)(addr))

Definition at line 499 of file sunhme.h.

#define BIGMAC_RXCFG_AENABLE   0x00001000 /* Enable the address filter */

Definition at line 231 of file sunhme.h.

#define BIGMAC_RXCFG_DCRCS   0x00000100 /* Disable CRC stripping */

Definition at line 227 of file sunhme.h.

#define BIGMAC_RXCFG_DERR   0x00000080 /* Disable error checking */

Definition at line 226 of file sunhme.h.

#define BIGMAC_RXCFG_ENABLE   0x00000001 /* Enable the receiver */

Definition at line 223 of file sunhme.h.

#define BIGMAC_RXCFG_HENABLE   0x00000800 /* Enable the hash filter */

Definition at line 230 of file sunhme.h.

#define BIGMAC_RXCFG_PGRP   0x00000400 /* Enable promisc group mode */

Definition at line 229 of file sunhme.h.

#define BIGMAC_RXCFG_PMISC   0x00000040 /* Enable promiscuous mode */

Definition at line 225 of file sunhme.h.

#define BIGMAC_RXCFG_PSTRIP   0x00000020 /* Pad byte strip enable */

Definition at line 224 of file sunhme.h.

#define BIGMAC_RXCFG_REJME   0x00000200 /* Reject packets addressed to me */

Definition at line 228 of file sunhme.h.

#define BIGMAC_TXCFG_CIGN   0x00000040 /* Ignore transmit collisions */

Definition at line 216 of file sunhme.h.

#define BIGMAC_TXCFG_DBACKOFF   0x00000100 /* Disable backoff */

Definition at line 218 of file sunhme.h.

#define BIGMAC_TXCFG_DGIVEUP   0x00000400 /* Don't give up on transmits */

Definition at line 220 of file sunhme.h.

#define BIGMAC_TXCFG_ENABLE   0x00000001 /* Enable the transmitter */

Definition at line 214 of file sunhme.h.

#define BIGMAC_TXCFG_FCSOFF   0x00000080 /* Do not emit FCS */

Definition at line 217 of file sunhme.h.

#define BIGMAC_TXCFG_FULLDPLX   0x00000200 /* Enable full-duplex */

Definition at line 219 of file sunhme.h.

#define BIGMAC_TXCFG_SMODE   0x00000020 /* Enable slow transmit mode */

Definition at line 215 of file sunhme.h.

#define BIGMAC_XCFG_LANCE   0x00000010 /* Lance mode enable */

Definition at line 210 of file sunhme.h.

#define BIGMAC_XCFG_LIPG0   0x000003e0 /* Lance mode IPG0 */

Definition at line 211 of file sunhme.h.

#define BIGMAC_XCFG_MIIDISAB   0x00000008 /* MII receive buffer disable */

Definition at line 207 of file sunhme.h.

#define BIGMAC_XCFG_MLBACK   0x00000004 /* Loopback-mode MII enable */

Definition at line 206 of file sunhme.h.

#define BIGMAC_XCFG_ODENABLE   0x00000001 /* Output driver enable */

Definition at line 204 of file sunhme.h.

#define BIGMAC_XCFG_SQENABLE   0x00000010 /* SQE test enable */

Definition at line 208 of file sunhme.h.

#define BIGMAC_XCFG_SQETWIN   0x000003e0 /* SQE time window */

Definition at line 209 of file sunhme.h.

#define BIGMAC_XCFG_XLBACK   0x00000002 /* Loopback-mode XIF enable */

Definition at line 205 of file sunhme.h.

#define BMAC_AFILTER0   0x358UL /* Address filter 0 */

Definition at line 199 of file sunhme.h.

#define BMAC_AFILTER1   0x354UL /* Address filter 1 */

Definition at line 198 of file sunhme.h.

#define BMAC_AFILTER2   0x350UL /* Address filter 2 */

Definition at line 197 of file sunhme.h.

#define BMAC_AFMASK   0x35cUL /* Address filter mask */

Definition at line 200 of file sunhme.h.

#define BMAC_ALIMIT   0x218UL /* Transmit attempt limit */

Definition at line 162 of file sunhme.h.

#define BMAC_DTCTR   0x23cUL /* Transmit defer timer */

Definition at line 171 of file sunhme.h.

#define BMAC_EXCTR   0x248UL /* Transmit excess-collision counter */

Definition at line 174 of file sunhme.h.

#define BMAC_FCCTR   0x244UL /* Transmit first-collision counter */

Definition at line 173 of file sunhme.h.

#define BMAC_FRCTR   0x324UL /* Receive frame receive counter */

Definition at line 186 of file sunhme.h.

#define BMAC_GLECTR   0x328UL /* Receive giant-length error counter */

Definition at line 187 of file sunhme.h.

#define BMAC_HTABLE0   0x34cUL /* Hash table 0 */

Definition at line 196 of file sunhme.h.

#define BMAC_HTABLE1   0x348UL /* Hash table 1 */

Definition at line 195 of file sunhme.h.

#define BMAC_HTABLE2   0x344UL /* Hash table 2 */

Definition at line 194 of file sunhme.h.

#define BMAC_HTABLE3   0x340UL /* Hash table 3 */

Definition at line 193 of file sunhme.h.

#define BMAC_IGAP1   0x210UL /* Inter-packet gap 1 */

Definition at line 160 of file sunhme.h.

#define BMAC_IGAP2   0x214UL /* Inter-packet gap 2 */

Definition at line 161 of file sunhme.h.

#define BMAC_JSIZE   0x22cUL /* Jam size */

Definition at line 167 of file sunhme.h.

#define BMAC_LTCTR   0x24cUL /* Transmit late-collision counter */

Definition at line 175 of file sunhme.h.

#define BMAC_MACADDR0   0x320UL /* Ether address register 0 */

Definition at line 185 of file sunhme.h.

#define BMAC_MACADDR1   0x31cUL /* Ether address register 1 */

Definition at line 184 of file sunhme.h.

#define BMAC_MACADDR2   0x318UL /* Ether address register 2 */

Definition at line 183 of file sunhme.h.

#define BMAC_NCCTR   0x240UL /* Transmit normal-collision counter */

Definition at line 172 of file sunhme.h.

#define BMAC_PATTEMPT   0x238UL /* Count of transmit peak attempts */

Definition at line 170 of file sunhme.h.

#define BMAC_PLEN   0x220UL /* Size of transmit preamble */

Definition at line 164 of file sunhme.h.

#define BMAC_PPAT   0x224UL /* Pattern for transmit preamble */

Definition at line 165 of file sunhme.h.

#define BMAC_RCRCECTR   0x330UL /* Receive CRC error counter */

Definition at line 189 of file sunhme.h.

#define BMAC_REG_SIZE   0x360UL

Definition at line 201 of file sunhme.h.

#define BMAC_RSEED   0x250UL /* Transmit random number seed */

Definition at line 176 of file sunhme.h.

#define BMAC_RXCFG   0x30cUL /* Receiver config register */

Definition at line 180 of file sunhme.h.

#define BMAC_RXCVALID   0x338UL /* Receiver code violation */

Definition at line 191 of file sunhme.h.

#define BMAC_RXMAX   0x310UL /* Receive max pkt size */

Definition at line 181 of file sunhme.h.

#define BMAC_RXMIN   0x314UL /* Receive min pkt size */

Definition at line 182 of file sunhme.h.

#define BMAC_RXSMACHINE   0x334UL /* Receiver state machine */

Definition at line 190 of file sunhme.h.

#define BMAC_RXSWRESET   0x308UL /* Receiver software reset */

Definition at line 179 of file sunhme.h.

#define BMAC_STIME   0x21cUL /* Transmit slot time */

Definition at line 163 of file sunhme.h.

#define BMAC_TXCFG   0x20cUL /* Transmitter config register */

Definition at line 159 of file sunhme.h.

#define BMAC_TXMAX   0x230UL /* Transmit max pkt size */

Definition at line 168 of file sunhme.h.

#define BMAC_TXMIN   0x234UL /* Transmit min pkt size */

Definition at line 169 of file sunhme.h.

#define BMAC_TXSDELIM   0x228UL /* Transmit delimiter */

Definition at line 166 of file sunhme.h.

#define BMAC_TXSMACHINE   0x254UL /* Transmit state machine */

Definition at line 177 of file sunhme.h.

#define BMAC_TXSWRESET   0x208UL /* Transmitter software reset */

Definition at line 158 of file sunhme.h.

#define BMAC_UNALECTR   0x32cUL /* Receive unaligned error counter */

Definition at line 188 of file sunhme.h.

#define BMAC_XIFCFG   0x0000UL /* XIF config register */

Definition at line 156 of file sunhme.h.

#define CSCONFIG_CLKTRISTATE   0x0080 /* Tristate 25m clock */

Definition at line 290 of file sunhme.h.

#define CSCONFIG_DFBYPASS   0x0020 /* Bypass disconnect function */

Definition at line 288 of file sunhme.h.

#define CSCONFIG_ENCODE   0x0800 /* 1=MLT-3, 0=binary */

Definition at line 292 of file sunhme.h.

#define CSCONFIG_GLFORCE   0x0040 /* Good link force for 100mbps */

Definition at line 289 of file sunhme.h.

#define CSCONFIG_LED1   0x0004 /* Pin for conn-status LED1 */

Definition at line 285 of file sunhme.h.

#define CSCONFIG_LED4   0x0002 /* Pin for full-dplx LED4 */

Definition at line 284 of file sunhme.h.

#define CSCONFIG_NDISABLE   0x8000 /* Disable NRZI */

Definition at line 296 of file sunhme.h.

#define CSCONFIG_RENABLE   0x1000 /* Repeater mode enable */

Definition at line 293 of file sunhme.h.

#define CSCONFIG_RESV1   0x0001 /* Unused... */

Definition at line 283 of file sunhme.h.

#define CSCONFIG_RESV2   0x0008 /* Unused... */

Definition at line 286 of file sunhme.h.

#define CSCONFIG_RESV3   0x0700 /* Unused... */

Definition at line 291 of file sunhme.h.

#define CSCONFIG_RESV4   0x4000 /* Unused... */

Definition at line 295 of file sunhme.h.

#define CSCONFIG_TCDISABLE   0x2000 /* Disable timeout counter */

Definition at line 294 of file sunhme.h.

#define CSCONFIG_TCVDISAB   0x0010 /* Turns off the transceiver */

Definition at line 287 of file sunhme.h.

#define DP83840_CSCONFIG   0x17 /* CS configuration */

Definition at line 280 of file sunhme.h.

#define ERX_BPTR   0x08UL /* Receiver buffer ptr */

Definition at line 135 of file sunhme.h.

#define ERX_CFG   0x00UL /* Receiver config register */

Definition at line 133 of file sunhme.h.

#define ERX_CFG_BYTEOFFSET   0x00000038 /* Receive first byte offset */

Definition at line 146 of file sunhme.h.

#define ERX_CFG_CSUMSTART
Value:
0x007f0000 /* Offset of checksum start,
* in halfwords. */

Definition at line 153 of file sunhme.h.

#define ERX_CFG_DEFAULT (   off)    (ERX_CFG_DMAENABLE|((off)<<3)|ERX_CFG_SIZE32|((14/2)<<16))

Definition at line 341 of file sunhme.h.

#define ERX_CFG_DMAENABLE   0x00000001 /* Enable receive DMA */

Definition at line 144 of file sunhme.h.

#define ERX_CFG_RESV1   0x00000006 /* Unused... */

Definition at line 145 of file sunhme.h.

#define ERX_CFG_RESV2   0x000001c0 /* Unused... */

Definition at line 147 of file sunhme.h.

#define ERX_CFG_RESV3   0x0000f800 /* Unused... */

Definition at line 152 of file sunhme.h.

#define ERX_CFG_SIZE128   0x00000400 /* Receive ring size == 128 */

Definition at line 150 of file sunhme.h.

#define ERX_CFG_SIZE256   0x00000600 /* Receive ring size == 256 */

Definition at line 151 of file sunhme.h.

#define ERX_CFG_SIZE32   0x00000000 /* Receive ring size == 32 */

Definition at line 148 of file sunhme.h.

#define ERX_CFG_SIZE64   0x00000200 /* Receive ring size == 64 */

Definition at line 149 of file sunhme.h.

#define ERX_FIFORPTR   0x14UL /* FIFO read ptr */

Definition at line 138 of file sunhme.h.

#define ERX_FIFOSRPTR   0x18UL /* FIFO read ptr (shadow register) */

Definition at line 139 of file sunhme.h.

#define ERX_FIFOSWPTR   0x10UL /* FIFO write ptr (shadow register) */

Definition at line 137 of file sunhme.h.

#define ERX_FIFOWPTR   0x0cUL /* FIFO write ptr */

Definition at line 136 of file sunhme.h.

#define ERX_REG_SIZE   0x20UL

Definition at line 141 of file sunhme.h.

#define ERX_RING   0x04UL /* Receiver ring ptr */

Definition at line 134 of file sunhme.h.

#define ERX_SMACHINE   0x1cUL /* Receiver state machine */

Definition at line 140 of file sunhme.h.

#define ETX_BBASE   0x0cUL /* Transmit buffer base */

Definition at line 109 of file sunhme.h.

#define ETX_BDISP   0x10UL /* Transmit buffer displacement */

Definition at line 110 of file sunhme.h.

#define ETX_BPTR   0x30UL /* Transmit data buffer ptr */

Definition at line 118 of file sunhme.h.

#define ETX_CFG   0x04UL /* Transmit config register */

Definition at line 107 of file sunhme.h.

#define ETX_CFG_DMAENABLE   0x00000001 /* Enable transmit dma */

Definition at line 125 of file sunhme.h.

#define ETX_CFG_FIFOTHRESH   0x000003fe /* Transmit FIFO threshold */

Definition at line 126 of file sunhme.h.

#define ETX_CFG_IRQDAFTER   0x00000400 /* Interrupt after TX-FIFO drained */

Definition at line 127 of file sunhme.h.

#define ETX_CFG_IRQDBEFORE   0x00000000 /* Interrupt before TX-FIFO drained */

Definition at line 128 of file sunhme.h.

#define ETX_FIFOPCNT   0x24UL /* FIFO packet counter */

Definition at line 115 of file sunhme.h.

#define ETX_FIFORPTR   0x1cUL /* FIFO read ptr */

Definition at line 113 of file sunhme.h.

#define ETX_FIFOSRPTR   0x20UL /* FIFO read ptr (shadow register) */

Definition at line 114 of file sunhme.h.

#define ETX_FIFOSWPTR   0x18UL /* FIFO write ptr (shadow register) */

Definition at line 112 of file sunhme.h.

#define ETX_FIFOWPTR   0x14UL /* FIFO write ptr */

Definition at line 111 of file sunhme.h.

#define ETX_PENDING   0x00UL /* Transmit pending/wakeup register */

Definition at line 106 of file sunhme.h.

#define ETX_REG_SIZE   0x34UL

Definition at line 119 of file sunhme.h.

#define ETX_RING   0x08UL /* Transmit ring pointer */

Definition at line 108 of file sunhme.h.

#define ETX_RSIZE   0x2cUL /* Ring descriptor size */

Definition at line 117 of file sunhme.h.

#define ETX_RSIZE_SHIFT   4

Definition at line 130 of file sunhme.h.

#define ETX_SMACHINE   0x28UL /* Transmitter state machine */

Definition at line 116 of file sunhme.h.

#define ETX_TP_DMAWAKEUP   0x00000001 /* Restart transmit dma */

Definition at line 122 of file sunhme.h.

#define FRAME_READ   0x60020000

Definition at line 246 of file sunhme.h.

#define FRAME_WRITE   0x50020000

Definition at line 245 of file sunhme.h.

#define GREG_CFG   0x004UL /* Config Register */

Definition at line 15 of file sunhme.h.

#define GREG_CFG_64BIT   0x04

Definition at line 30 of file sunhme.h.

#define GREG_CFG_BURST16   0x00

Definition at line 27 of file sunhme.h.

#define GREG_CFG_BURST32   0x01

Definition at line 28 of file sunhme.h.

#define GREG_CFG_BURST64   0x02

Definition at line 29 of file sunhme.h.

#define GREG_CFG_BURSTMSK   0x03

Definition at line 26 of file sunhme.h.

#define GREG_CFG_PARITY   0x08

Definition at line 31 of file sunhme.h.

#define GREG_CFG_RESV   0x10

Definition at line 32 of file sunhme.h.

#define GREG_IMASK   0x10cUL /* Interrupt Mask */

Definition at line 17 of file sunhme.h.

#define GREG_IMASK_ACNTEXP   0x00000004 /* Align-error counter expired */

Definition at line 74 of file sunhme.h.

#define GREG_IMASK_CCNTEXP   0x00000008 /* CRC-error counter expired */

Definition at line 75 of file sunhme.h.

#define GREG_IMASK_CVCNTEXP   0x00000040 /* Code-violation counter expired */

Definition at line 78 of file sunhme.h.

#define GREG_IMASK_DTIMEXP   0x00008000 /* Defer-timer expired */

Definition at line 87 of file sunhme.h.

#define GREG_IMASK_ECNTEXP   0x00001000 /* Excess-collision counter expired */

Definition at line 84 of file sunhme.h.

#define GREG_IMASK_EOPERR   0x00400000 /* Transmit descriptor did not have EOP set */

Definition at line 94 of file sunhme.h.

#define GREG_IMASK_FCNTEXP   0x00004000 /* First-collision counter expired */

Definition at line 86 of file sunhme.h.

#define GREG_IMASK_GOTFRAME   0x00000001 /* Received a frame */

Definition at line 72 of file sunhme.h.

#define GREG_IMASK_HOSTTOTX   0x01000000 /* Moved from host memory to transmit-FIFO */

Definition at line 96 of file sunhme.h.

#define GREG_IMASK_LCCNTEXP   0x00002000 /* Late-collision counter expired */

Definition at line 85 of file sunhme.h.

#define GREG_IMASK_LCNTEXP   0x00000010 /* Length-error counter expired */

Definition at line 76 of file sunhme.h.

#define GREG_IMASK_MAXPKTERR   0x00000400 /* Max-packet size error */

Definition at line 82 of file sunhme.h.

#define GREG_IMASK_MIFIRQ   0x00800000 /* MIF is signaling an interrupt condition */

Definition at line 95 of file sunhme.h.

#define GREG_IMASK_NCNTEXP   0x00000800 /* Normal-collision counter expired */

Definition at line 83 of file sunhme.h.

#define GREG_IMASK_NORXD   0x00020000 /* No more receive descriptors */

Definition at line 89 of file sunhme.h.

#define GREG_IMASK_RCNTEXP   0x00000002 /* Receive frame counter expired */

Definition at line 73 of file sunhme.h.

#define GREG_IMASK_RFIFOVF   0x00000020 /* Receive FIFO overflow */

Definition at line 77 of file sunhme.h.

#define GREG_IMASK_RXERR   0x00040000 /* Error during receive dma */

Definition at line 90 of file sunhme.h.

#define GREG_IMASK_RXLATERR   0x00080000 /* Late error during receive dma */

Definition at line 91 of file sunhme.h.

#define GREG_IMASK_RXPERR   0x00100000 /* Parity error during receive dma */

Definition at line 92 of file sunhme.h.

#define GREG_IMASK_RXTERR   0x00200000 /* Tag error during receive dma */

Definition at line 93 of file sunhme.h.

#define GREG_IMASK_RXTOHOST   0x00010000 /* Moved from receive-FIFO to host memory */

Definition at line 88 of file sunhme.h.

#define GREG_IMASK_SENTFRAME   0x00000100 /* Transmitted a frame */

Definition at line 80 of file sunhme.h.

#define GREG_IMASK_SLVERR   0x40000000 /* PIO access got an error */

Definition at line 102 of file sunhme.h.

#define GREG_IMASK_SLVPERR   0x80000000 /* PIO access got a parity error */

Definition at line 103 of file sunhme.h.

#define GREG_IMASK_STSTERR   0x00000080 /* Test error in XIF for SQE */

Definition at line 79 of file sunhme.h.

#define GREG_IMASK_TFIFO_UND   0x00000200 /* Transmit FIFO underrun */

Definition at line 81 of file sunhme.h.

#define GREG_IMASK_TXALL   0x02000000 /* Transmitted all packets in the tx-fifo */

Definition at line 97 of file sunhme.h.

#define GREG_IMASK_TXEACK   0x04000000 /* Error during transmit dma */

Definition at line 98 of file sunhme.h.

#define GREG_IMASK_TXLERR   0x08000000 /* Late error during transmit dma */

Definition at line 99 of file sunhme.h.

#define GREG_IMASK_TXPERR   0x10000000 /* Parity error during transmit dma */

Definition at line 100 of file sunhme.h.

#define GREG_IMASK_TXTERR   0x20000000 /* Tag error during transmit dma */

Definition at line 101 of file sunhme.h.

#define GREG_REG_SIZE   0x110UL

Definition at line 18 of file sunhme.h.

#define GREG_RESET_ALL   0x03

Definition at line 23 of file sunhme.h.

#define GREG_RESET_ERX   0x02

Definition at line 22 of file sunhme.h.

#define GREG_RESET_ETX   0x01

Definition at line 21 of file sunhme.h.

#define GREG_STAT   0x108UL /* Status */

Definition at line 16 of file sunhme.h.

#define GREG_STAT_ACNTEXP   0x00000004 /* Align-error counter expired */

Definition at line 37 of file sunhme.h.

#define GREG_STAT_CCNTEXP   0x00000008 /* CRC-error counter expired */

Definition at line 38 of file sunhme.h.

#define GREG_STAT_CVCNTEXP   0x00000040 /* Code-violation counter expired */

Definition at line 41 of file sunhme.h.

#define GREG_STAT_DTIMEXP   0x00008000 /* Defer-timer expired */

Definition at line 50 of file sunhme.h.

#define GREG_STAT_ECNTEXP   0x00001000 /* Excess-collision counter expired */

Definition at line 47 of file sunhme.h.

#define GREG_STAT_EOPERR   0x00400000 /* Transmit descriptor did not have EOP set */

Definition at line 57 of file sunhme.h.

#define GREG_STAT_ERRORS   0xfc7efefc

Definition at line 69 of file sunhme.h.

#define GREG_STAT_FCNTEXP   0x00004000 /* First-collision counter expired */

Definition at line 49 of file sunhme.h.

#define GREG_STAT_GOTFRAME   0x00000001 /* Received a frame */

Definition at line 35 of file sunhme.h.

#define GREG_STAT_HOSTTOTX   0x01000000 /* Moved from host memory to transmit-FIFO */

Definition at line 59 of file sunhme.h.

#define GREG_STAT_LCCNTEXP   0x00002000 /* Late-collision counter expired */

Definition at line 48 of file sunhme.h.

#define GREG_STAT_LCNTEXP   0x00000010 /* Length-error counter expired */

Definition at line 39 of file sunhme.h.

#define GREG_STAT_MAXPKTERR   0x00000400 /* Max-packet size error */

Definition at line 45 of file sunhme.h.

#define GREG_STAT_MIFIRQ   0x00800000 /* MIF is signaling an interrupt condition */

Definition at line 58 of file sunhme.h.

#define GREG_STAT_NCNTEXP   0x00000800 /* Normal-collision counter expired */

Definition at line 46 of file sunhme.h.

#define GREG_STAT_NORXD   0x00020000 /* No more receive descriptors */

Definition at line 52 of file sunhme.h.

#define GREG_STAT_RCNTEXP   0x00000002 /* Receive frame counter expired */

Definition at line 36 of file sunhme.h.

#define GREG_STAT_RFIFOVF   0x00000020 /* Receive FIFO overflow */

Definition at line 40 of file sunhme.h.

#define GREG_STAT_RXERR   0x00040000 /* Error during receive dma */

Definition at line 53 of file sunhme.h.

#define GREG_STAT_RXLATERR   0x00080000 /* Late error during receive dma */

Definition at line 54 of file sunhme.h.

#define GREG_STAT_RXPERR   0x00100000 /* Parity error during receive dma */

Definition at line 55 of file sunhme.h.

#define GREG_STAT_RXTERR   0x00200000 /* Tag error during receive dma */

Definition at line 56 of file sunhme.h.

#define GREG_STAT_RXTOHOST   0x00010000 /* Moved from receive-FIFO to host memory */

Definition at line 51 of file sunhme.h.

#define GREG_STAT_SENTFRAME   0x00000100 /* Transmitted a frame */

Definition at line 43 of file sunhme.h.

#define GREG_STAT_SLVERR   0x40000000 /* PIO access got an error */

Definition at line 65 of file sunhme.h.

#define GREG_STAT_SLVPERR   0x80000000 /* PIO access got a parity error */

Definition at line 66 of file sunhme.h.

#define GREG_STAT_STSTERR   0x00000080 /* Test error in XIF for SQE */

Definition at line 42 of file sunhme.h.

#define GREG_STAT_TFIFO_UND   0x00000200 /* Transmit FIFO underrun */

Definition at line 44 of file sunhme.h.

#define GREG_STAT_TXALL   0x02000000 /* Transmitted all packets in the tx-fifo */

Definition at line 60 of file sunhme.h.

#define GREG_STAT_TXEACK   0x04000000 /* Error during transmit dma */

Definition at line 61 of file sunhme.h.

#define GREG_STAT_TXLERR   0x08000000 /* Late error during transmit dma */

Definition at line 62 of file sunhme.h.

#define GREG_STAT_TXPERR   0x10000000 /* Parity error during transmit dma */

Definition at line 63 of file sunhme.h.

#define GREG_STAT_TXTERR   0x20000000 /* Tag error during transmit dma */

Definition at line 64 of file sunhme.h.

#define GREG_SWRESET   0x000UL /* Software Reset */

Definition at line 14 of file sunhme.h.

#define happy_meal_alloc_skb (   __length,
  __gfp_flags 
)
Value:
({ struct sk_buff *__skb; \
__skb = alloc_skb((__length) + 64, (__gfp_flags)); \
if(__skb) { \
int __offset = (int) ALIGNED_RX_SKB_ADDR(__skb->data); \
if(__offset) \
skb_reserve(__skb, __offset); \
} \
__skb; \
})

Definition at line 501 of file sunhme.h.

#define hblock_offset (   mem,
  elem 
)    ((__u32)((unsigned long)(&(((struct hmeal_init_block *)0)->mem[elem]))))

Definition at line 378 of file sunhme.h.

#define HFLAG_20_21   (HFLAG_POLLENABLE | HFLAG_FENABLE)

Definition at line 479 of file sunhme.h.

#define HFLAG_AUTO   0x00000010 /* Using auto-negotiation, 0 = force */

Definition at line 469 of file sunhme.h.

#define HFLAG_FENABLE   0x00000002 /* The MII frame is enabled */

Definition at line 466 of file sunhme.h.

#define HFLAG_FULL   0x00000020 /* Full duplex enable */

Definition at line 470 of file sunhme.h.

#define HFLAG_INIT   0x00000200 /* Init called at least once */

Definition at line 474 of file sunhme.h.

#define HFLAG_LANCE   0x00000004 /* We are using lance-mode */

Definition at line 467 of file sunhme.h.

#define HFLAG_LINKUP   0x00000400 /* 1 = Link is up */

Definition at line 475 of file sunhme.h.

#define HFLAG_MACFULL   0x00000040 /* Using full duplex in the MAC */

Definition at line 471 of file sunhme.h.

#define HFLAG_NOT_A0   (HFLAG_POLLENABLE | HFLAG_FENABLE | HFLAG_LANCE | HFLAG_RXCV)

Definition at line 480 of file sunhme.h.

#define HFLAG_PCI   0x00000800 /* PCI based Happy Meal */

Definition at line 476 of file sunhme.h.

#define HFLAG_POLL   0x00000001 /* We are doing MIF polling */

Definition at line 465 of file sunhme.h.

#define HFLAG_POLLENABLE   0x00000080 /* Actually try MIF polling */

Definition at line 472 of file sunhme.h.

#define HFLAG_QUATTRO   0x00001000 /* On QFE/Quattro card */

Definition at line 477 of file sunhme.h.

#define HFLAG_RXCV   0x00000100 /* XXX RXCV ENABLE */

Definition at line 473 of file sunhme.h.

#define HFLAG_RXENABLE   0x00000008 /* Receiver is enabled */

Definition at line 468 of file sunhme.h.

#define NEXT_RX (   num)    (((num) + 1) & (RX_RING_SIZE - 1))

Definition at line 358 of file sunhme.h.

#define NEXT_TX (   num)    (((num) + 1) & (TX_RING_SIZE - 1))

Definition at line 359 of file sunhme.h.

#define PREV_RX (   num)    (((num) - 1) & (RX_RING_SIZE - 1))

Definition at line 360 of file sunhme.h.

#define PREV_TX (   num)    (((num) - 1) & (TX_RING_SIZE - 1))

Definition at line 361 of file sunhme.h.

#define RX_BUF_ALLOC_SIZE   (1546 + RX_OFFSET + 64)

Definition at line 369 of file sunhme.h.

#define RX_COPY_THRESHOLD   256

Definition at line 371 of file sunhme.h.

#define RX_OFFSET   2

Definition at line 368 of file sunhme.h.

#define RX_RING_MAXSIZE   256

Definition at line 337 of file sunhme.h.

#define RX_RING_SIZE   32 /* see ERX_CFG_SIZE* for possible values */

Definition at line 330 of file sunhme.h.

#define RXFLAG_CSUM   0x0000ffff /* HW computed checksum */

Definition at line 314 of file sunhme.h.

#define RXFLAG_OVERFLOW   0x40000000 /* 1 = buffer overflow */

Definition at line 312 of file sunhme.h.

#define RXFLAG_OWN   0x80000000 /* 1 = hardware, 0 = software */

Definition at line 311 of file sunhme.h.

#define RXFLAG_SIZE   0x3fff0000 /* Size of the buffer */

Definition at line 313 of file sunhme.h.

#define TCV_CFG_BENABLE   0x00000004 /* Enable the "bit banger" oh baby */

Definition at line 251 of file sunhme.h.

#define TCV_CFG_MDIO0   0x00000100 /* MDIO zero, data/attached */

Definition at line 253 of file sunhme.h.

#define TCV_CFG_MDIO1   0x00000200 /* MDIO one, data/attached */

Definition at line 254 of file sunhme.h.

#define TCV_CFG_PDADDR   0x00007c00 /* Device PHY address polling */

Definition at line 255 of file sunhme.h.

#define TCV_CFG_PENABLE   0x00000002 /* Enable MIF polling */

Definition at line 250 of file sunhme.h.

#define TCV_CFG_PREGADDR   0x000000f8 /* Address of poll register */

Definition at line 252 of file sunhme.h.

#define TCV_CFG_PSELECT   0x00000001 /* Select PHY */

Definition at line 249 of file sunhme.h.

#define TCV_PADDR_ETX   0 /* Internal transceiver */

Definition at line 258 of file sunhme.h.

#define TCV_PADDR_ITX   1 /* External transceiver */

Definition at line 259 of file sunhme.h.

#define TCV_STAT_BASIC   0xffff0000 /* The "basic" part */

Definition at line 262 of file sunhme.h.

#define TCV_STAT_NORMAL   0x0000ffff /* The "non-basic" part */

Definition at line 263 of file sunhme.h.

#define TCVR_BBCLOCK   0x00UL /* Bit bang clock register */

Definition at line 234 of file sunhme.h.

#define TCVR_BBDATA   0x04UL /* Bit bang data register */

Definition at line 235 of file sunhme.h.

#define TCVR_BBOENAB   0x08UL /* Bit bang output enable */

Definition at line 236 of file sunhme.h.

#define TCVR_CFG   0x10UL /* MIF config register */

Definition at line 238 of file sunhme.h.

#define TCVR_FRAME   0x0cUL /* Frame control/data register */

Definition at line 237 of file sunhme.h.

#define TCVR_IMASK   0x14UL /* MIF interrupt mask */

Definition at line 239 of file sunhme.h.

#define TCVR_REG_SIZE   0x20UL

Definition at line 242 of file sunhme.h.

#define TCVR_SMACHINE   0x1cUL /* MIF state machine */

Definition at line 241 of file sunhme.h.

#define TCVR_STATUS   0x18UL /* MIF status */

Definition at line 240 of file sunhme.h.

#define TX_BUFFS_AVAIL (   hp)
Value:
(((hp)->tx_old <= (hp)->tx_new) ? \
(hp)->tx_old + (TX_RING_SIZE - 1) - (hp)->tx_new : \
(hp)->tx_old - (hp)->tx_new - 1)

Definition at line 363 of file sunhme.h.

#define TX_RING_MAXSIZE   256

Definition at line 336 of file sunhme.h.

#define TX_RING_SIZE   32 /* Must be >16 and <255, multiple of 16 */

Definition at line 329 of file sunhme.h.

#define TXFLAG_CSBUFBEGIN   0x000fc000 /* Where to begin checksum */

Definition at line 326 of file sunhme.h.

#define TXFLAG_CSENABLE   0x10000000 /* 1 = enable hw-checksums */

Definition at line 324 of file sunhme.h.

#define TXFLAG_CSLOCATION   0x0ff00000 /* Where to stick the csum */

Definition at line 325 of file sunhme.h.

#define TXFLAG_EOP   0x20000000 /* 1 = end of packet */

Definition at line 323 of file sunhme.h.

#define TXFLAG_OWN   0x80000000 /* 1 = hardware, 0 = software */

Definition at line 321 of file sunhme.h.

#define TXFLAG_SIZE   0x00003fff /* Size of the packet */

Definition at line 327 of file sunhme.h.

#define TXFLAG_SOP   0x40000000 /* 1 = start of packet */

Definition at line 322 of file sunhme.h.

Typedef Documentation

Definition at line 304 of file sunhme.h.

Enumeration Type Documentation

Enumerator:
arbwait 
lupwait 
ltrywait 
asleep 

Definition at line 389 of file sunhme.h.

Enumerator:
external 
internal 
none 

Definition at line 382 of file sunhme.h.