loos
e3e76db925
When initializing the (unused) TX descriptors it is not necessary set the
...
chain bit.
Obtained from: NetBSD
2015-07-06 17:13:17 +00:00
loos
aef26f5321
Use uint32_t consistently to store registers values.
...
Always use unsigned numbers to avoid undefined behavior on (1 << 31).
Remove unused variables and some stray semicolons.
No functional changes.
2015-07-06 16:45:48 +00:00
loos
67af1c5d96
Fix the sent packets statistics for if_dwc.
2015-07-06 03:06:13 +00:00
loos
51c23dd838
Fix wrong variable name in the previous commit.
...
Pointy hat to: loos
Reported by: araujo
2015-06-03 15:18:32 +00:00
loos
ba1bb7cdf1
Fix the OACTIVE handling on if_dwc.
...
Previously the OACTIVE flag was being set when the tx descriptors are fully
allocated but it wasn't unset anywhere.
As soon as a packet is transmitted, unset the OACTIVE flag and call start
routine to push any pending packets from the tx queue.
This closes another race where a full tx queue would jam the tx path (tx
queue is full, new packets cannot be added to queue and dwc_txstart never
gets called).
2015-06-03 14:48:03 +00:00
br
f2d115ccaa
o Remove superfluous includes
...
o Avoid NULL pointer access
o Fix 'set but not used' warning
Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2015-04-03 11:37:23 +00:00
br
bec17c987f
o Correct the condition in reset procedure
...
o Setup interrupt hander after reset, not before
This fixes operation on ODROID-C1 (Amlogic S805)
Submitted by: John Wehle <john@feith.com>
2015-02-13 11:00:13 +00:00
glebius
c2cbfb5b5f
Mechanically convert to if_inc_counter().
2014-09-27 20:43:01 +00:00
br
0bafc6e378
Add driver for Synopsys DesignWare 3504-0 Universal 10/100/1000
...
Ethernet MAC.
Sponsored by: DARPA, AFRL
2014-09-25 18:03:14 +00:00