summaryrefslogtreecommitdiff
path: root/sys/i4b/driver/i4b_rbch.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE andBjoern A. Zeeb2008-05-261-826/+0
| | | | | | | | | | | | | | | | | | | | | parts relied on the now removed NET_NEEDS_GIANT. Most of I4B has been disconnected from the build since July 2007 in HEAD/RELENG_7. This is what was removed: - configuration in /etc/isdn - examples - man pages - kernel configuration - sys/i4b (drivers, layers, include files) - user space tools - i4b support from ppp - further documentation Discussed with: rwatson, re Notes: svn path=/head/; revision=179315
* I4B header files were repo-copied from sys/i386/include/ toBjoern A. Zeeb2007-07-061-3/+3
| | | | | | | | | | | | sys/i4b/include/ so they will be available to all architectures once I4B compiles on those. Adapt #include paths. Approved by: re (kensmith) Notes: svn path=/head/; revision=171270
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-061-3/+4
| | | | Notes: svn path=/head/; revision=139790
* Kill count device support from config. I've changed the last fewPeter Wemm2004-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | remaining consumers to have the count passed as an option. This is i4b, pc98/wdc, and coda. Bump configvers.h from 500013 to 600000. Remove heuristics that tried to parse "device ed5" as 5 units of the ed device. This broke things like the snd_emu10k1 device, which required quotes to make it parse right. The no-longer-needed quotes have been removed from NOTES, GENERIC etc. eg, I've removed the quotes from: device snd_maestro device "snd_maestro3" device snd_mss I believe everything will still compile and work after this. Notes: svn path=/head/; revision=134542
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-161-6/+6
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* Device megapatch 4/6:Poul-Henning Kamp2004-02-211-0/+2
| | | | | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags. Notes: svn path=/head/; revision=126080
* Device megapatch 1/6:Poul-Henning Kamp2004-02-211-2/+0
| | | | | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number. Notes: svn path=/head/; revision=126076
* Based on an excellent suggestion from tanimura@ define I4BPRI and use itGary Jennejohn2003-11-101-14/+7
| | | | | | | in place of TTIPRI. Notes: svn path=/head/; revision=122422
* Fix breakage cuased by the selwakeuppri commit by defining TTIPRI forGary Jennejohn2003-11-101-0/+7
| | | | | | | recent versions of FreeBSD (based on __FreeBSD_version check). Notes: svn path=/head/; revision=122419
* - Implement selwakeuppri() which allows raising the priority of aSeigo Tanimura2003-11-091-3/+3
| | | | | | | | | | | | | | | | thread being waken up. The thread waken up can run at a priority as high as after tsleep(). - Replace selwakeup()s with selwakeuppri()s and pass appropriate priorities. - Add cv_broadcastpri() which raises the priority of the broadcast threads. Used by selwakeuppri() if collision occurs. Not objected in: -arch, -current Notes: svn path=/head/; revision=122352
* Use __FBSDID().David E. O'Brien2003-06-101-3/+3
| | | | Notes: svn path=/head/; revision=116177
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-13/+8
| | | | | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl) Notes: svn path=/head/; revision=111815
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).Dag-Erling Smørgrav2003-03-021-8/+8
| | | | Notes: svn path=/head/; revision=111748
* NODEVFS cleanup:Poul-Henning Kamp2003-02-261-16/+0
| | | | | | | | Don't call cdevsw_{add,remove}() Remove remnants of the previous DEVFS. Notes: svn path=/head/; revision=111575
* Continue de-counting i4b. Devices i4bctl, i4bcapi, iavc, i4bq921,Brooks Davis2002-09-021-4/+0
| | | | | | | | | | | i4bq931, i4b, isic, iwic, ifpi, ifpi2, ifpnp, ihfc, and itjc are no longer count devices. Also remove a few other instances of N<DEVICE> being used to control compilation of whole files. Reviewed by: hm Notes: svn path=/head/; revision=102828
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-1/+1
| | | | Notes: svn path=/head/; revision=102412
* Change callers of mtx_init() to pass in an appropriate lock type name. InJohn Baldwin2002-04-041-1/+1
| | | | | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64 Notes: svn path=/head/; revision=93818
* Clean up the i4b kernel part: remove unmaintained #if(def)s for NetBSD,Hellmuth Michaelis2002-03-171-232/+22
| | | | | | | | OpenBSD and BSD/OS and respective code, remove pre $FreeBSD CVS id's, remove #if(def)s and respective code for FreeBSD versions < 5 . Notes: svn path=/head/; revision=92487
* Protect mtx_init() invocations with mtx_intialized() checks to avoid aGary Jennejohn2001-12-301-1/+2
| | | | | | | | | | reported panic. Submitted by: Alexander Leidinger <Alexander@Leidinger.net> (partly) MFC after: 4 weeks Notes: svn path=/head/; revision=88688
* KSE Milestone 2Julian Elischer2001-09-121-11/+11
| | | | | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha Notes: svn path=/head/; revision=83366
* Send the remains (such as I have located) of "block major numbers" toPoul-Henning Kamp2001-03-261-1/+0
| | | | | | | the bit-bucket. Notes: svn path=/head/; revision=74810
* Reenable support for FreeBSD 4.x and possibly the other supported BSD'sHellmuth Michaelis2001-01-151-40/+40
| | | | Notes: svn path=/head/; revision=71064
* Lock down the network interface queues. The queue mutex must be obtainedJonathan Lemon2000-11-251-32/+11
| | | | | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary. Notes: svn path=/head/; revision=69152
* Submitted by: phkHellmuth Michaelis2000-10-131-1/+0
| | | | | | | Remove not needed includes. Notes: svn path=/head/; revision=67074
* update to i4b version 0.95.04Hellmuth Michaelis2000-10-091-75/+103
| | | | Notes: svn path=/head/; revision=66873
* Avoid the modules madness I inadvertently introduced by making thePoul-Henning Kamp2000-09-021-9/+0
| | | | | | | | | | | | | | | | | | | | | cloning infrastructure standard in kern_conf. Modules are now the same with or without devfs support. If you need to detect if devfs is present, in modules or elsewhere, check the integer variable "devfs_present". This happily removes an ugly hack from kern/vfs_conf.c. This forces a rename of the eventhandler and the standard clone helper function. Include <sys/eventhandler.h> in <sys/conf.h>: it's a helper #include like <sys/queue.h> Remove all #includes of opt_devfs.h they no longer matter. Notes: svn path=/head/; revision=65374
* Remove all traces of Julians DEVFS (incl from kern/subr_diskslice.c)Poul-Henning Kamp2000-08-201-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove old DEVFS support fields from dev_t. Make uid, gid & mode members of dev_t and set them in make_dev(). Use correct uid, gid & mode in make_dev in disk minilayer. Add support for registering alias names for a dev_t using the new function make_dev_alias(). These will show up as symlinks in DEVFS. Use makedev() rather than make_dev() for MFSs magic devices to prevent DEVFS from noticing this abuse. Add a field for DEVFS inode number in dev_t. Add new DEVFS in fs/devfs. Add devfs cloning to: disk minilayer (ie: ad(4), sd(4), cd(4) etc etc) md(4), tun(4), bpf(4), fd(4) If DEVFS add -d flag to /sbin/inits args to make it mount devfs. Add commented out DEVFS to GENERIC Notes: svn path=/head/; revision=64880
* update to isdn4bsd beta release 0.90Hellmuth Michaelis1999-12-141-110/+272
| | | | Notes: svn path=/head/; revision=54608
* Call i4b_l4_drvrdisc, not i4b_l4_disconnect_ind to bring the linkBrian Somers1999-11-281-2/+2
| | | | | | | | | | | down when the device is closed or carrier is removed. This solves the disconnect problems when using user-ppp over isdn. Suggested by: hm Notes: svn path=/head/; revision=53837
* Remove five now unused fields from struct cdevsw. They should neverPoul-Henning Kamp1999-09-251-5/+0
| | | | | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags Notes: svn path=/head/; revision=51658
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Add PHK's make_dev() into more places where DEVFS used to beJulian Elischer1999-08-271-19/+3
| | | | | | | | | | | | hooked in directly. Alpha change checked by: Matthew Jacob <mjacob@feral.com> i4b ISDN changes checked by: Udo Schweigert <ust@cert.siemens.de> and Hellmuth Michaelis <hm@hcs.de> PC98 changes checked by: Takahashi Yoshihiro <nyan@FreeBSD.org> Notes: svn path=/head/; revision=50436
* updating isdn4bsd to beta version 0.83Hellmuth Michaelis1999-08-061-35/+85
| | | | Notes: svn path=/head/; revision=49460
* devsw and cdevsw_add() changes for i4b.Poul-Henning Kamp1999-06-011-12/+23
| | | | | | | Reviewed by: hm Notes: svn path=/head/; revision=47659
* upgrade isdn4bsd from version 0.71 to the just released version 0.81Hellmuth Michaelis1999-05-201-29/+48
| | | | Notes: svn path=/head/; revision=47338
* update the i4b kernel part to i4b release 0.71.00Hellmuth Michaelis1999-03-071-5/+39
| | | | Notes: svn path=/head/; revision=44550
* Initial entry of ISDN4BSD into the FreeBSD tree.Poul-Henning Kamp1998-12-271-0/+820
ISDN4BSD is the work of our brand-new comitter: Hellmuth Michaelis, who has done a tremendous amount of work to bring us this far. There are still some outstanding issues and files to bring into the tree, and for now it will be needed to pick up all the extra docs from the isdn4bsd release. It is probably also a very good idea to subscribe to the isdn@freebsd.org mailing list before you try this out. These files correspond to release "beta Version 0.70.00 / December 1998" from Hellmuth. Notes: svn path=/head/; revision=42107