#
272461 |
|
02-Oct-2014 |
gjb |
Copy stable/10@r272459 to releng/10.1 as part of the 10.1-RELEASE process.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
243857 |
|
04-Dec-2012 |
glebius |
Mechanically substitute flags from historic mbuf allocator with malloc(9) flags in sys/dev.
|
#
229767 |
|
07-Jan-2012 |
kevlo |
ether_ifattach() sets if_mtu to ETHERMTU, don't bother set it again
Reviewed by: yongari
|
#
207554 |
|
03-May-2010 |
sobomax |
Add new tunable 'net.link.ifqmaxlen' to set default send interface queue length. The default value for this parameter is 50, which is quite low for many of today's uses and the only way to modify this parameter right now is to edit if_var.h file. Also add read-only sysctl with the same name, so that it's possible to retrieve the current value.
MFC after: 1 month
|
#
201794 |
|
08-Jan-2010 |
trasz |
Replace several instances of 'if (!a & b)' with 'if (!(a &b))' in order to silence newer GCC versions.
|
#
199559 |
|
19-Nov-2009 |
jhb |
- Add a private timer to drive the transmit watchdog instead of using if_watchdog and if_timer. - Fix some issues in detach for sn(4), ste(4), and ti(4). Primarily this means calling ether_ifdetach() before anything else.
|
#
196984 |
|
08-Sep-2009 |
imp |
Cleanup tortured logic a big. Noticed by FlexLint, per phk.
# My reading of the docs suggests this can only happen on 10Base5 and # 10Base2 setups (and maybe only the former), which I can't test # adequately since I have nothing but 10BaseT, etc here.
|
#
196970 |
|
08-Sep-2009 |
phk |
Revert previous commit and add myself to the list of people who should know better than to commit with a cat in the area.
|
#
196969 |
|
08-Sep-2009 |
phk |
Add necessary include.
|
#
192158 |
|
15-May-2009 |
brueffer |
Add a missing break in a switch statement.
Found with: Coverity Prevent(tm) CID: 4302 MFC after: 2 weeks
|
#
190908 |
|
11-Apr-2009 |
imp |
Two refinements to the 3c1 support: 1) Flag it and only access that command on the 3c1 2) The TX PLL appears to power down when not in use, so we have to power it back up when we've been idle. Do this at the start of ifstart. Otherwise we fall off the net.
|
#
190907 |
|
11-Apr-2009 |
imp |
o Report ethernet status for at least 10BaseT media. Since I don't have other media to test against, I've left that media reporting unchanged. o Enable the TX_PLL when we enable TX. This is harmless on most cards, but required to get the 3c1 CF card working. Power savings could be had by managing this better, but for now it gets my card working.
|
#
164810 |
|
01-Dec-2006 |
mlaier |
ALTQify ep(4).
Tested and Requested by: Andy Brook MFC after: 3 days
|
#
155281 |
|
04-Feb-2006 |
imp |
Remove ifdef notdef SIOCHWADDR vestige.
|
#
152315 |
|
11-Nov-2005 |
ru |
- Store pointer to the link-level address right in "struct ifnet" rather than in ifindex_table[]; all (except one) accesses are through ifp anyway. IF_LLADDR() works faster, and all (except one) ifaddr_byindex() users were converted to use ifp->if_addr.
- Stop storing a (pointer to) Ethernet address in "struct arpcom", and drop the IFP2ENADDR() macro; all users have been converted to use IF_LLADDR() instead.
|
#
150395 |
|
20-Sep-2005 |
imp |
Better use of gone.
|
#
150306 |
|
19-Sep-2005 |
imp |
Make sure that we call if_free(ifp) after bus_teardown_intr. Since we could get an interrupt after we free the ifp, and the interrupt handler depended on the ifp being still alive, this could, in theory, cause a crash. Eliminate this possibility by moving the if_free to after the bus_teardown_intr() call.
|
#
148887 |
|
09-Aug-2005 |
rwatson |
Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE and IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field.
Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so.
Reviewed by: pjd, bz MFC after: 7 days
|
#
148581 |
|
31-Jul-2005 |
imp |
The isa attachment calls ep_free after it has already been called once in the resource error in ep_alloc case. This results in a panic. Zero resources to make it safe to call twice pending resolution of layering questions.
MFC After: 3 days
|
#
148164 |
|
19-Jul-2005 |
imp |
Spell destroy in a more traditional way
|
#
147717 |
|
01-Jul-2005 |
imp |
Make a pass and cleanup the printfs from this driver.
Approved by: re (scottl) blanket ep
|
#
147715 |
|
01-Jul-2005 |
imp |
Minor cleanup of ep driver and pccard attachment: o Grab the MAC address out of the CIS if the card has the special 3Com 0x88 tuple. Most 3Com cards don't have this tuple, but we prefer it to the eeprom since it only appears to be present when the eeprom doesn't have the info. So far, I've only observed this on my 3C362 and 3C362B cards, but the NetBSD driver implies that the 3C362C also has this tuple, and that some 3C574 cards do too (none of mine do). ep_pccard_mac was written after looking at the NetBSD code. o Store the enet addr in the softc for this device, so we can use the overridden MAC to set the station address. o Create a routine to set the station address and use it where we need it. o setup the cmd shitfs and such before we call ep_alloc(), and remove setting up the cmd shift value there. It initializes to 0, and those attachments that need to frob it do so before calling ep_alloc. o Remove some obsolete comments o No longer a need to export ep_get_macaddr, so make it static o ep_alloc already grabs the EEPROM id, so we don't need to grab it again in ep_pccard_attach. o eliminate unit, it isn't needed, fix some printfs to be device_printf instead.
# All my pccards except the 3C1 work now. Didn't test ISA or cbus cards # that I have: 3C509B-TP or 3C569B-J-TPO
Tested on: 3C589B, 3C589C, 3C589D, 3C589D-TP, 3C562, 3C562B/3C563B, 3C562D/3C563D, 3CCFE574BT, 3CXEM556, 3CCSH572BT, 3C574-TX, 3CCE589EC, 3CXE589EC, 3CCFEM556, 3C1 Approved by: re (scottl)
|
#
147607 |
|
26-Jun-2005 |
imp |
o When calling ep_get_macaddr(), provide it a local buffer. Add a comment that says why we do this (or rather, explains that it is some voodoo magic that's poorly understood). The local buffer fixes the crash on attach. o Rename get_e() to ep_get_e() to avoid namespace pollution.
Submitted by: mux Approved by: re (scottl)
|
#
147256 |
|
10-Jun-2005 |
brooks |
Stop embedding struct ifnet at the top of driver softcs. Instead the struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com.
This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go.
Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr.
Reviewed by: sobomax, sam
|
#
144996 |
|
13-Apr-2005 |
mdodd |
Make it clear that the statement following the conditional is a NOP.
|
#
140523 |
|
20-Jan-2005 |
imp |
u_intXX_t -> uintXX_t while I'm here.
|
#
139749 |
|
05-Jan-2005 |
imp |
Start each of the license/copyright comments with /*-, minor shuffle of lines
|
#
129616 |
|
23-May-2004 |
mux |
We don't need to initialize if_output, ether_ifattach() does it for us.
|
#
127135 |
|
17-Mar-2004 |
njl |
Convert callers to the new bus_alloc_resource_any(9) API.
Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
|
#
126967 |
|
14-Mar-2004 |
ru |
Removed duplicate __FBSDID(). Keep the one that style(9) likes.
|
#
126966 |
|
14-Mar-2004 |
mdodd |
Announce ethernet MAC addresss in ether_ifattach().
|
#
121903 |
|
02-Nov-2003 |
imp |
MFp4: o Minor tweak to error processing in ep_alloc.
|
#
121816 |
|
31-Oct-2003 |
brooks |
Replace the if_name and if_unit members of struct ifnet with new members if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance.
This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics.
Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname)
|
#
121588 |
|
26-Oct-2003 |
imp |
Pass sc to GO_WINDOW macro. Use SET_IRQ for pccard case, rather than exapnding it inline.
Requested by: mdodd
|
#
121515 |
|
25-Oct-2003 |
imp |
Minor style nits suggested by sam and mdodd:
o give an argument to EP_BUSY_WAIT o use foo_locked rather than foo_body o Add locking assertions for extra safety.
|
#
121492 |
|
25-Oct-2003 |
imp |
Whole grab-bag of changes: o Make the driver MPSAFE o Some changes due to diff reduction effort with vx. o Removed some obsolete junk.
Reviewed by: sam, modd
|
#
121399 |
|
23-Oct-2003 |
imp |
Fix mismerge from one tree to another: add (
|
#
121388 |
|
23-Oct-2003 |
imp |
Learn basic C. ((uint32_t *) v) + 10 != ((caddr_t) v) + 10 so apply the cast later.
|
#
121206 |
|
18-Oct-2003 |
imp |
Transition to using bus_space macros rather than the inb/outb/etc. Use EP_{READ,WRITE}{,_MULTI}_{1,2,4} instead. I've had several people submit patches like this over the years of varying qualities, markm being the last. The names were chosen in consulation with mdodd on irc.
I've tested this with only PCMCIA cards: 3CCE589EC and 3CCSH572BT. I've not tried with my more extensive ISA, EISA and cbus collection.
Reviewed by: mdodd
|
#
119572 |
|
30-Aug-2003 |
markm |
Style fixes of the whitespace variety. Fix long lines and tabs.
|
#
119418 |
|
24-Aug-2003 |
obrien |
Use __FBSDID(). Also some minor style cleanups.
|
#
119125 |
|
19-Aug-2003 |
cognet |
Use bus_child_present() to make sure the card is still there before calling epstop() in ep_detach(). This fixes a freeze that happens when ejecting a ep(4) pcmcia card.
|
#
117700 |
|
17-Jul-2003 |
markm |
Style(9) cleanup. There was no consistent style in this driver, and The next round of commits will be to fix up locking in it. This lot is to at least give a consistent base to work off.
OK'ed by: imp, mdodd
|
#
116887 |
|
26-Jun-2003 |
mux |
Other minor style nits I missed in ep_if_start() in my previous commit.
|
#
116884 |
|
26-Jun-2003 |
mux |
Make if_ep_start() look a bit more like other if_start() functions, by calling the first mbuf in the chain m0 and fixing a few nearby style bugs, mostly s/0/NULL/.
|
#
116883 |
|
26-Jun-2003 |
mux |
Fix a race condition that was introduced since pccbb interrupts are flag'ed INTR_MPSAFE. In ep_if_start(), use the IF_DEQUEUE macro to grab the next mbuf to send, and use IF_PREPEND if the card is busy and we actually can't handle it right now.
The old code was first getting the mbuf by taking it from the queue without using the macros, thus without locking, and without removing it from the queue either. It was later assuming that IF_DEQUEUE would give him this same mbuf.
Tested by: mich
|
#
112829 |
|
29-Mar-2003 |
mdodd |
- Free interrupt handler in ep_free(). - Move ep_pccard_detach() to if_ep.c and rename to ep_detach() - Specify detach methods for all bus frontends.
|
#
112822 |
|
29-Mar-2003 |
mdodd |
- Return error status instead of value in get_e(). - Modify ep_get_macaddr() to return an error status. - Reverse the return value logic of eeprom_rdy().
|
#
111119 |
|
19-Feb-2003 |
imp |
Back out M_* changes, per decision of the TRB.
Approved by: trb
|
#
109623 |
|
21-Jan-2003 |
alfred |
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
|
#
106937 |
|
14-Nov-2002 |
sam |
network interface driver changes:
o don't strip the Ethernet header from inbound packets; pass packets up the stack intact (required significant changes to some drivers) o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN) o track ether_ifattach/ether_ifdetach API changes o track bpf changes (use BPF_TAP and BPF_MTAP) o track vlan changes (ifnet capabilities, revised processing scheme, etc.) o use if_input to pass packets "up" o call ether_ioctl for default handling of ioctls
Reviewed by: many Approved by: re
|
#
92739 |
|
20-Mar-2002 |
alfred |
Remove __P.
|
#
90561 |
|
12-Feb-2002 |
imp |
Two fixes from Jonathan Hanna: 1) We shouldn't continue when we get a RX complete because we ack it and the TX complete. 2) Fix a couple of spl leaks (why splbio is needed in ISR, I cannot understand).
MFC after: 3 days
|
#
77792 |
|
05-Jun-2001 |
imp |
Commit part of the patch that I have for card eject problems with the ep driver. The rest of the patch will wait until I can put the time into it to get it righter than the kludge it is.
This protects us against card eject problems at all times,e xecpt when we're in the epintr ISR.
|
#
67164 |
|
15-Oct-2000 |
phk |
Remove unneeded #include <machine/clock.h>
|
#
66137 |
|
20-Sep-2000 |
imp |
Remove 7 unnecessary includes frmo phk's script
|
#
63090 |
|
13-Jul-2000 |
archie |
Make all Ethernet drivers attach using ether_ifattach() and detach using 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
|
#
60536 |
|
14-May-2000 |
archie |
Move code to handle BPF and bridging for incoming Ethernet packets out 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
|
#
59760 |
|
29-Apr-2000 |
phk |
Remove unneeded #include <sys/kernel.h>
|
#
59391 |
|
19-Apr-2000 |
phk |
Remove ~25 unneeded #include <sys/conf.h> Remove ~60 unneeded #include <sys/malloc.h>
|
#
58539 |
|
24-Mar-2000 |
mdodd |
Fix a problem that caused TCP fragments to be lost (among other things.)
|
#
57984 |
|
13-Mar-2000 |
mdodd |
Copy how everyone else is doing packet transmission. (NetBSD mostly) I've been running this for a month or so and have had no problems with it and if I recall it was my last speed tweak. Holler if this breaks anything.
|
#
57983 |
|
13-Mar-2000 |
mdodd |
Follow the docs a bit more in epstop() with respect to delays. Trivial formatting.
|
#
57982 |
|
13-Mar-2000 |
mdodd |
Get rid of table lookup in favor of just subtracting. Everyone else does it like this and I see no point in being different.
|
#
57981 |
|
13-Mar-2000 |
mdodd |
Call epstop() in ep_attach(). While this shouldn't be necessary we'll do it just in case. (Actually, with PCMCIA cards we can get in a state where it may be required.)
|
#
56017 |
|
15-Jan-2000 |
mdodd |
Fix driver to restore function on 3c574 adapters. The panic on ifconfig and bogus ethernet address (4b:57:4b:57:4b:57) has been hacked around. I'll revisit this when I have a clue whats going on.
Reviewed by: obrien
|
#
55864 |
|
12-Jan-2000 |
mdodd |
Remove a stray splx(s) call. This fixes the compiler warning.
Submitted by: gibbs
|
#
55834 |
|
12-Jan-2000 |
mdodd |
Speedup if_start routine a little. TX threshold logic needs some more kicking but these changes get me around 1000 KB/sec.
|
#
55833 |
|
12-Jan-2000 |
mdodd |
Fix the performance problems I caused by setting ifq_maxlen to 8. Use IFQ_MAXLEN instead. This seemed like a good idea at the time since most 3c509s have all of 2k for their TX fifo. My intention was to revisit ifq_maxlen and auto-scale it or something.
ttcp-t: 16777216 bytes in 21.53 real seconds = 761.07 KB/sec +++ ttcp-t: 2771 I/O calls, msec/call = 7.96, calls/sec = 128.72 ttcp-t: 0.0user 2.9sys 0:21real 13% 20i+280d 222maxrss 0+2pf 717+0csw
ttcp-r: 16777216 bytes in 14.11 real seconds = 1161.48 KB/sec +++ ttcp-r: 2050 I/O calls, msec/call = 7.05, calls/sec = 145.33 ttcp-r: 0.0user 1.4sys 0:14real 10% 87i+1198d 196maxrss 0+1pf 1949+186csw
I've got some tweaks that move the TX speed up to the RX speed but I've got to groom them from the mess I've made of my source tree.
Yelled at by: wpaul
|
#
52549 |
|
27-Oct-1999 |
mdodd |
HEADS UP! All 3c5x9 users!
- Rip out all the static softc stuff and do softc allocation the right way. - Rewrite most of the ISA code so that it provides a DEVICE_IDENTIFY method to enumerate all non-PnP ISA devices.
This has the following consequences:
- No 'ep' devices may be hardwired. - All hardwired devices will probably be detected twice. By hardwired I mean:
device ep0 at isa? port 0x300 irq 10
- 'ep' devices are ordered by bus, slot, and then MAC address.
- Make 3c509B cards work in PnP mode. Yes, they really work. - Convert over to using ifmedia for media selection. No more of this lame 'linkX' stuff. - Consolidate a lot of duplicated code. - Make a stab at not breaking MII based PCCARD devices. I doubt that the PCCARD stuff works any more than it did before my changes but theres hope. My PCCARD hardware should arrive in a week or so. - Retreive the media settings from the card EEPROM rather than guessing. I've got a 3c509-TPO that thinks its got an AUI port and if others can report similar problems I'll write a bit of clever code that will fix this but right now it works correctly on all but 1 card. - Clean up a few things and make some cosmetic changes. - Add myself as the MAINTAINER since nobody else wants to. I'm in the best position to do this as I've got an example of most of the cards:
EISA 3c579 bnc/aui MCA 3c529 tp/aui ISA 3c509 tpo ISA-PnP 3c509B combo
If someone wants to send me a any cards I don't have I'd appriciate it. Also welcome are 3c59x boards since I'll be folding if_vx and if_ep at some point.
|
#
52472 |
|
25-Oct-1999 |
imp |
Add newbus attachment for pccard driver. Heavily tested by me, and I'm committing this from a laptop running this driver. Have only one devclass for all ep devices (at least for pccard and eisa) so unit numbering is sane. Might not work with both isa and non-isa devices on the same system until ep is updated (Matt has some patches in the pipeline which should resolve this, he wanted me to commit this so he can resolve any conflicts against cvs rather than my patches).
Reviewed by: Matt Dodd <mdodd@freebsd.org>
|
#
51673 |
|
26-Sep-1999 |
mdodd |
- Split out the ISA and PCCARD specific code.
- Split out the prototypes, externs and struct decls from if_epreg.h into if_epvar.h.
- Add support for MCA based Etherlink III (3c529) devices.
None of this code is used right now; the old if_ep driver is still in place and used.
I will eventually get around to converting if_ep_isa.c to newbus once I've had a talk with Peter and DFR about the DEVICE_IDENTIFY() method.
I have tested this code on my PS/2. It works. I would like EISA and ISA testers since my example hardware hasn't arrived yet.
Add:
dev/ep/if_ep.c optional ep dev/ep/if_ep_isa.c optional ep isa dev/ep/if_ep_eisa.c optional ep eisa dev/ep/if_ep_mca.c optional ep mca dev/ep/if_ep_pccard.c optional ep card
to sys/conf/files
Remove:
i386/eisa/3c5x9.c optional ep i386/isa/if_ep.c optional ep
from sys/i386/conf/files.i386
PCCARD testers wanted!
I will switch off and cvs rm the old driver in favor of this copy once I've had positive feedback or have the hardware to verify that it works.
|
#
51646 |
|
25-Sep-1999 |
phk |
Remove NBPF conditionality of bpf calls in most of our network drivers.
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.
|
#
51630 |
|
24-Sep-1999 |
obrien |
Switch the order of a two tests so that the error actually has to occur for you to be told there was an error [during verbose boot].
I poked him for the fix, he poked me to get it committed.
Submitted by: Jason Young <doogie@anet-stl.com>
|
#
51387 |
|
19-Sep-1999 |
obrien |
This adds support for the 3Com Megahertz 574B ethernet 16-bit PC-Card.
1) Reworked the probe routine 2) Addition of the 574B's product ID. 3) Added useful info when booting verbosely.
Submitted by: Jason Young <doogie@anet-stl.com>
|
#
50477 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
50084 |
|
20-Aug-1999 |
mdodd |
Set ifp->if_init to the right function. if_init_f_t is passed void * containing the address of ifp->if_softc not the unit number.
Someone tell me if these things don't work as I don't have the hardware needed to test them. (thats a first.)
I'll get if_ze and if_zp later.
Pointed out by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
|
#
50026 |
|
18-Aug-1999 |
mdodd |
Make these actually compile. I got a little delete happy pruning includes and used 'command' instead of 'cmd' in a few cases. Also clear up some unused variables.
Pointed out by: phk
|
#
50002 |
|
18-Aug-1999 |
mdodd |
SIOCSIFADDR, SIOCGIFADDR, and SIOCSIFMTU are implemented in sys/net/if_ethersubr.c:ether_ioctl(). Drivers need not implement generic behavior.
PR: kern/12126 Submitted by: in part by Boris Popov <bp@butya.kz>
|
#
49070 |
|
24-Jul-1999 |
hosokawa |
3C574TX 16bit FastEtherlink PC-card support. Reviewed by: HAMADA Naoki <nao@tom-yam.or.jp> Submitted by: Osamu MIHARA <mihara@prd.fc.nec.co.jp>
|
#
48645 |
|
06-Jul-1999 |
des |
Rename bpfilter to bpf.
|
#
43487 |
|
31-Jan-1999 |
dufault |
Move the "fetch serial data" delay so that it is an inter-bit delay. Increase the overall length of the delay by 10.
Without this a 3C509 card on my MediaGX crash box can't be reliably read. With this it is solid.
I've left a delay multiplier in instead of just changing the base delay because I'm surprised I had to increase it so much and expect there may be another problem.
|
#
42820 |
|
18-Jan-1999 |
peter |
Update the pccard hooks to use a module style declaration instead.
|
#
40565 |
|
22-Oct-1998 |
bde |
Initialize isa_devtab entries for interrupt handlers in individual device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet.
pc98 parts approved by: kato
|
#
37101 |
|
21-Jun-1998 |
bde |
Removed unused includes.
|
#
36735 |
|
07-Jun-1998 |
dfr |
This commit fixes various 64bit portability problems required for FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change.
The prototype FreeBSD/alpha machdep will follow in a couple of days time.
|
#
34928 |
|
28-Mar-1998 |
bde |
Removed unused #includes.
|
#
33860 |
|
27-Feb-1998 |
msmith |
Fix some style nits and remove an unused header. Submitted by: bde
|
#
33134 |
|
06-Feb-1998 |
eivind |
Back out DIAGNOSTIC changes.
|
#
33108 |
|
04-Feb-1998 |
eivind |
Turn DIAGNOSTIC into a new-style option.
|
#
32350 |
|
08-Jan-1998 |
eivind |
Make INET a proper option.
This will not make any of object files that LINT create change; there might be differences with INET disabled, but hardly anything compiled before without INET anyway. Now the 'obvious' things will give a proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The only thing that _should_ work (but can't be made to compile reasonably easily) is sppp :-(
This commit move struct arpcom from <netinet/if_ether.h> to <net/if_arp.h>.
|
#
31742 |
|
15-Dec-1997 |
eivind |
Throw options IPX, IPXIP and IPTUNNEL into opt_ipx.h.
The #ifdef IPXIP in netipx/ipx_if.h is OK (used from ipx_usrreq.c and ifconfig.c only).
I also fixed a typo IPXTUNNEL -> IPTUNNEL (and #ifdef'ed out the code inside, as it never could have compiled - doh.)
|
#
31430 |
|
27-Nov-1997 |
kato |
Recognize 3C569 network interface when `PC98' is defined.
Submitted by: HAMADA Naoki <hamada@astec.co.jp>
|
#
31311 |
|
20-Nov-1997 |
nate |
- Renamed <pccard/card.h> -> <pccard/cardinfo.h>.
Forgotten by: me Reminded by: Bruce
|
#
31016 |
|
07-Nov-1997 |
phk |
Remove a bunch of variables which were unused both in GENERIC and LINT.
Found by: -Wunused
|
#
30753 |
|
26-Oct-1997 |
fenner |
Fix a comment about multicast; since the Etherlink III has no multicast filter the driver will never learn how to program it.
|
#
30747 |
|
26-Oct-1997 |
nate |
- Instead of relying on a functional call to register PCARD-capable drivers, use a Linker Set. Note, if a driver is loaded as an LKM if will have to use the function call, but since none of the existing drivers are loadable, this made things cleaner and boot messages nicer.
Obtained from: PAO-970616
|
#
30721 |
|
26-Oct-1997 |
nate |
- Functional changes to PCCARD support. * Kill individual drivers 'suspend' routines, since there's no simple/safe way to suspend/resume a card w/out going through the complete probe at initialization time. * Default to using the apm_pccard_resume sysctl code, which basically pretends the card was removed, and then re-inserted. Suspend/resume is now 'emulated' with a fake insert/removal. (Hence we no longer need the driver-specific suspend routines.)
|
#
30720 |
|
26-Oct-1997 |
nate |
- Do a bunch of gratuitous changes intended to make the code easier to follow. * Rename/reorder all of the pccard structures, change many of the member names to be descriptive, and follow more closely other 'bus' drivers naming schemes. * Rename a bunch of parameter and local variable names to be more consistant in the code. * Renamed the PCCARD 'crd' device to be the 'card' device * KNF and make the code consistant where it was obvious. * ifdef'd out some unused code
|
#
30398 |
|
14-Oct-1997 |
itojun |
if_ep.c clarification/simplification. - irq = 9 problem (PR 4693) - mbuf chaining oddity fixed. (PR 4693) - trailer protocol has gone. (PR 4693) - removed mbuf kludge, we got higher performance. (PR 4693) - some indentation fixes
I'm sorry that I couldn't make a 2.2.5-RELEASE deadline.
PR: 4693 Reviewed by: babkin@hq.icb.chel.su Submitted by: hamada@tom-yam.or.jp
|
#
29024 |
|
01-Sep-1997 |
bde |
Added used #include - don't depend on <sys/mbuf.h> including <sys/malloc.h> (unless we only use the bogusly shared M*WAIT flags).
|
#
27555 |
|
20-Jul-1997 |
bde |
Removed unused #includes.
|
#
24204 |
|
24-Mar-1997 |
bde |
Don't include <sys/ioctl.h> in the kernel. Stage 2: include <sys/sockio.h> instead of <sys/ioctl.h> in network files.
|
#
22975 |
|
22-Feb-1997 |
peter |
Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not ready for it yet.
|
#
21673 |
|
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
#
20673 |
|
19-Dec-1996 |
kato |
Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp> Support 3COM 3C569 network card on PC98.
|
#
20407 |
|
13-Dec-1996 |
wollman |
Convert the interface address and IP interface address structures to TAILQs. Fix places which referenced these for no good reason that I can see (the references remain, but were fixed to compile again; they are still questionable).
|
#
18084 |
|
06-Sep-1996 |
phk |
Remove devconf, it never grew up to be of any use.
|
#
17300 |
|
27-Jul-1996 |
amurai |
Under the heavy load for transmiting condition, it will be write error and then never accept for sending packet from upper layer anymore (i.e. ping -f ) Reviewed by: David Greenman <dg@root.com> Submitted by: amurai@spec.co.jp
|
#
17223 |
|
19-Jul-1996 |
amurai |
Add interrupt register set up with original register value before attaching. Without this fix, 3c579(EISA) never make any H/W inturrupt. Reviewed by: "Justin T. Gibbs" <gibbs@freefall.freebsd.org>, nao@sbl.cl.nec.co.jp and owner-current on mailing list ;-) Submitted by: amurai@spec.co.jp, nao@sbl.cl.nec.co.jp
|
#
17158 |
|
13-Jul-1996 |
dg |
Enable transmit complete interrupt...
(author's explaination):
Bit 15 is the flag to request a transmit complete interrupt. The driver was apparently written to minimize interrupts, and if not for a 3-COM design quirk, everything would be just ducky. Prior to loading the outbound packet into the FIFO, the driver checks to see if there's enough space to contain the packet. If not, the driver requests a transmit-available interrupt when there is sufficient room. Unfortunately, the card is continuing to process the prior FIFO, and by the time the driver sets the threshold for a transmit available interrupt, the space is already available. When this occurs, the 3COM card ignores the interrupt request, and the driver is hung waiting for an interrupt that will never occur. There's probably a more elegant solution, but requesting the transmit complete interrupt was the easiest to implement. An alternative fix might be to check free FIFO space again, after requesting the transmit available interrupt, but I haven't bothered pursuing this. Since the patch, my 3C590 (PCI, same FIFO interface as 3C509) has been rock solid.
Submitted by: mevans@candle.com (Mike Evans)
|
#
16471 |
|
17-Jun-1996 |
bde |
Removed unused #includes of <i386/isa/icu.h> and <i386/isa/icu.h>. icu.h is only used by the icu support modules and by a few drivers that know too much about the icu (most only use it to convert `n' to `IRQn'). isa.h is only used by ioconf.c and by a few drivers that know too much about isa addresses (a few have to, because config is deficient).
|
#
16378 |
|
14-Jun-1996 |
nate |
Whoops, I accidentally deleted a necessary ":" which is part of the parameters to printf() using the "D" format. (Why this even worked on my box during testing I don't know, but as soon as I powered it on/off it quite working.)
|
#
16374 |
|
14-Jun-1996 |
nate |
At long last, we know have support for the 3C589 in a FreeBSD release using the existing files using the existing PCCARD support. Now that this is in place I would like to fixup the PCCARD hooks and remove the if_zp driver. At this point, we support everything we used to support *AND MORE* with the PCCARD code.
Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp> (via the Nomad release)
[ This works on both my 3C589B and 3C589C ]
|
#
16371 |
|
14-Jun-1996 |
nate |
Better code for switching the ethernet transceiver.
My 3C509B-COMBO works fine with the following patch. Switching between UTP and BNC is quite easy. (Just type 'ifconfig ep0 link1 -link2' or 'ifconifg ep0 link2 -link1'.)
[ I tested this with the additional PC-CARD patches and it works on both connectors on my 3C589B and 3C589C ]
Reviewed by: nate Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp>
|
#
16322 |
|
12-Jun-1996 |
gpalmer |
Clean up -Wunused warnings.
Reviewed by: bde
|
#
15893 |
|
24-May-1996 |
gibbs |
Properly determine the offset of the remaining bytes we need to transfer after outsl'ing all the long words we can during transmission in 32bit mode.
Closes PR:i386/1243 Submitted by: flash@eru.tubank.msk.su
|
#
14297 |
|
28-Feb-1996 |
gibbs |
Fix media type determination.
|
#
14259 |
|
25-Feb-1996 |
gibbs |
Clean up the 3c5x9 driver and add an eisaconf probe to it. This should prevent it from conflicting with other drivers (like the aic7xxx driver). Most of the work was in spliting out common portions of the driver and making them generic enough to be called from the eisaconf probe.
|
#
14091 |
|
13-Feb-1996 |
gibbs |
- Properly set the watchdog timer only during transmits. - Clean up the access to our ifnet structure by caching a pointer to it instead of always digging through our softc structure.
Submitted by: Watchdog fixes by Serge A. Babkin <babkin@hq.icb.chel.su>
|
#
13937 |
|
06-Feb-1996 |
wollman |
Clean up Ethernet drivers: - fill in and use ifp->if_softc - use if_bpf rather than private cookie variables - change bpf interface to take advantage of this - call ether_ifattach() directly from Ethernet drivers - delete kludge in if_attach() that did this indirectly
|
#
13692 |
|
29-Jan-1996 |
gibbs |
Finally commit Serge's multicast and "misc other changes" patch. I don't have a network to test it on here, but it does probe my card okay.
Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
|
#
13638 |
|
26-Jan-1996 |
phk |
The last part of the ether_sprint -> %6D change. Sorry for the delay. (%D is for hexdumping.)
|
#
12854 |
|
14-Dec-1995 |
bde |
Completed function declarations and/or added prototypes and/or added #includes to get prototypes.
|
#
12724 |
|
10-Dec-1995 |
phk |
Staticize and cleanup.
|
#
12628 |
|
05-Dec-1995 |
dg |
all: Removed ifnet.if_init and ifnet.if_reset as they are generally unused. Change the parameter passed to if_watchdog to be a ifnet * rather than a unit number. All of this is an attempt to move toward not needing an array of softc pointers (which is usually static in size) to point to the driver softc.
if_ed.c: Changed some of the argument passing to some functions to make a little more sense.
if_ep.c, if_vx.c: Killed completely bogus use of if_timer. It was being set in such a way that the interface was being reset once per second (blech!).
|
#
12080 |
|
04-Nov-1995 |
bde |
Added `#include "ioconf.h"' to <machine/conf.h> and cleaned up the misplaced extern declarations (mostly prototypes of interrupt handlers) that this exposed. The prototypes should be moved back to the driver sources when the functions are staticalized.
Added idempotency guards to <machine/conf.h>. "ioconf.h" can't be included when building LKMs so define a wart in bsd.kmod.mk to help guard against including it.
|
#
11872 |
|
28-Oct-1995 |
phk |
Remove unused functions and variables, make things static, and other cleanups.
|
#
11819 |
|
26-Oct-1995 |
julian |
Reviewed by: julian and jhay@mikom.csir.co.za Submitted by: Mike Mitchell, supervisor@alb.asctmd.com
This is a bulk mport of Mike's IPX/SPX protocol stacks and all the related gunf that goes with it.. it is not guaranteed to work 100% correctly at this time but as we had several people trying to work on it I figured it would be better to get it checked in so they could all get teh same thing to work on..
Mikes been using it for a year or so but on 2.0
more changes and stuff will be merged in from other developers now that this is in.
Mike Mitchell, Network Engineer AMTECH Systems Corporation, Technology and Manufacturing 8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000 supervisor@alb.asctmd.com
|
#
11460 |
|
13-Oct-1995 |
wollman |
Say goodbye to IFF_NOTRAILERS. Support for trailers was officially dropped for 4.4, but for some reason this flag lived on. (Until today, that is.)
|
#
10387 |
|
28-Aug-1995 |
guido |
Add SIOCGIFADDR ioctl so rarpd actually works with the if_ep interface.
|
#
9404 |
|
05-Jul-1995 |
dg |
Protected entire epioctl routine with splimp(). In this case, it is better form to do this than it is relying on individual subroutines (the logic in epioctl is itself very minimal). Ideally, unnecessary splimp()'s should now be removed if they exist; I'll leave this for a later date (a complete code review of the driver needs to be done). Fixes a bug I noticed that would show up when ifconfig'ing the interface down.
|
#
8876 |
|
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
#
8789 |
|
27-May-1995 |
dg |
Increased delay after reset to 10ms. Suggested by several people, the last of which was Scott Mace. This fixes a bug where the card would be missed sometimes during the device probe.
|
#
7780 |
|
12-Apr-1995 |
wollman |
Add a class field to devconf and mst drivers. For those where it was easy, drivers were also fixed to call dev_attach() during probe rather than attach (in keeping with the new design articulated in a mail message five months ago). For a few that were really easy, correct state tracking was added as well. The `fd' driver was fixed to correctly fill in the description. The CPU identify code was fixed to attach a `cpu' device. The code was also massively reordered to fill in cpu_model with somethingremotely resembling what identifycpu() prints out. A few bytes saved by using %b to format the features list rather than lots of ifs.
|
#
7749 |
|
10-Apr-1995 |
jkh |
Performance enhancements and a redesign of the transmitter code. Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
|
#
7635 |
|
05-Apr-1995 |
jkh |
Correct the watchdog routine. Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
|
#
7510 |
|
31-Mar-1995 |
jkh |
* Promiscuous mode added and interrupt logic slightly changed * to reduce the number of adapter failures. Transceiver select * logic changed to use value from EEPROM. Autoconfiguration * features added. Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
|
#
7430 |
|
28-Mar-1995 |
bde |
Add and move declarations to fix all of the warnings from `gcc -Wimplicit' (except in netccitt, netiso and netns) that I didn't notice when I fixed "all" such warnings before.
|
#
7269 |
|
23-Mar-1995 |
gibbs |
aha1742.c: #include <i386/isa/isa.h> return IO_EISASIZE instead of hard coded 0x1000.
if_ep.c: Remove commented out disabling of interrupts that gave a "comment withing a comment" warning.
|
#
7267 |
|
23-Mar-1995 |
dg |
Patches from Serge Babkin to fix interrupt handling bugs.
Submitted by: Serge Babkin
|
#
5863 |
|
24-Jan-1995 |
dg |
Added Andres Vega Garcia's email address.
Submitted by: Andres Vega Garcia
|
#
5436 |
|
08-Jan-1995 |
dg |
Restored Herb's current copyright. The one in the file appeared to have been run through indent and additionally doesn't contain clauses 3 and 4 that were apparantly added sometime after the driver was put into FreeBSD.
|
#
5195 |
|
22-Dec-1994 |
wollman |
Move ARP interface initialization into if_ether.c:arp_ifinit().
|
#
4796 |
|
24-Nov-1994 |
dg |
Moved conversion of ether_type to host byte order out of ethernet drivers and into ether_input(). It was silly to have bpf want this one way and ether_input want it another way. Ripped out trailer support from the few remaining drivers that still had it.
|
#
4435 |
|
13-Nov-1994 |
gibbs |
Andres Vega Garcia's improvements to the ep driver. This driver is a merging of the 1.1.5 driver, a recent version of the NetBSD driver, Andres' transmission start threshold code, and all other relavent changes to the driver since it was brought into 2.0. The multicast support from NetBSD has not be folded in yet. I've tested it under high loads for two weeks and it is now robust enough to be included in the GENERIC kernel. Reviewed by: gibbs Submitted by: vega@sophia.inria.fr (Andres Vega Garcia)
|
#
3816 |
|
23-Oct-1994 |
wollman |
Finished device configuration database work for all ISA devices (except `ze') and all SCSI devices (except that it's not done quite the way I want). New information added includes:
- A text description of the device - A ``state''---unknown, unconfigured, idle, or busy - A generic parent device (with support in the m.i. code) - An interrupt mask type field (which will hopefully go away) so that . ``doconfig'' can be written
This requires a new version of the `lsdev' program as well (next commit).
|
#
2826 |
|
16-Sep-1994 |
dg |
Removed inclusion of pio.h and cpufunc.h (cpufunc.h is included from systm.h). Merged functionality of pio.h into cpufunc.h. Cleaned up some related code.
|
#
2478 |
|
03-Sep-1994 |
ats |
Reviewed by: Submitted by: Update the if_ep driver for the 3C579 and bring over some of the changes from the netbsd driver. This is not complete: the detection of the irq in the eisa does not work and sometimes the reset for the 3C509 in ISA in an EISA bus system don't work ( Need a hard reset to be found again == reset knob).
|
#
1946 |
|
08-Aug-1994 |
dg |
Added support for SIOCSIFMTU.
|
#
1549 |
|
25-May-1994 |
rgrimes |
The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.
Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
|
#
1444 |
|
02-May-1994 |
ats |
Added the bugfixes from the current NetBSD driver. Put in some parts of the 3c579 support, but not the init/probe part.
|
#
1264 |
|
14-Mar-1994 |
wollman |
Added David Mills' kernel NTP PLL code. The current version of NTP does not yet speak to this code.
|
#
1080 |
|
03-Feb-1994 |
dg |
if_ep.c: removed netisr.h, fixed unconverted ep_ac, changed <> into "" for include files. if_ed, if_ie, if_is: don't include netisr.h.
|
#
1020 |
|
26-Jan-1994 |
nate |
Whoops, syntax error where I forgot a parenthesis.
|
#
1018 |
|
26-Jan-1994 |
nate |
FreeBSD modifications to driver. 0) FreeBSD additional include files additions 1) Rod's arpacom changes 2) Function type and return code cleanup, and all functions have correct casting to the correct data types 3) Bugfix where driver would not function due to missing structure not given a value. 4) General cleanup. (Theo did a lot already, I just did some more)
|
#
1017 |
|
26-Jan-1994 |
nate |
Newer version of Herb Peyerl's 3C509 driver straight from NetBSD-current.
|
#
1013 |
|
25-Jan-1994 |
rgrimes |
Do my fix that I have done to all the other ethernet drivers to use arpcom intead of foo_ac, remove now unneeded defines, fix support for options NS.
Still one compiler warning to fix :-)
|
#
964 |
|
10-Jan-1994 |
ats |
First beta version of the 3C509 driver changed for FreeBSD. Known problems in the moment are stray intr's in the ifconfig up/down. No way to select all three interfaces on a combo card with AUI/BNC/UTP interfaces and the performance doesn't look good. Only tested with a ISA AUI/BNC card yet.
|
#
963 |
|
10-Jan-1994 |
ats |
Committed the original NetBSD version of this driver to get the changes made for FreeBSD as cvs diffs. This is the 3C509 ethernet driver.
|