linux/drivers/net/ethernet/realtek/atp.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Linux header file for the ATP pocket ethernet adapter. */
/* v1.09 8/9/2000 [email protected]. */

#include <linux/if_ether.h>
#include <linux/types.h>

/* The header prepended to received packets. */
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

/* An inline function used below: it differs from inb() by explicitly
 * return an unsigned char, saving a truncation.
 */
static inline unsigned char inbyte(unsigned short port)
{}

/* Read register OFFSET.
 * This command should always be terminated with read_end().
 */
static inline unsigned char read_nibble(short port, unsigned char offset)
{}

/* Functions for bulk data read.  The interrupt line is always disabled. */
/* Get a byte using read mode 0, reading data from the control lines. */
static inline unsigned char read_byte_mode0(short ioaddr)
{}

/* The same as read_byte_mode0(), but does multiple inb()s for stability. */
static inline unsigned char read_byte_mode2(short ioaddr)
{}

/* Read a byte through the data register. */
static inline unsigned char read_byte_mode4(short ioaddr)
{}

/* Read a byte through the data register, double reading to allow settling. */
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)
{}

/* Write a byte out using nibble mode.  The low nibble is written first. */
static inline void
write_reg_byte(short port, unsigned char reg, unsigned char value)
{}

/* Bulk data writes to the packet buffer.  The interrupt line remains enabled.
 * The first, faster method uses only the dataport (data modes 0, 2 & 4).
 * The second (backup) method uses data and control regs (modes 1, 3 & 5).
 * It should only be needed when there is skew between the individual data
 * lines.
 */
static inline void write_byte_mode0(short ioaddr, unsigned char value)
{}

static inline void write_byte_mode1(short ioaddr, unsigned char value)
{}

/* Write 16bit VALUE to the packet buffer: the same as above just doubled. */
static inline void write_word_mode0(short ioaddr, unsigned short value)
{}

/*  EEPROM_Ctrl bits. */
#define EE_SHIFT_CLK
#define EE_CS
#define EE_CLK_HIGH
#define EE_CLK_LOW
#define EE_DATA_WRITE
#define EE_DATA_READ

/* The EEPROM commands include the alway-set leading bit. */
#define EE_WRITE_CMD(offset)
#define EE_READ(offset)
#define EE_ERASE(offset)
#define EE_CMD_SIZE