diff e1000_initialize_transmission.patch @ 81:78f2f1918398

Push the rx init, start a patch for the tx init
author Louis Opter <louis@lse.epitech.net>
date Sun, 20 May 2012 07:51:04 +0200
parents
children 71f76c0f235f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/e1000_initialize_transmission.patch	Sun May 20 07:51:04 2012 +0200
@@ -0,0 +1,25 @@
+# HG changeset patch
+# Parent 675aa6c230476368c195b739218a4f18c2028325
+rathaxes: initialize transmission on the e1000 sample:
+
+- This is documented in details in the sections 14.5 and 3.3 of the
+  Intel Gigabit Controller Software Developer manual.
+
+diff --git a/rathaxes/samples/e1000/e1000.blt b/rathaxes/samples/e1000/e1000.blt
+--- a/rathaxes/samples/e1000/e1000.blt
++++ b/rathaxes/samples/e1000/e1000.blt
+@@ -731,6 +731,14 @@
+             }
+ 
+             /*
++             * Transmission initialization (section 14.5):
++             *
++             * 1. Allocate the transmit descript ring and map it to make it
++             *    accessible by the device;
++             * 2.
++             */
++
++            /*
+              * XXX: We can't return here since we are not in a function but in
+              * a chunk of code (injected in a function).
+              */