4.104.114.84.95
Last change
on this file since adbaa61 was
51450d7,
checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 20:58:13
|
Added NE2000 Driver from Ian Lance Taylor <ian@…>. Comments:
Both the ne2000 and the wd80x3 are based on the National Semiconductor
8390 chip, so there is a fair amount of overlap between the two
drivers. It would be possible in principle to combine some code into
a separate set of subroutines called by both. In fact, the drivers in
both OpenBSD and Linux work this way. I didn't bother, because for
the relatively simple drivers used by RTEMS, the overlap is not
especially large, and any reasonable use of subroutines would lead to
slightly less efficient code.
This ne2000 driver uses two transmit buffers. While one packet is
being transmitted over the Ethernet, RTEMS will upload another. Since
uploading a packet to the ne2000 is rather slow, I don't think there
is any point to having more than two transmit buffers. However, the
code does make it possible, by changing NE_TX_BUFS, although that
would of course reduce the number of receive buffers.
I suspect that the wd80x3 driver would benefit slightly from copying
the multiple transmit buffer code. However, I have no way to test
that.
|
-
Property mode set to
100644
|
File size:
583 bytes
|
Line | |
---|
1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | VPATH = @srcdir@ |
---|
8 | RTEMS_ROOT = @top_srcdir@ |
---|
9 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
10 | |
---|
11 | INSTALL = @INSTALL@ |
---|
12 | |
---|
13 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
14 | include $(RTEMS_ROOT)/make/directory.cfg |
---|
15 | |
---|
16 | # We only build the Network library if HAS_NETWORKING was defined |
---|
17 | NETWORK_yes_V = network ne2000 |
---|
18 | NETWORK = $(NETWORK_$(HAS_NETWORKING)_V) |
---|
19 | |
---|
20 | # wrapup is the one that actually builds and installs the library |
---|
21 | # from the individual .rel files built in other directories |
---|
22 | SUB_DIRS=include tools start startup clock console timer $(NETWORK) \ |
---|
23 | wrapup |
---|
Note: See
TracBrowser
for help on using the repository browser.