summaryrefslogtreecommitdiffstats
path: root/sys/dev/musycc
Commit message (Collapse)AuthorAgeFilesLines
* Fix warnings:peter2001-06-151-4/+5
| | | | | | | | | musycc.c:449: warning: long unsigned int format, unsigned int arg (arg 3) musycc.c:449: warning: long unsigned int format, unsigned int arg (arg 4) musycc.c:453: warning: long unsigned int format, unsigned int arg (arg 3) musycc.c:453: warning: long unsigned int format, unsigned int arg (arg 4) musycc.c:453: warning: long unsigned int format, unsigned int arg (arg 5) These warnings used to be confined to the alpha but are on all now.
* Dang, I lost the sign in that brucification. DTRT with PCATCH.phk2001-05-261-17/+17
| | | | Cut Out In Cardboard by: bde
* Use '+' not '|' to add PCATCH to tsleep.phk2001-05-231-2/+2
|
* Fix a race condition in the transmit path caused by the controllerphk2001-03-131-54/+94
| | | | | | caching a bit more than we were told initially. More statistics gathering as well.
* Use correct index when counting short errors.phk2001-02-071-1/+1
|
* Update these netgraph drivers in current so that these changes can bephk2001-01-211-24/+67
| | | | | | | | | | | | | | | | | MFC'ed i due time. I can't test it under current right now because netgraph seems to do unethical things with mutexes. musycc: Add status per channel. Reduce printf chattyness Keep error counters line if_mn does. Increase descriptor count. if_mn: Support experimental unframed E1 lines. These two drivers should share more code relating to framed channelized TDM media in general (T1/E1/E3/T3, Sonet). Anyone interested email me.
* Part 2 of the netgraph rewrite.julian2001-01-081-9/+10
| | | | | | This is mostly cosmetic changes, (though I caught a bug or two while makeing them) Reviewed by: archie@freebsd.org
* *Blush* Fix a dumb typo in previous commit.bmilekic2001-01-061-1/+1
| | | | Pointed out by: phk
* Make sure musycc driver deals with the possibility of any type of mbufbmilekic2001-01-061-0/+20
| | | | | | | | | | allocation not succeeding. In this case, make sure the driver doesn't leak any memory by freeing all necessary buffers; make sure to loop and free all the previously allocated mbufs in this routine. Reviewed by: alfred
* Rewrite of netgraph to start getting ready for SMP.julian2001-01-061-23/+19
| | | | | | | | This version is functional and is aproaching solid.. notice I said APROACHING. There are many node types I cannot test I have tested: echo hole ppp socket vjc iface tee bpf async tty The rest compile and "Look" right. More changes to follow. DEBUGGING is enabled in this code to help if people have problems.
* * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT.bmilekic2000-12-211-2/+2
| | | | | | | | | | | | | | | | | | This is because calls with M_WAIT (now M_TRYWAIT) may not wait forever when nothing is available for allocation, and may end up returning NULL. Hopefully we now communicate more of the right thing to developers and make it very clear that it's necessary to check whether calls with M_(TRY)WAIT also resulted in a failed allocation. M_TRYWAIT basically means "try harder, block if necessary, but don't necessarily wait forever." The time spent blocking is tunable with the kern.ipc.mbuf_wait sysctl. M_WAIT is now deprecated but still defined for the next little while. * Fix a typo in a comment in mbuf.h * Fix some code that was actually passing the mbuf subsystem's M_WAIT to malloc(). Made it pass M_WAITOK instead. If we were ever to redefine the value of the M_WAIT flag, this could have became a big problem.
* Divorce the kernel binary ABI version number from the messagejulian2000-12-181-22/+36
| | | | | | | | | format version number. (userland programs should not need to be recompiled when the netgraph kernel internal ABI is changed. Also fix modules that don;t handle the fact that a caller may not supply a return message pointer. (benign at the moment because the calling code checks, but that will change)
* I always forget this file. It's netgraph, but not one of mine.....julian2000-12-121-3/+4
|
* Convert more malloc+bzero to malloc+M_ZERO.dwmalone2000-12-081-6/+3
| | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
* Always emply the NCO to attenuate jitter. The Receive clock recoveryphk2000-11-041-13/+12
| | | | | | | | | | | circuit generates too much jitter to be used directly as xmit clock. Don't miscount pending bytes in weird error conditions. Drop the rest of a packet if we run out of tx-md's. Trig the xmit-frame signal on rising edge, this fixed the one-bit-too-late position of the HDLC frames in E1 mode.
* Make internal clock sourcing work right by tying the NCO to thephk2000-11-011-17/+38
| | | | | | | | | | | | | Xtal reference instead of the CLADI input. In unframed E1 mode, tie SIGFRZ low so that the mysycc doesn't get confused. Don't mask errors with OOF. Don't ignore OOF errors. Stop the channel before freeing mbufs in disconnect. I still have no T1 devices to test with, so the T1 code is non-existent.
* Many and sundry changes. Still alpha quality.phk2000-08-291-136/+360
|
* Add transmit buffer limitation depending on actual bandwidth.phk2000-07-221-113/+160
| | | | | Add unframed E1 mode. Various cleanup.
* Driver for LMC1504 card: four port E1 or fractional E1.phk2000-07-181-47/+115
| | | | | | T1 support is possible but I have no T1 hardware to test with. The vendor can be found at: www.lanmedia.com
* This in essence completes the receive path.phk2000-07-121-118/+427
|
* Checkpoint commit. I can actually receive HDLC frames now.phk2000-06-211-53/+669
|
* The very feeble beginnings of a driver for the LanMedia LMC1504 card.phk2000-06-111-0/+176
New-Bus wizards are encouraged to look at this, I think it poses a challenge for the current newbus design.
OpenPOWER on IntegriCloud