aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/musycc
Commit message (Collapse)AuthorAgeFilesLines
* Add -1 to this non-existent use of m_print in the source tree so LINTPoul-Henning Kamp2004-09-281-1/+1
| | | | | | | compiles again :-) Notes: svn path=/head/; revision=135906
* Switch to using C99 sparse initialisers for the type methods array.Julian Elischer2004-05-291-12/+9
| | | | | | | | | | | Should make no binary difference. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Reviewed by: Harti Brandt <harti@freebsd.org> MFC after: 1 week Notes: svn path=/head/; revision=129823
* Use NG_NODESIZ instead of (NG_NODELEN + 1)Julian Elischer2004-05-241-1/+1
| | | | | | | Noted by: jhb Notes: svn path=/head/; revision=129675
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-4/+3
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Use PCIR_BAR(x) instead of PCIR_MAPS.John Baldwin2003-09-021-1/+1
| | | | | | | | Glanced over by: imp, gibbs Tested by: i386 LINT Notes: svn path=/head/; revision=119690
* Use __FBSDID().David E. O'Brien2003-08-241-7/+7
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Prefer new location of pci include files (which have only been in theWarner Losh2003-08-221-2/+2
| | | | | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD. Notes: svn path=/head/; revision=119285
* Remove unused variable(s).Poul-Henning Kamp2003-05-311-4/+2
| | | | | | | | | Add /* FALLTHROUGH */ Found by: FlexeLint Notes: svn path=/head/; revision=115553
* Including <sys/stdint.h> is (almost?) universally only to be able to usePoul-Henning Kamp2003-03-181-1/+0
| | | | | | | | %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble. Notes: svn path=/head/; revision=112367
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-10/+10
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-10/+10
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Use %z and %j to quiet warnings.John Baldwin2002-11-071-6/+7
| | | | Notes: svn path=/head/; revision=106589
* Fix warnings:Peter Wemm2001-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. Notes: svn path=/head/; revision=78236
* Dang, I lost the sign in that brucification. DTRT with PCATCH.Poul-Henning Kamp2001-05-261-17/+17
| | | | | | | Cut Out In Cardboard by: bde Notes: svn path=/head/; revision=77219
* Use '+' not '|' to add PCATCH to tsleep.Poul-Henning Kamp2001-05-231-2/+2
| | | | Notes: svn path=/head/; revision=77053
* Fix a race condition in the transmit path caused by the controllerPoul-Henning Kamp2001-03-131-54/+94
| | | | | | | | | caching a bit more than we were told initially. More statistics gathering as well. Notes: svn path=/head/; revision=74207
* Use correct index when counting short errors.Poul-Henning Kamp2001-02-071-1/+1
| | | | Notes: svn path=/head/; revision=72121
* Update these netgraph drivers in current so that these changes can bePoul-Henning Kamp2001-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. Notes: svn path=/head/; revision=71344
* Part 2 of the netgraph rewrite.Julian Elischer2001-01-081-9/+10
| | | | | | | | | This is mostly cosmetic changes, (though I caught a bug or two while makeing them) Reviewed by: archie@freebsd.org Notes: svn path=/head/; revision=70784
* *Blush* Fix a dumb typo in previous commit.Bosko Milekic2001-01-061-1/+1
| | | | | | | Pointed out by: phk Notes: svn path=/head/; revision=70734
* Make sure musycc driver deals with the possibility of any type of mbufBosko Milekic2001-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 Notes: svn path=/head/; revision=70724
* Rewrite of netgraph to start getting ready for SMP.Julian Elischer2001-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. Notes: svn path=/head/; revision=70700
* * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT.Bosko Milekic2000-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. Notes: svn path=/head/; revision=70254
* Divorce the kernel binary ABI version number from the messageJulian Elischer2000-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) Notes: svn path=/head/; revision=70159
* I always forget this file. It's netgraph, but not one of mine.....Julian Elischer2000-12-121-3/+4
| | | | Notes: svn path=/head/; revision=69937
* Convert more malloc+bzero to malloc+M_ZERO.David Malone2000-12-081-6/+3
| | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Notes: svn path=/head/; revision=69781
* Always emply the NCO to attenuate jitter. The Receive clock recoveryPoul-Henning Kamp2000-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. Notes: svn path=/head/; revision=68337
* Make internal clock sourcing work right by tying the NCO to thePoul-Henning Kamp2000-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. Notes: svn path=/head/; revision=68209
* Many and sundry changes. Still alpha quality.Poul-Henning Kamp2000-08-291-136/+360
| | | | Notes: svn path=/head/; revision=65199
* Add transmit buffer limitation depending on actual bandwidth.Poul-Henning Kamp2000-07-221-113/+160
| | | | | | | | Add unframed E1 mode. Various cleanup. Notes: svn path=/head/; revision=63759
* Driver for LMC1504 card: four port E1 or fractional E1.Poul-Henning Kamp2000-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 Notes: svn path=/head/; revision=63415
* This in essence completes the receive path.Poul-Henning Kamp2000-07-121-118/+427
| | | | Notes: svn path=/head/; revision=63009
* Checkpoint commit. I can actually receive HDLC frames now.Poul-Henning Kamp2000-06-211-53/+669
| | | | Notes: svn path=/head/; revision=61904
* The very feeble beginnings of a driver for the LanMedia LMC1504 card.Poul-Henning Kamp2000-06-111-0/+176
New-Bus wizards are encouraged to look at this, I think it poses a challenge for the current newbus design. Notes: svn path=/head/; revision=61562