diff options
Diffstat (limited to 'drivers/net/designware_eqos.h')
-rw-r--r-- | drivers/net/designware_eqos.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/net/designware_eqos.h b/drivers/net/designware_eqos.h index be7bead09e..951565e8f9 100644 --- a/drivers/net/designware_eqos.h +++ b/drivers/net/designware_eqos.h @@ -10,7 +10,7 @@ struct eqos; struct eth_device; struct eqos_ops { - int (*init)(struct device_d *dev, struct eqos *priv); + int (*init)(struct device *dev, struct eqos *priv); int (*get_ethaddr)(struct eth_device *dev, unsigned char *mac); int (*set_ethaddr)(struct eth_device *edev, const unsigned char *mac); void (*adjust_link)(struct eth_device *edev); @@ -40,6 +40,9 @@ struct eqos_dma_regs; struct eqos_mac_regs; struct eqos_mtl_regs; +#define EQOS_DESCRIPTORS_TX 4 +#define EQOS_DESCRIPTORS_RX 64 + struct eqos { struct eth_device netdev; struct mii_bus miibus; @@ -49,6 +52,7 @@ struct eqos { u32 tx_currdescnum, rx_currdescnum; struct eqos_desc *tx_descs, *rx_descs; + dma_addr_t dma_rx_buf[EQOS_DESCRIPTORS_RX]; void __iomem *regs; struct eqos_mac_regs __iomem *mac_regs; @@ -60,13 +64,14 @@ struct eqos { const struct eqos_ops *ops; void *priv; - bool started; + + bool is_started; + bool promisc_enabled; }; -struct device_d; -int eqos_probe(struct device_d *dev, const struct eqos_ops *ops, void *priv); -void eqos_remove(struct device_d *dev); -int eqos_reset(struct eqos *priv); +struct device; +int eqos_probe(struct device *dev, const struct eqos_ops *ops, void *priv); +void eqos_remove(struct device *dev); int eqos_get_ethaddr(struct eth_device *edev, unsigned char *mac); int eqos_set_ethaddr(struct eth_device *edev, const unsigned char *mac); |