summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
diff options
context:
space:
mode:
authorMadalin Bucur <madalin.bucur@freescale.com>2013-06-27 17:46:31 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-07-15 21:49:26 (GMT)
commitcad948fa3296c470fe51c45d5b1861d142138c7a (patch)
treedfde9995ba13f34a0aef4aef38067bedb5534e85 /drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
parent64978e2e542ff8ca2751b4378572ad381949c8e7 (diff)
downloadlinux-fsl-qoriq-cad948fa3296c470fe51c45d5b1861d142138c7a.tar.xz
dpaa_eth: move common code to a separate file
Created dpaa_eth_common.c to hold all common code. Moved legacy non-SG related code to its own file. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I5a79559714f515e6889655a1cc7256a556043c45 Reviewed-on: http://git.am.freescale.net:8181/3096 Reviewed-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c')
-rw-r--r--drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c28
1 files changed, 8 insertions, 20 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
index 454869a..e881bd8 100644
--- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
+++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
@@ -38,31 +38,19 @@
#include <linux/module.h>
#include <linux/of_platform.h>
#include "dpaa_eth.h"
+#include "dpaa_eth_common.h"
#include "lnxwrp_fsl_fman.h" /* fm_get_rx_extra_headroom(), fm_get_max_frm() */
+#define DPA_DESCRIPTION "FSL DPAA Proxy initialization driver"
+
+MODULE_LICENSE("Dual BSD/GPL");
+
+MODULE_DESCRIPTION(DPA_DESCRIPTION);
+
static uint8_t debug = -1;
module_param(debug, byte, S_IRUGO);
MODULE_PARM_DESC(debug, "Module/Driver verbosity level");
-#define DPA_DESCRIPTION "FSL DPAA Proxy initialization driver"
-
-/* candidates for dpa_eth_common.c */
-struct dpa_bp * __cold __must_check __attribute__((nonnull))
-dpa_bp_probe(struct platform_device *_of_dev, size_t *count);
-struct mac_device * __cold __must_check
-__attribute__((nonnull)) dpa_mac_probe(struct platform_device *_of_dev);
-void dpa_set_buffers_layout(struct mac_device *mac_dev,
- struct dpa_buffer_layout_s *layout);
-int dpa_fq_probe_mac(struct device *dev, struct list_head *list,
- struct fm_port_fqs *port_fqs,
- bool tx_conf_fqs_per_core,
- enum port_type ptype);
-void dpaa_eth_init_ports(struct mac_device *mac_dev,
- struct dpa_bp *bp, size_t count,
- struct fm_port_fqs *port_fqs,
- struct dpa_buffer_layout_s *buf_layout,
- struct device *dev);
-
/* forward declarations */
static int dpaa_eth_proxy_probe(struct platform_device *_of_dev);
static int __cold dpa_eth_proxy_remove(struct platform_device *of_dev);
@@ -105,7 +93,7 @@ static int dpaa_eth_proxy_probe(struct platform_device *_of_dev)
return -ENODEV;
/* Get the buffer pools assigned to this interface */
- dpa_bp = dpa_bp_probe(_of_dev, &count);
+ dpa_bp = dpa_bp_probe(_of_dev, &count, NULL);
if (IS_ERR(dpa_bp))
return PTR_ERR(dpa_bp);