| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
ensues when ifconfig tries to load if_ed.ko when it's already in the kernel.
|
| |
|
|
|
|
| |
Reviewed by: imp
|
|
|
|
|
|
| |
This should solve the problems people were seeing with this driver.
Reported by: phk & others.
|
|
|
|
|
|
| |
- Added PC-98 Cbus devices support.
The original patch is submitted by chi@bd.mbn.or.jp (Chiharu Shibata)
- Removed old ed driver.
|
|
|
|
| |
Partly submitted by: alex
|
| |
|
|
|
|
| |
Submitted by: Alan Clegg <abc@bsdi.com>
|
|
|
|
|
|
|
|
|
| |
ether_ifdetach().
The former consolidates the operations of if_attach(), ng_ether_attach(),
and bpfattach(). The latter consolidates the corresponding detach operations.
Reviewed by: julian, freebsd-net
|
|
|
|
|
|
| |
environment. This fixes the breakage to ISA ethernet cards.
Reviewed by: peter
|
|
|
|
| |
Reviewed by: imp
|
|
|
|
| |
don't panic on a NULL pointer in that case.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of the individual drivers and into the common routine ether_input().
Also, remove the (incomplete) hack for matching ethernet headers
in the ip_fw code.
The good news: net result of 1016 lines removed, and this should make
bridging now work with *all* Ethernet drivers.
The bad news: it's nearly impossible to test every driver, especially
for bridging, and I was unable to get much testing help on the mailing
lists.
Reviewed by: freebsd-net
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
first. This will fix a few cards that hang on the WD probe. He tells
me that PAO went one step farther and removed the WD proble completely
and none of the cards in the 2.x database broke in PAO3. Since I'm
more conservative in this code, I'm just swapping the order, which he
said also fixed his problem.
Reviewed by: mdodd, iwasaki
Submitted by: sanpai@sanpai.org
|
|
|
|
| |
Remove ~60 unneeded #include <sys/malloc.h>
|
| |
|
| |
|
|
|
|
|
|
| |
too many, so I removed the checks for the valid OUIs. We already do a
checksum of the entire ethernet address, so extra checking against the
OUI shouldn't be needed.
|
|
|
|
|
| |
PR: 16922
Submitted by: takawata@shidahara1.planet.sci.kobe-u.ac.jp
|
|
|
|
|
|
|
|
| |
Many ed-based Ethernet PC-cards can't get correct MAC address without
this patch.
Submitted by: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp>
Reviewed by: Warner Losh <imp@village.org>
|
|
|
|
|
|
|
| |
o Expose ed_stop and call it early to shutdown the hardware.
o When releasing the interrupt, pass the cookie for the irq, not
a pointer to the cookie (this is the base problem).
o Release other resources used, just like the ep driver
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
problem.
o Create new timeout routine so we don't detach the card inside a ISR
but instead drop back to spl0 via a timeout of 0.
o Actually delete the child of the pccard device rather than just faking
it badly.
o Fix sio, ed and ep to have pccard detach routines that are int rather
than void.
o Fix ep and ed pccard detach routines to use if_detach rather than just
if_down. if_detach destroys the device, while if_down just marks it
down. In this incarnation of the pccard things, we map the disable
the slot action to detach the driver, which removes the driver from the
device tree. When that is done, a panic would soon follow as the
ifconfig tried to down the device.
Didn't fix:
o Should cache the pccard dev child's pointer in struct slot
o remove now unused parts of struct slot
o Any driver using softc after detach has been called. sio's softc used
to be statically allocated, so you could check sc->gone, but that is
now gone.
o Didn't remove gone from softc of drivers that use the old pccard method.
Didn't test:
o ed driver changes
o sio driver changes on pccards
o suspend (no laptop or apm support on my desktop)
|
|
|
|
|
|
| |
from blowing up on PCMCIA systems. The hack isn't needed anymore.
Reminded by: Blaz Zupan <blaz@gold.amis.net>
|
|
|
|
|
| |
time when a strcmp against the device name was required. Sio patches
sent to peter for review.
|
|
|
|
| |
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
|
| |
|
|
|
|
|
| |
cards. previous order caused computers with NE2000 cards
to hang during boot.
|
|
|
|
|
|
| |
On NEC PC-98, asic_addr != nic_addr + 0x10.
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
|
|
|
|
|
| |
the device in question.
Also fix warnings on if_ep_pccard.c
|
|
|
|
|
|
| |
Add another OUI to those acceptible to linksys (this check may need to
be removed).
A couple of style(9) nits.
|
|
|
|
|
|
| |
new code is conditionalized by the vendor's ethernet OUI
Obtained from: PAO Project
|
|
|
|
|
|
| |
Remove debug printfs.
This should allow the ed driver to work when memory mapping works again.
|
|
|
|
|
|
|
|
| |
yet, but that should be resolved shortly. Non memory mapped ed
devices should work, but I cannot test this since my only ed card is
memory mapped.
Submitted by: Matt Dodd <mdodd@freebsd.org>
|
|
|
|
|
|
| |
This is a hack and I don't like it.
Hopefully the new PCCARD stuff should be in working order in a day or so.
|
|
|
|
|
|
|
|
|
|
|
|
| |
bootup. Somehow my backout of an abortaive attempt at shared
memory autoconfiguration included this line:
sc->mem_shared = 1;
Which is fairly important as it turns out.
Since I performed my pre-commit testing on a different box with a generic
NE2000 I didn't catch this. Pointy hat.
|
|
|
|
|
|
|
| |
now lives in the respective bus front end files.
- Add various function prototypes to if_edvar.h
- Clean up some debugging code that snuck into if_ed_isa.c
- Turn on the right bits in files.i386
|
|
|
|
|
| |
Note that these haven't been turned on nor has the old code
been removed from if_ed.c. The next commit will address that.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
resource_list_release. This removes the dependancy on the
layout of ivars.
* Move set_resource, get_resource and delete_resource from
isa_if.m to bus_if.m.
* Simplify driver code by providing wrappers to those methods:
bus_set_resource(dev, type, rid, start, count);
bus_get_resource(dev, type, rid, startp, countp);
bus_get_resource_start(dev, type, rid);
bus_get_resource_count(dev, type, rid);
bus_delete_resource(dev, type, rid);
* Delete isa_get_rsrc and use bus_get_resource_start instead.
* Fix a stupid typo in isa_alloc_resource reported by Takahashi
Yoshihiro <nyan@FreeBSD.org>.
* Print a diagnostic message if we can't assign resources to a PnP
device.
* Change device_print_prettyname() so that it doesn't print
"(no driver assigned)-1" for anonymous devices.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This means that we will not have to have a bpf and a non-bpf version
of our driver modules.
This does not open any security hole, because the bpf core isn't loadable
The drivers left unchanged are the "cross platform" drivers where the respective
maintainers are urged to DTRT, whatever that may be.
Add a couple of missing FreeBSD tags.
|
|
|
|
|
|
| |
PCCARD is pretty revolting but should buy us time while the pccard driver
angle is sorted out. A commit for the MCA ed attachment will follow
shortly.
|
|
|
|
|
|
|
| |
true/false. Fix ed_probe_HP_pclanp() so that it doesn't "succeed" on
non-existing hardware.
Submitted by: Mark Hittinger <bugs@freebsd.netcom.com>
|
| |
|
| |
|
|
|
|
|
|
| |
Doug Rabson's work, with a few tweaks from Warner Losh and I. There are
still some quirks to resolve, but the old driver is presently breaking
the build.
|
|
|
|
|
|
|
|
| |
`ED_P1_MAR + i' and `ED_P1_PAR + i', respectively.
- convert ED_PC_RESET and ED_PC_MISC into relative offset from
ED_PC_ASIC_OFFSET (those macros are not used in current source).
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
|
|
|
|
|
|
| |
This fixes potential panic by kvtop at addr == 0.
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
|
|
|
|
|
|
| |
the new PnP code. Since the bulk of the driver changes are not being
committed at this time, it will not affect the driver. The code is being
committed early to allow others synchronise changes.
|
| |
|
| |
|