netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Dahl <ada@thorsis.com>
To: linux-kernel@vger.kernel.org
Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: [RFC 1/3] net: macb: Add register descriptions
Date: Wed, 12 Jul 2017 18:28:10 +0200	[thread overview]
Message-ID: <1499876892-14423-2-git-send-email-ada@thorsis.com> (raw)
In-Reply-To: <1499876892-14423-1-git-send-email-ada@thorsis.com>

Analog to the already present long register names for GEM, add those for
MACB. Taken from the AT91SAM9G20 complete datasheet.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 drivers/net/ethernet/cadence/macb.h | 66 ++++++++++++++++++-------------------
 1 file changed, 33 insertions(+), 33 deletions(-)

diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h
index ec037b0..8547d92 100644
--- a/drivers/net/ethernet/cadence/macb.h
+++ b/drivers/net/ethernet/cadence/macb.h
@@ -31,41 +31,41 @@
 #define MACB_IDR		0x002c /* Interrupt Disable */
 #define MACB_IMR		0x0030 /* Interrupt Mask */
 #define MACB_MAN		0x0034 /* PHY Maintenance */
-#define MACB_PTR		0x0038
-#define MACB_PFR		0x003c
-#define MACB_FTO		0x0040
-#define MACB_SCF		0x0044
-#define MACB_MCF		0x0048
-#define MACB_FRO		0x004c
-#define MACB_FCSE		0x0050
-#define MACB_ALE		0x0054
-#define MACB_DTF		0x0058
-#define MACB_LCOL		0x005c
-#define MACB_EXCOL		0x0060
-#define MACB_TUND		0x0064
-#define MACB_CSE		0x0068
-#define MACB_RRE		0x006c
-#define MACB_ROVR		0x0070
-#define MACB_RSE		0x0074
-#define MACB_ELE		0x0078
-#define MACB_RJA		0x007c
-#define MACB_USF		0x0080
-#define MACB_STE		0x0084
-#define MACB_RLE		0x0088
+#define MACB_PTR		0x0038 /* Pause Time */
+#define MACB_PFR		0x003c /* Pause Frames Received */
+#define MACB_FTO		0x0040 /* Frames Transmitted Ok */
+#define MACB_SCF		0x0044 /* Single Collision Frames */
+#define MACB_MCF		0x0048 /* Multiple Collision Frames */
+#define MACB_FRO		0x004c /* Frames Received Ok */
+#define MACB_FCSE		0x0050 /* Frame Check Sequence Errors */
+#define MACB_ALE		0x0054 /* Alignment Errors */
+#define MACB_DTF		0x0058 /* Deferred Transmission Frames */
+#define MACB_LCOL		0x005c /* Late Collisions */
+#define MACB_EXCOL		0x0060 /* Excessive Collisions */
+#define MACB_TUND		0x0064 /* Transmit Underrun Errors */
+#define MACB_CSE		0x0068 /* Carrier Sense Errors */
+#define MACB_RRE		0x006c /* Receive Resource Errors */
+#define MACB_ROVR		0x0070 /* Receive Overrun Errors */
+#define MACB_RSE		0x0074 /* Receive Symbol Errors */
+#define MACB_ELE		0x0078 /* Excessive Length Errors */
+#define MACB_RJA		0x007c /* Receive Jabbers */
+#define MACB_USF		0x0080 /* Undersize Frames */
+#define MACB_STE		0x0084 /* SQE Test Errors */
+#define MACB_RLE		0x0088 /* Received Length Field Mismatch */
 #define MACB_TPF		0x008c
-#define MACB_HRB		0x0090
-#define MACB_HRT		0x0094
-#define MACB_SA1B		0x0098
-#define MACB_SA1T		0x009c
-#define MACB_SA2B		0x00a0
-#define MACB_SA2T		0x00a4
-#define MACB_SA3B		0x00a8
-#define MACB_SA3T		0x00ac
-#define MACB_SA4B		0x00b0
-#define MACB_SA4T		0x00b4
-#define MACB_TID		0x00b8
+#define MACB_HRB		0x0090 /* Hash Register Bottom [31:0] */
+#define MACB_HRT		0x0094 /* Hash Register Top [63:32] */
+#define MACB_SA1B		0x0098 /* Specific Address 1 Bottom */
+#define MACB_SA1T		0x009c /* Specific Address 1 Top */
+#define MACB_SA2B		0x00a0 /* Specific Address 2 Bottom */
+#define MACB_SA2T		0x00a4 /* Specific Address 2 Top */
+#define MACB_SA3B		0x00a8 /* Specific Address 3 Bottom */
+#define MACB_SA3T		0x00ac /* Specific Address 3 Top */
+#define MACB_SA4B		0x00b0 /* Specific Address 4 Bottom */
+#define MACB_SA4T		0x00b4 /* Specific Address 4 Top */
+#define MACB_TID		0x00b8 /* Type ID Checking */
 #define MACB_TPQ		0x00bc
-#define MACB_USRIO		0x00c0
+#define MACB_USRIO		0x00c0 /* User Input/Output */
 #define MACB_WOL		0x00c4
 #define MACB_MID		0x00fc
 #define MACB_TBQPH		0x04C8
-- 
2.1.4

  reply	other threads:[~2017-07-12 16:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-12 16:28 [RFC 0/3] net: macb: Use SRAM on SoC for RX rings and buffers Alexander Dahl
2017-07-12 16:28 ` Alexander Dahl [this message]
2017-07-12 16:28 ` [RFC 2/3] net: macb: Add buffer descriptor names Alexander Dahl
2017-07-12 16:28 ` [RFC 3/3] net: macb: Use sram for rx buffers Alexander Dahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1499876892-14423-2-git-send-email-ada@thorsis.com \
    --to=ada@thorsis.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).