mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
150647fb2c
The SH7757 has 2 Fast Ethernet and 2 Gigabit Ethernet, and the first Gigabit channel needs the initialization. So, this patch adds the parameter of "needs_init", and if the sh_eth_plat_data is set it to 1, the driver will initialize the channel. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
27 lines
469 B
C
27 lines
469 B
C
#ifndef __ASM_SH_ETH_H__
|
|
#define __ASM_SH_ETH_H__
|
|
|
|
#include <linux/phy.h>
|
|
|
|
enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN};
|
|
enum {
|
|
SH_ETH_REG_GIGABIT,
|
|
SH_ETH_REG_FAST_SH4,
|
|
SH_ETH_REG_FAST_SH3_SH2
|
|
};
|
|
|
|
struct sh_eth_plat_data {
|
|
int phy;
|
|
int edmac_endian;
|
|
int register_type;
|
|
phy_interface_t phy_interface;
|
|
void (*set_mdio_gate)(void *addr);
|
|
|
|
unsigned char mac_addr[6];
|
|
unsigned no_ether_link:1;
|
|
unsigned ether_link_active_low:1;
|
|
unsigned needs_init:1;
|
|
};
|
|
|
|
#endif
|