• Home
  • Raw
  • Download

Lines Matching full:emac

4  * DaVinci EMAC is based upon CPPI 3.0 TI DMA engine
79 MODULE_PARM_DESC(debug_level, "DaVinci EMAC debug level (NETIF_MSG bits)");
103 static const char emac_version_string[] = "TI DaVinci EMAC Linux v6.1";
107 #define EMAC_DEF_QOS_EN (0) /* EMAC proprietary QoS disabled */
136 /* EMAC register related defines */
163 /* EMAC register definitions/bit maps used */
171 /* EMAC mac_control register */
183 /* EMAC mac_status register */
193 /* EMAC RX register masks */
224 /* EMAC Peripheral Device Register Memory Layout structure */
255 /* EMAC statistics registers */
287 /* EMAC DM644x control registers */
291 /* EMAC DM644x control module masks */
296 /* EMAC DM646X control module registers */
303 /* EMAC DM646X control module masks */
312 /* EMAC EOI codes for C0 */
316 /* EMAC Stats Clear Mask */
319 /* emac_priv: EMAC private data structure
321 * EMAC adapter private data structure
357 /* EMAC TX Host Error description strings */
366 /* EMAC RX Host Error description strings */
382 * emac_get_drvinfo - Get EMAC driver information
383 * @ndev: The DaVinci EMAC network adapter
386 * Returns EMAC driver information (name and version)
398 * @ndev : The DaVinci EMAC network adapter
416 * @ndev : The DaVinci EMAC network adapter
493 /* ethtool_ops: DaVinci EMAC Ethtool structure
495 * Ethtool support for EMAC adapter
509 * @priv: The DaVinci EMAC private adapter structure
601 * @priv: The DaVinci EMAC private adapter structure
616 dev_err(emac_dev, "DaVinci EMAC: emac_hash_add(): Invalid "\ in emac_hash_add()
643 * @priv: The DaVinci EMAC private adapter structure
677 /* EMAC multicast operation */
684 * emac_add_mcast - Set multicast address in the EMAC adapter (Internal)
685 * @priv: The DaVinci EMAC private adapter structure
689 * Set multicast addresses in EMAC adapter - internal function
719 dev_err(emac_dev, "DaVinci EMAC: add_mcast"\ in emac_add_mcast()
732 * emac_dev_mcast_set - Set multicast address in the EMAC adapter
733 * @ndev: The DaVinci EMAC network adapter
735 * Set multicast addresses in EMAC adapter
758 /* program multicast address list into EMAC hardware */ in emac_dev_mcast_set()
773 * EMAC Hardware manipulation
777 * emac_int_disable - Disable EMAC module interrupt (from adapter)
778 * @priv: The DaVinci EMAC private adapter structure
780 * Disable EMAC interrupt on the adapter
817 * emac_int_enable - Enable EMAC module interrupt (from adapter)
818 * @priv: The DaVinci EMAC private adapter structure
820 * Enable EMAC interrupt on the adapter
844 * emac_irq - EMAC interrupt handler
846 * @dev_id: EMAC network adapter data structure ptr
848 * EMAC Interrupt handler - we only schedule NAPI and not process any packets
937 * emac_dev_xmit - EMAC Transmit function
939 * @ndev: The DaVinci EMAC network adapter
942 * EMAC hardware transmit queue
955 dev_err(emac_dev, "DaVinci EMAC: No link to transmit"); in emac_dev_xmit()
962 dev_err(emac_dev, "DaVinci EMAC: packet pad failed"); in emac_dev_xmit()
972 dev_err(emac_dev, "DaVinci EMAC: desc submit failed"); in emac_dev_xmit()
991 * emac_dev_tx_timeout - EMAC Transmit timeout function
992 * @ndev: The DaVinci EMAC network adapter
1006 dev_err(emac_dev, "DaVinci EMAC: xmit timeout, restarting TX"); in emac_dev_tx_timeout()
1016 * emac_set_type0addr - Set EMAC Type0 mac address
1017 * @priv: The DaVinci EMAC private adapter structure
1043 * emac_set_type1addr - Set EMAC Type1 mac address
1044 * @priv: The DaVinci EMAC private adapter structure
1065 * emac_set_type2addr - Set EMAC Type2 mac address
1066 * @priv: The DaVinci EMAC private adapter structure
1092 * @priv: The DaVinci EMAC private adapter structure
1115 dev_err(emac_dev, "DaVinci EMAC: Wrong addressing\n"); in emac_setmac()
1121 * @ndev: The DaVinci EMAC network adapter
1137 /* Store mac addr in priv and rx channel and set it in EMAC hw */ in emac_dev_setmac_addr()
1147 dev_notice(emac_dev, "DaVinci EMAC: emac_dev_setmac_addr %pM\n", in emac_dev_setmac_addr()
1154 * emac_hw_enable - Enable EMAC hardware for packet transmission/reception
1155 * @priv: The DaVinci EMAC private adapter structure
1157 * Enables EMAC hardware for packet processing - enables PHY, enables RX
1224 * emac_poll - EMAC NAPI Poll function
1225 * @ndev: The DaVinci EMAC network adapter
1273 dev_err(emac_dev, "DaVinci EMAC: Fatal Hardware Error\n"); in emac_poll()
1307 * emac_poll_controller - EMAC Poll controller function
1308 * @ndev: The DaVinci EMAC network adapter
1366 * emac_devioctl - EMAC adapter ioctl
1367 * @ndev: The DaVinci EMAC network adapter
1371 * EMAC driver ioctl function
1398 * emac_dev_open - EMAC device open
1399 * @ndev: The DaVinci EMAC network adapter
1458 "DaVinci EMAC: request_irq() failed\n"); in emac_dev_open()
1470 /* Start/Enable EMAC hardware */ in emac_dev_open()
1540 dev_notice(emac_dev, "DaVinci EMAC: Opened %s\n", ndev->name); in emac_dev_open()
1569 * emac_dev_stop - EMAC device stop
1570 * @ndev: The DaVinci EMAC network adapter
1575 * We return the statistics in net_device_stats structure pulled from emac
1605 dev_notice(emac_dev, "DaVinci EMAC: %s stopped\n", ndev->name); in emac_dev_stop()
1612 * emac_dev_getnetstats - EMAC get statistics function
1613 * @ndev: The DaVinci EMAC network adapter
1617 * We return the statistics in net_device_stats structure pulled from emac
1634 /* update emac hardware stats and reset the registers*/ in emac_dev_getnetstats()
1771 * davinci_emac_probe - EMAC device probe
1772 * @pdev: The DaVinci EMAC device that we are removing
1774 * Called when probing for emac devicesr. We get details of instances and
1792 /* obtain emac clock from kernel */ in davinci_emac_probe()
1795 dev_err(&pdev->dev, "failed to get EMAC clock\n"); in davinci_emac_probe()
1833 /* Get EMAC platform data */ in davinci_emac_probe()
1947 dev_notice(&pdev->dev, "DaVinci EMAC Probe found device " in davinci_emac_probe()
1973 * davinci_emac_remove - EMAC device remove
1974 * @pdev: The DaVinci EMAC device that we are removing
1985 dev_notice(&ndev->dev, "DaVinci EMAC: davinci_emac_remove()\n"); in davinci_emac_remove()
2041 {.compatible = "ti,davinci-dm6467-emac", },
2042 {.compatible = "ti,am3517-emac", .data = &am3517_emac_data, },
2043 {.compatible = "ti,dm816-emac", .data = &dm816_emac_data, },
2049 /* davinci_emac_driver: EMAC platform driver structure */
2061 * davinci_emac_init - EMAC driver module init
2073 * davinci_emac_exit - EMAC driver module exit
2085 MODULE_AUTHOR("DaVinci EMAC Maintainer: Anant Gole <anantgole@ti.com>");
2086 MODULE_AUTHOR("DaVinci EMAC Maintainer: Chaithrika U S <chaithrika@ti.com>");
2087 MODULE_DESCRIPTION("DaVinci EMAC Ethernet driver");