summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/network/dwmac-1000-ethernet-mac-ops.c
diff options
context:
space:
mode:
authorRalf Kirchner <ralf.kirchner@embedded-brains.de>2014-02-17 15:43:53 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-13 16:21:55 +0100
commit4953b72490ce9666c5d783011bbf190229ffe689 (patch)
tree862affb804874705b96ac23d2543b9cac85a4417 /c/src/libchip/network/dwmac-1000-ethernet-mac-ops.c
parentlibbsp/xilinx-zynq: Share handling for ARM cache controller L2C-310 (diff)
downloadrtems-4953b72490ce9666c5d783011bbf190229ffe689.tar.bz2
libchip: Add dwmac 10/100/1000 network driver
Diffstat (limited to 'c/src/libchip/network/dwmac-1000-ethernet-mac-ops.c')
-rw-r--r--c/src/libchip/network/dwmac-1000-ethernet-mac-ops.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/c/src/libchip/network/dwmac-1000-ethernet-mac-ops.c b/c/src/libchip/network/dwmac-1000-ethernet-mac-ops.c
new file mode 100644
index 0000000000..a4fe78241c
--- /dev/null
+++ b/c/src/libchip/network/dwmac-1000-ethernet-mac-ops.c
@@ -0,0 +1,33 @@
+/**
+ * @file
+ *
+ * @brief Operations for the dwmac 1000 ethernet mac
+ *
+ * DWMAC_1000_ETHERNET_MAC_OPS will be accessible in the API header and can be
+ * passed to the configuration data if handling a DWMAC 1000 driver
+ */
+
+/*
+ * Copyright (c) 2014 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Dornierstr. 4
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#include "dwmac-common.h"
+
+extern const dwmac_common_dma_ops dwmac_dma_ops_1000;
+extern const dwmac_common_core_ops dwmac_core_ops_1000;
+
+const dwmac_ethernet_mac_ops DWMAC_1000_ETHERNET_MAC_OPS =
+ DWMAC_ETHERNET_MAC_OPS_INITIALIZER(
+ &dwmac_core_ops_1000,
+ &dwmac_dma_ops_1000
+ );