23 #ifndef __JME_H_INCLUDED__ 24 #define __JME_H_INCLUDED__ 26 #define PCI_VENDOR_ID_JMICRON 0x197b 27 #define PCI_DEVICE_ID_JMICRON_JMC250 0x0250 28 #define PCI_DEVICE_ID_JMICRON_JMC260 0x0260 33 #define PCI_DCSR_MRRS 0x59 34 #define PCI_DCSR_MRRS_MASK 0x70 50 #define RING_DESC_ALIGN 16 51 #define TX_DESC_SIZE 16 122 #define TXDESC_MSS_SHIFT 2 135 #define RX_DESC_SIZE 16 136 #define RX_BUF_DMA_ALIGN 8 137 #define RX_PREPAD_SIZE 10 138 #define ETH_CRC_LEN 2 139 #define RX_VLANHDR_LEN 2 140 #define RX_EXTRA_LEN (ETH_HLEN + \ 144 #define FIXED_MTU 1500 145 #define RX_ALLOC_LEN (FIXED_MTU + RX_EXTRA_LEN) 386 #define JME_TX_DISABLE_TIMEOUT 10 522 #define JME_RX_DISABLE_TIMEOUT 10 548 #define WAKEUP_FRAME_NR 8 549 #define WAKEUP_FRAME_MASK_DWNR 4 593 #define JME_PHY_TIMEOUT 100 594 #define JME_PHY_REG_NR 32 672 #define JME_SPDRSV_TIMEOUT 500 708 #define JME_EEPROM_RELOAD_TIMEOUT 2000 709 #define JME_SMB_BUSY_TIMEOUT 20 710 #define JME_SMB_LEN 256 711 #define JME_EEPROM_MAGIC 0x250
static unsigned int unsigned int reg
jme_rxwbdesc_desccnt_mask
static void jwrite32(struct jme_adapter *jme, uint32_t reg, uint32_t val)
uint32_t readl(volatile uint32_t *io_addr)
Read 32-bit dword from memory-mapped device.
static uint32_t jread32(struct jme_adapter *jme, uint32_t reg)
#define PCI_DEVICE_ID_JMICRON_JMC250
struct mii_if_info mii_if
struct rxdesc::@79::@82 descwb
struct io_buffer ** bufinf
struct txdesc::@74::@77 desc2
void writel(uint32_t data, volatile uint32_t *io_addr)
Write 32-bit dword to memory-mapped device.
static const uint32_t INTR_ENABLE
static void jwrite32f(struct jme_adapter *jme, uint32_t reg, uint32_t val)
static uint32_t smi_reg_addr(int x)
FILE_LICENCE(GPL2_OR_LATER)
struct txdesc::@74::@76 desc1
struct rxdesc::@79::@81 desc1
static uint32_t smi_phy_addr(int x)
jme_rxwbdesc_errstat_bits
struct txdesc::@74::@78 descwb
static int is_buggy250(unsigned short device, unsigned int chiprev)