net: add Xilinx emac lite device driver
Subsystems (3)
PATCH 1/1 net: add Xilinx emac lite device driver
This patch adds support for the Xilinx Ethernet Lite device. The soft logic core from Xilinx is typically used on Virtex and Spartan designs attached to either a PowerPC or a Microblaze processor.
--- drivers/net/Kconfig | 5 + drivers/net/Makefile | 1 + drivers/net/xilinx_emaclite.c | 1040 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1046 insertions(+), 0 deletions(-) create mode 100755 drivers/net/xilinx_emaclite.c
drivers/net/Kconfig +5 -0
@@ -1926,6 +1926,11 @@ config ATL2 To compile this driver as a module, choose M here. The module will be called atl2. +config XILINX_EMACLITE + tristate "Xilinx 10/100 Ethernet Lite support" + help + This driver supports the 10/100 Ethernet Lite from Xilinx. + source "drivers/net/fs_enet/Kconfig" endif # NET_ETHERNET
drivers/net/Makefile +1 -0
@@ -142,6 +142,7 @@ obj-$(CONFIG_TSI108_ETH) += tsi108_eth.o obj-$(CONFIG_MV643XX_ETH) += mv643xx_eth.o ll_temac-objs := ll_temac_main.o ll_temac_mdio.o obj-$(CONFIG_XILINX_LL_TEMAC) += ll_temac.o +obj-$(CONFIG_XILINX_EMACLITE) += xilinx_emaclite.o obj-$(CONFIG_QLA3XXX) += qla3xxx.o obj-$(CONFIG_QLGE) += qlge/
drivers/net/xilinx_emaclite.c new file +1040 -0
1,040 lines not on this page · raw message
Signature · 5 lines
1.6.2.1 This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
drivers/net/xilinx_emaclite.c line 117
Quoted 8 lines · On Tue, 18 Aug 2009 09:30:41 -0600 John Linn <[email protected]> wrote:
drivers/net/xilinx_emaclite.c new file +8
-0+/** +* xemaclite_enable_interrupts - Enable the interrupts for the EmacLite device +* @drvdata: Pointer to the Emaclite device private data +* +* This function enables the Tx and Rx interrupts for the Emaclite device along +* with the Global Interrupt Enable. +*/ +static void xemaclite_enable_interrupts (struct net_local *drvdata)
Docbook format is really a not necessary on local functions that are only used in the driver. It is fine if you want to use it, as long as the file isn't processed by kernel make docs but
the docbook is intended for automatic generation of kernel API manuals.
Quoted 5 lines
-----Original Message-----
From: Stephen Hemminger [mailto:[email protected]]
Sent: Tuesday, August 18, 2009 10:04 PM
To: John Linn
Cc: [email protected]; [email protected];
[email protected]; [email protected]; John
Quoted 1 line
Linn; [email protected]; Josh Boyer; John Williams; Michal
Simek; Sadanand Mutyala
Quoted 7 lines
Subject: Re: [PATCH] net: add Xilinx emac lite device driver
Quoted 2 lines · On Tue, 18 Aug 2009 09:30:41 -0600 John Linn <[email protected]> wrote:
+/**
+ *xemaclite_enable_interrupts- Enable the interrupts for the
EmacLite device
Quoted 3 lines
Quoted 3 lines
+ * @drvdata: Pointer to the Emaclite device private data
+ *
+ * This function enables the Tx and Rx interrupts for the Emaclite
device along
Quoted 8 lines
Quoted 3 lines
+ * with the Global Interrupt Enable.
+ */
+static voidxemaclite_enable_interrupts(struct net_local *drvdata)Docbook format is really a not necessary on local functions that are only used in the driver. It is fine if you want to use it, as long as the file isn't processed by kernel make docs but the docbook is intended for automatic generation of kernel API
manuals.
Thanks, we realize that and have been consistent with our drivers in that area. We aren't adding them to the make for the docs so it doesn't seem like it should be a problem.
Quoted 2 lines
--
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
David Miller
maintainerFrom: John Linn <[email protected]>
Date: Tue, 18 Aug 2009 09:30:41 -0600
drivers/net/Kconfig config ATL2 · line 1936
Quoted 12 lines
drivers/net/Kconfig +5
-0@@ -1926,6 +1926,11 @@ config ATL2 To compile this driver as a module, choose M here. The module will be called atl2. +config XILINX_EMACLITE + tristate "Xilinx 10/100 Ethernet Lite support" + help + This driver supports the 10/100 Ethernet Lite from Xilinx. + source "drivers/net/fs_enet/Kconfig" endif # NET_ETHERNET
You can't unconditionally enable this driver everywhere. It depends upon things like openfirmware support, etc. so the driver will fail to link if the architecture doesn't have those support routines.
Please fix this up, thanks.
Thanks David, I may have got over zealous in my clean up to get it ready for mainline.
I'll take care of that.
-- John
Quoted 5 lines
-----Original Message-----
From: David Miller [mailto:[email protected]]
Sent: Wednesday, August 19, 2009 7:28 AM
To: John Linn
Cc: [email protected]; [email protected];
[email protected]; [email protected];
Quoted 1 line
[email protected]; Sadanand Mutyala
Quoted 16 lines
Subject: Re: [PATCH] net: add Xilinx emac lite device driver
From: John Linn <[email protected]>
Date: Tue, 18 Aug 2009 09:30:41 -0600Quoted 11 lines
drivers/net/Kconfig +5
-0@@ -1926,6 +1926,11 @@ config ATL2 To compile this driver as a module, choose M here. The module will be called atl2. +config XILINX_EMACLITE + tristate "Xilinx 10/100 Ethernet Lite support" + help + This driver supports the 10/100 Ethernet Lite from Xilinx. + source "drivers/net/fs_enet/Kconfig"
Quoted 8 lines
drivers/net/Kconfig config ATL2 · line 1936
Quoted 1 line
drivers/net/Kconfig +0
-0endif # NET_ETHERNETYou can't unconditionally enable this driver everywhere. It depends upon things like openfirmware support, etc. so the driver will fail to link if the architecture doesn't have those support routines.
Please fix this up, thanks.
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.