bcmgenet.h (8562056f267db98f5c078fcf7f071c8a4a752ef3) bcmgenet.h (c51de7f3976b649d72d3ff006954640aec2fe58c)
1/*
2 * Copyright (c) 2014 Broadcom Corporation
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 442 unchanged lines hidden (view full) ---

451 DEFINE_DMA_UNMAP_ADDR(dma_addr);
452 DEFINE_DMA_UNMAP_LEN(dma_len);
453};
454
455/* power management mode */
456enum bcmgenet_power_mode {
457 GENET_POWER_CABLE_SENSE = 0,
458 GENET_POWER_PASSIVE,
1/*
2 * Copyright (c) 2014 Broadcom Corporation
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 442 unchanged lines hidden (view full) ---

451 DEFINE_DMA_UNMAP_ADDR(dma_addr);
452 DEFINE_DMA_UNMAP_LEN(dma_len);
453};
454
455/* power management mode */
456enum bcmgenet_power_mode {
457 GENET_POWER_CABLE_SENSE = 0,
458 GENET_POWER_PASSIVE,
459 GENET_POWER_WOL_MAGIC,
459};
460
461struct bcmgenet_priv;
462
463/* We support both runtime GENET detection and compile-time
464 * to optimize code-paths for a given hardware
465 */
466enum bcmgenet_version {

--- 154 unchanged lines hidden (view full) ---

621GENET_IO_MACRO(rbuf, GENET_RBUF_OFF);
622
623/* MDIO routines */
624int bcmgenet_mii_init(struct net_device *dev);
625int bcmgenet_mii_config(struct net_device *dev);
626void bcmgenet_mii_exit(struct net_device *dev);
627void bcmgenet_mii_reset(struct net_device *dev);
628
460};
461
462struct bcmgenet_priv;
463
464/* We support both runtime GENET detection and compile-time
465 * to optimize code-paths for a given hardware
466 */
467enum bcmgenet_version {

--- 154 unchanged lines hidden (view full) ---

622GENET_IO_MACRO(rbuf, GENET_RBUF_OFF);
623
624/* MDIO routines */
625int bcmgenet_mii_init(struct net_device *dev);
626int bcmgenet_mii_config(struct net_device *dev);
627void bcmgenet_mii_exit(struct net_device *dev);
628void bcmgenet_mii_reset(struct net_device *dev);
629
630/* Wake-on-LAN routines */
631void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol);
632int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol);
633int bcmgenet_wol_power_down_cfg(struct bcmgenet_priv *priv,
634 enum bcmgenet_power_mode mode);
635void bcmgenet_wol_power_up_cfg(struct bcmgenet_priv *priv,
636 enum bcmgenet_power_mode mode);
637
629#endif /* __BCMGENET_H__ */
638#endif /* __BCMGENET_H__ */