ad
a2a3828545
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
2007-10-19 11:59:34 +00:00
christos
53524e44ef
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
2007-03-04 05:59:00 +00:00
cube
2f04b55c8c
Make the IPKDB code compile.
2007-01-13 19:46:21 +00:00
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
christos
4d595fd7b1
- sprinkle __unused on function decls.
...
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
peter
09f0de7ce4
Add power hooks for "ne* at pcmcia?".
...
ok christos@
2006-07-11 22:48:37 +00:00
christos
fe6055587f
void casts to functions whose return values are ignored.
2006-05-21 23:56:09 +00:00
dsl
6f0f9f8763
Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
...
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
2006-01-29 21:42:40 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
bsh
987bbd3089
ASIX AX88796 is an NE2000 compatible ethernet chip, but doesn't seem to
...
have "remote DMA complete bit" is ISR. So, don't wait for ISR.RDC bit
after writing a packet.
2005-02-26 10:29:20 +00:00
perry
18db93c7f6
de-__P
2005-02-04 02:10:35 +00:00
mycroft
16ac152cca
Do barriers on the ASIC space without touching the NIC space.
2004-08-09 00:26:15 +00:00
mycroft
2aa1e3c773
Fix a bug in the packet "padding" code. If we're padding a packet with an odd
...
size, we were writing out too much data, possibly causing the chip to lock up.
2004-07-04 00:31:20 +00:00
mycroft
2d3bb76a10
A random patch that's been in my source tree...
...
Figure out whether the shared memory region is word-accessible in the same
place we figure out its size, and store this in the softc, rather than using a
series of comparisons later.
2004-03-17 23:47:16 +00:00
wiz
c5670263e0
Fix some typos. From Tom Cosgrove via jmc@openbsd.
2003-11-02 11:07:44 +00:00
christos
8bfd5e3292
Fix uninitialized variable warnings
2003-10-25 18:34:14 +00:00
christos
ddccf85c50
support for NE2000_TYPE_AX88790 from
...
Yong-Jhen Hong yongjhen at alqualonde dot org
2003-10-22 00:12:36 +00:00
bouyer
bcae687139
Zero out the NIC memory when padding packet to ETHER_MIN_LEN-ETHER_CRC_LEN
...
sc->write_mbuf now return len of buffer, including padding.
Tested with a PCI ne2000.
2003-01-15 22:20:03 +00:00
lukem
a4bae8b066
add/cleanup RCSID
2001-11-13 13:14:31 +00:00
enami
97ceb61316
MII access routines for ASIX AX88190.
2001-08-04 11:38:57 +00:00
thorpej
7711ad565b
bcopy -> memcpy
2001-07-07 15:53:13 +00:00
thorpej
c2c26e1362
bcmp -> memcmp
2001-07-07 05:35:39 +00:00
thorpej
8ee014b439
Handle the DL10022 case.
2001-06-05 02:31:16 +00:00
thorpej
043e519d55
Adjust the way that media is initialized on DP8390-compatible
...
chips. The dp8390_softc now has media_init and media_fini
function pointers that do the work.
2001-02-12 18:49:03 +00:00
ws
8132c2a6aa
Fix the previous differently:
...
The intent was to protect the full range of ports on the board by the
barriers. But the start address was wrong. Fix it.
While here, change two other barriers to also protect the full range
(not only the nic ports), and add yet another similar barrier.
2000-12-11 17:07:38 +00:00
jlam
9cfd45593f
Set range of memory protected by read/write bus space barriers to the
...
correct size, instead of extending past the mapped region.
2000-12-03 23:15:23 +00:00
ws
7da71e5f9e
Make IPKDB working again.
...
Add support for i386 debugging and pci-based ne2000 boards.
2000-03-22 20:58:25 +00:00
ws
1b83998bd7
Add bus_space_barrier.
...
Add DELAY in some busy loops to allow the dma engine to actually do something
(neccessary on fast processors).
2000-03-22 18:02:59 +00:00
enami
e00270524e
ASIX AX88190 support (Planex FNW-3700-T and Melco LPC3-TX) from FreeBSD/PAO3.
2000-02-09 15:40:23 +00:00
enami
99f529f0b3
- Since all resources are mandatory, no need to manage individually.
...
- KNF some code.
- Factor out some code into function.
- Disestablish an interrupt handler when failed to enable card power.
2000-02-09 14:42:33 +00:00
itojun
f4e8883ccd
use a bit more standard (sys/device.h) prototype for {dp8390,ne2000}_detach().
2000-02-02 11:41:56 +00:00
itojun
17f5887294
implement if_detach code for ne/pcmcia.
...
XXX still incomplete, ne_pcmcia_detach() commented out for safery - please test
2000-02-02 10:00:06 +00:00
enami
bb03434a5f
Support Planex Communications Inc, FNW-3600-T.
1999-09-27 23:19:12 +00:00
enami
f449bb216c
Change NE2000_USE_WORD to take pointer to softc rather than type.
1999-09-27 05:25:44 +00:00
enami
56a3e3e340
Minor cleanup; use the cached result instead of evaluating the
...
macro NE2000_USE_WORD twice.
1999-09-27 04:52:19 +00:00
enami
7fcb2b605a
Define new macro NE2000_USE_WORD() and use it where appropriate.
1999-09-27 04:14:06 +00:00
enami
9bcfc916b0
Allow caller to specify the type of NE2000.
1999-09-27 04:07:24 +00:00
drochner
1c99e4196a
Use BUS_SPACE_ALIGNED_POINTER() instead of ALIGNED_POINTER() where the pointer
...
in not just used to access memory but is bassed to bus_space_xxx_n()
methods. For debugging purposes, bus_space can have additional constraints
which will be properly met by BUS_SPACE_ALIGNED_POINTER().
1999-03-23 21:41:07 +00:00
mjacob
83270f242f
If you're BIG_ENDIAN and use bswapXX, pull in the header file that prototypes
...
these functions.
1999-01-18 19:17:00 +00:00
pk
ed55ba4db9
Need <machine/bswap.h>
1999-01-18 11:51:43 +00:00
thorpej
92229a04c1
Quiet some diagnostic messages when we might expect them to happen.
...
PR #6460 , Rafal Boni.
1998-12-18 21:50:16 +00:00
thorpej
56066ad5fb
Add media list, media list count, and default media arguments to
...
ne2000_attach().
1998-10-28 00:13:47 +00:00
msaitoh
39c8c94fa5
make it compile with GWETHER again.
1998-10-13 08:33:05 +00:00
thorpej
4ad627c09b
Do the unaligned buffer fixup without copying data, more-or-less lifted
...
from the Shark CS8900 driver.
1998-06-10 01:15:50 +00:00
sakamoto
a2b24d5571
Change "__BUS_SPACE_NEED_STREAM_METHODS" to "__BUS_SPACE_HAS_STREAM_METHODS".
1998-02-04 14:13:40 +00:00
sakamoto
7052e9949b
Change the data access busification functions to
...
the "stream" busification functions.
In the architecture as the BeBox(CPU is big endian, have ISA bus),
These methods would be used where "raw" data needs to {read,write,set}
unchanged.
Add #ifndef __BUS_SPACE_NEED_STREAM_METHODS (define that on NetBSD/bebox),
if not define __BUS_SPACE_NEED_STREAM_METHODS,
define "stream" busification functions to normal busification functions.
1998-02-03 04:26:45 +00:00
thorpej
a7bc6bd92c
In the NE2000 case, if we encounter an unaligned mbuf, copy it to an
...
aligned buffer so that we can do 16-bit PIO to the device without causing
an unaligned access fault.
1998-01-29 00:59:33 +00:00
thorpej
243c218061
Update copyright.
1998-01-26 20:30:06 +00:00
thorpej
044add4253
If we're using these devices on a big-endian CPU, byte swap the "count"
...
field in the dp8390's packet header (because the dp8390 runs in little-endian
mode in these cases). Inspired by an e-mail from Kazuki Sakamoto.
1998-01-26 19:21:36 +00:00
thorpej
095c4c092d
Adjust for config changes.
1998-01-12 09:23:08 +00:00