mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 00:24:12 +00:00
realtek: rename rtl838x_reg structure
Rename the SoC-specific rtl838x_reg structure in the Ethernet driver to avoid confusion with the structure of the same name in the DSA driver. New name is: rtl838x_eth_reg Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
This commit is contained in:
parent
2f51e567ff
commit
9024202052
@ -182,7 +182,7 @@ struct rtl838x_eth_priv {
|
|||||||
struct phylink_config phylink_config;
|
struct phylink_config phylink_config;
|
||||||
u16 id;
|
u16 id;
|
||||||
u16 family_id;
|
u16 family_id;
|
||||||
const struct rtl838x_reg *r;
|
const struct rtl838x_eth_reg *r;
|
||||||
u8 cpu_port;
|
u8 cpu_port;
|
||||||
u32 lastEvent;
|
u32 lastEvent;
|
||||||
u16 rxrings;
|
u16 rxrings;
|
||||||
@ -515,7 +515,7 @@ static irqreturn_t rtl93xx_net_irq(int irq, void *dev_id)
|
|||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct rtl838x_reg rtl838x_reg = {
|
static const struct rtl838x_eth_reg rtl838x_reg = {
|
||||||
.net_irq = rtl83xx_net_irq,
|
.net_irq = rtl83xx_net_irq,
|
||||||
.mac_port_ctrl = rtl838x_mac_port_ctrl,
|
.mac_port_ctrl = rtl838x_mac_port_ctrl,
|
||||||
.dma_if_intr_sts = RTL838X_DMA_IF_INTR_STS,
|
.dma_if_intr_sts = RTL838X_DMA_IF_INTR_STS,
|
||||||
@ -540,7 +540,7 @@ static const struct rtl838x_reg rtl838x_reg = {
|
|||||||
.decode_tag = rtl838x_decode_tag,
|
.decode_tag = rtl838x_decode_tag,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct rtl838x_reg rtl839x_reg = {
|
static const struct rtl838x_eth_reg rtl839x_reg = {
|
||||||
.net_irq = rtl83xx_net_irq,
|
.net_irq = rtl83xx_net_irq,
|
||||||
.mac_port_ctrl = rtl839x_mac_port_ctrl,
|
.mac_port_ctrl = rtl839x_mac_port_ctrl,
|
||||||
.dma_if_intr_sts = RTL839X_DMA_IF_INTR_STS,
|
.dma_if_intr_sts = RTL839X_DMA_IF_INTR_STS,
|
||||||
@ -565,7 +565,7 @@ static const struct rtl838x_reg rtl839x_reg = {
|
|||||||
.decode_tag = rtl839x_decode_tag,
|
.decode_tag = rtl839x_decode_tag,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct rtl838x_reg rtl930x_reg = {
|
static const struct rtl838x_eth_reg rtl930x_reg = {
|
||||||
.net_irq = rtl93xx_net_irq,
|
.net_irq = rtl93xx_net_irq,
|
||||||
.mac_port_ctrl = rtl930x_mac_port_ctrl,
|
.mac_port_ctrl = rtl930x_mac_port_ctrl,
|
||||||
.dma_if_intr_rx_runout_sts = RTL930X_DMA_IF_INTR_RX_RUNOUT_STS,
|
.dma_if_intr_rx_runout_sts = RTL930X_DMA_IF_INTR_RX_RUNOUT_STS,
|
||||||
@ -596,7 +596,7 @@ static const struct rtl838x_reg rtl930x_reg = {
|
|||||||
.decode_tag = rtl930x_decode_tag,
|
.decode_tag = rtl930x_decode_tag,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct rtl838x_reg rtl931x_reg = {
|
static const struct rtl838x_eth_reg rtl931x_reg = {
|
||||||
.net_irq = rtl93xx_net_irq,
|
.net_irq = rtl93xx_net_irq,
|
||||||
.mac_port_ctrl = rtl931x_mac_port_ctrl,
|
.mac_port_ctrl = rtl931x_mac_port_ctrl,
|
||||||
.dma_if_intr_rx_runout_sts = RTL931X_DMA_IF_INTR_RX_RUNOUT_STS,
|
.dma_if_intr_rx_runout_sts = RTL931X_DMA_IF_INTR_RX_RUNOUT_STS,
|
||||||
|
@ -383,7 +383,7 @@ inline u32 rtl931x_get_mac_tx_pause_sts(int p)
|
|||||||
struct p_hdr;
|
struct p_hdr;
|
||||||
struct dsa_tag;
|
struct dsa_tag;
|
||||||
|
|
||||||
struct rtl838x_reg {
|
struct rtl838x_eth_reg {
|
||||||
irqreturn_t (*net_irq)(int irq, void *dev_id);
|
irqreturn_t (*net_irq)(int irq, void *dev_id);
|
||||||
int (*mac_port_ctrl)(int port);
|
int (*mac_port_ctrl)(int port);
|
||||||
int dma_if_intr_sts;
|
int dma_if_intr_sts;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user