mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 19:36:44 +07:00
3e94794355
This patch introduces struct smc91x_platdata and modifies the driver so bus width is checked during run time using SMC_nBIT() instead of SMC_CAN_USE_nBIT. V2 keeps static configuration lean using SMC_DYNAMIC_BUS_CONFIG. Signed-off-by: Magnus Damm <damm@igel.co.jp> Acked-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
14 lines
263 B
C
14 lines
263 B
C
#ifndef __SMC91X_H__
|
|
#define __SMC91X_H__
|
|
|
|
#define SMC91X_USE_8BIT (1 << 0)
|
|
#define SMC91X_USE_16BIT (1 << 1)
|
|
#define SMC91X_USE_32BIT (1 << 2)
|
|
|
|
struct smc91x_platdata {
|
|
unsigned long flags;
|
|
unsigned long irq_flags; /* IRQF_... */
|
|
};
|
|
|
|
#endif /* __SMC91X_H__ */
|