#include <linux/if_ether.h>
#include <linux/types.h>
struct rx_header { … };
#define PAR_DATA …
#define PAR_STATUS …
#define PAR_CONTROL …
#define Ctrl_LNibRead …
#define Ctrl_HNibRead …
#define Ctrl_LNibWrite …
#define Ctrl_HNibWrite …
#define Ctrl_SelData …
#define Ctrl_IRQEN …
#define EOW …
#define EOC …
#define WrAddr …
#define RdAddr …
#define HNib …
enum page0_regs { … };
enum eepage_regs { … };
#define ISR_TxOK …
#define ISR_RxOK …
#define ISR_TxErr …
#define ISRh_RxErr …
#define CMR1h_MUX …
#define CMR1h_RESET …
#define CMR1h_RxENABLE …
#define CMR1h_TxENABLE …
#define CMR1h_TxRxOFF …
#define CMR1_ReXmit …
#define CMR1_Xmit …
#define CMR1_IRQ …
#define CMR1_BufEnb …
#define CMR1_NextPkt …
#define CMR2_NULL …
#define CMR2_IRQOUT …
#define CMR2_RAMTEST …
#define CMR2_EEPROM …
#define CMR2h_OFF …
#define CMR2h_Physical …
#define CMR2h_Normal …
#define CMR2h_PROMISC …
static inline unsigned char inbyte(unsigned short port)
{ … }
static inline unsigned char read_nibble(short port, unsigned char offset)
{ … }
static inline unsigned char read_byte_mode0(short ioaddr)
{ … }
static inline unsigned char read_byte_mode2(short ioaddr)
{ … }
static inline unsigned char read_byte_mode4(short ioaddr)
{ … }
static inline unsigned char read_byte_mode6(short ioaddr)
{ … }
static inline void
write_reg(short port, unsigned char reg, unsigned char value)
{ … }
static inline void
write_reg_high(short port, unsigned char reg, unsigned char value)
{ … }
static inline void
write_reg_byte(short port, unsigned char reg, unsigned char value)
{ … }
static inline void write_byte_mode0(short ioaddr, unsigned char value)
{ … }
static inline void write_byte_mode1(short ioaddr, unsigned char value)
{ … }
static inline void write_word_mode0(short ioaddr, unsigned short value)
{ … }
#define EE_SHIFT_CLK …
#define EE_CS …
#define EE_CLK_HIGH …
#define EE_CLK_LOW …
#define EE_DATA_WRITE …
#define EE_DATA_READ …
#define EE_WRITE_CMD(offset) …
#define EE_READ(offset) …
#define EE_ERASE(offset) …
#define EE_CMD_SIZE …