linux/include/linux/smc91x.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __SMC91X_H__
#define __SMC91X_H__

/*
 * These bits define which access sizes a platform can support, rather
 * than the maximal access size.  So, if your platform can do 16-bit
 * and 32-bit accesses to the SMC91x device, but not 8-bit, set both
 * SMC91X_USE_16BIT and SMC91X_USE_32BIT.
 *
 * The SMC91x driver requires at least one of SMC91X_USE_8BIT or
 * SMC91X_USE_16BIT to be supported - just setting SMC91X_USE_32BIT is
 * an invalid configuration.
 */
#define SMC91X_USE_8BIT
#define SMC91X_USE_16BIT
#define SMC91X_USE_32BIT

#define SMC91X_NOWAIT

/* two bits for IO_SHIFT, let's hope later designs will keep this sane */
#define SMC91X_IO_SHIFT_0
#define SMC91X_IO_SHIFT_1
#define SMC91X_IO_SHIFT_2
#define SMC91X_IO_SHIFT_3
#define SMC91X_IO_SHIFT(x)

#define SMC91X_USE_DMA

#define RPC_LED_100_10
#define RPC_LED_RES
#define RPC_LED_10
#define RPC_LED_FD
#define RPC_LED_TX_RX
#define RPC_LED_100
#define RPC_LED_TX
#define RPC_LED_RX

struct smc91x_platdata {};

#endif /* __SMC91X_H__ */