aboutsummaryrefslogtreecommitdiff
path: root/sys/i4b/layer4
Commit message (Collapse)AuthorAgeFilesLines
* Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE andBjoern A. Zeeb2008-05-265-2559/+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-064-10/+10
| | | | | | | | | | | | 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
* Fix a build breakage as result of disabling parts of I4B.Bjoern A. Zeeb2007-07-052-17/+17
| | | | | | | | | | | Check for (temporary gone) kernel options to be defined before using them. Reported by: peter Approved by: re (rwatson) Notes: svn path=/head/; revision=171244
* Extend i4b to support CAPI manager based ISDN controllers (CAPI manager is ↵Thomas Wintergerst2006-07-091-2/+6
| | | | | | | | | | | | part of c4b, CAPI for BSD). This is a preparation to add CAPI for BSD to the source tree. Approved by: hm (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=160216
* Fix -Wundef warnings found when compiling i386 LINT, GENERIC andRuslan Ermilov2005-12-052-3/+3
| | | | | | | custom kernels. Notes: svn path=/head/; revision=153110
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-065-13/+17
| | | | Notes: svn path=/head/; revision=139790
* Kill count device support from config. I've changed the last fewPeter Wemm2004-08-302-11/+2
| | | | | | | | | | | | | | | | | | | | 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-5/+5
| | | | | | | 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-9/+2
| | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | 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-114-12/+12
| | | | Notes: svn path=/head/; revision=116180
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-13/+7
| | | | | | | | | | | | | | | | 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-3/+3
| | | | Notes: svn path=/head/; revision=111748
* NODEVFS cleanup:Poul-Henning Kamp2003-02-261-12/+0
| | | | | | | | Don't call cdevsw_{add,remove}() Remove remnants of the previous DEVFS. Notes: svn path=/head/; revision=111575
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-5/+5
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-5/+5
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-23/+23
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* Continue de-counting i4b. Devices i4bctl, i4bcapi, iavc, i4bq921,Brooks Davis2002-09-024-26/+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
* add support properly displaying and logging incoming telephone numbers (MSNs)Hellmuth Michaelis2002-08-121-0/+3
| | | | | | | | | | by looking at the "type of number" field and providing configurable hooks to correct the numbers accordingly. See keywords add-prefix, prefix-national and prefix-international in isdnd.rc(5). This feature was implemented by Christian Ullrich <chris@chrullrich.de> Notes: svn path=/head/; revision=101716
* add experimental support for Data over Voice (DoV) outgoing calls.Hellmuth Michaelis2002-08-113-3/+6
| | | | | | | | based on patches received from Guy Ellis (guy@traverse.com.au), Chris Collins (xfire@xware.cx) and Phillip Musumeci (phillip@cs.jcu.edu.au). Notes: svn path=/head/; revision=101689
* 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
* Add support for Q.931 subaddresses.Hellmuth Michaelis2002-03-262-4/+27
| | | | | | | Submitted by: Steven Looman <fsteevie@wish.net> Notes: svn path=/head/; revision=93226
* Clean up the i4b kernel part: remove unmaintained #if(def)s for NetBSD,Hellmuth Michaelis2002-03-174-294/+32
| | | | | | | | 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
* Add experimental support for sending keypad facility messages.Hellmuth Michaelis2001-10-183-9/+39
| | | | | | | MFC after: 2 months Notes: svn path=/head/; revision=85103
* KSE Milestone 2Julian Elischer2001-09-121-15/+15
| | | | | | | | | | | | | | | | | 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
* Fix some signed/unsigned integer confusion, and add bounds checking ofKris Kennaway2001-09-101-0/+7
| | | | | | | | | | | arguments to some functions. Obtained from: NetBSD Reviewed by: peter MFC after: 2 weeks Notes: svn path=/head/; revision=83291
* Submitted by: Juha-Matti Liukkonen (Cubical Solutions Ltd) (jml@cubical.fi)Hellmuth Michaelis2001-05-252-5/+14
| | | | | | | | | Add a CAPI (hardware independent) driver i4bcapi(4) and hardware driver iavc (4) to support active CAPI-based BRI and PRI cards (currently AVM B1 and T1 cards) to isdn4bsd. Notes: svn path=/head/; revision=77164
* 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
* Finish deprecating <sys/select.h> in favor of <sys/selinfo.h> in kernel code.Garrett Wollman2001-01-201-0/+4
| | | | Notes: svn path=/head/; revision=71286
* Reenable support for FreeBSD 4.x and possibly the other supported BSD'sHellmuth Michaelis2001-01-151-18/+12
| | | | Notes: svn path=/head/; revision=71064
* Lock down the network interface queues. The queue mutex must be obtainedJonathan Lemon2000-11-251-9/+18
| | | | | | | | | | | | | | | | | 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-134-27/+1
| | | | | | | Remove not needed includes. Notes: svn path=/head/; revision=67074
* update to i4b version 0.95.04Hellmuth Michaelis2000-10-095-185/+241
| | | | 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-11/+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
* Remove 42 unneeded #include <sys/ioccom.h>.Poul-Henning Kamp2000-05-033-3/+0
| | | | | | | | | ioccom.h defines only implementation detail, and should therefore only be included from the #include which defines the ioctl tags, in other words: never include it from *.c Notes: svn path=/head/; revision=59914
* Remove unneeded #include <sys/kernel.h>Poul-Henning Kamp2000-04-291-1/+0
| | | | Notes: svn path=/head/; revision=59760
* * Use sys/sys/random.h rather than a i386 specific one.David E. O'Brien2000-04-241-4/+1
| | | | | | | | * There was nothing that should be machine dependant about i386/isa/random_machdep.c, so it is now sys/kern/kern_random.c. Notes: svn path=/head/; revision=59604
* update to isdn4bsd beta release 0.90Hellmuth Michaelis1999-12-145-44/+143
| | | | Notes: svn path=/head/; revision=54608
* 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-285-5/+5
| | | | Notes: svn path=/head/; revision=50477
* Add PHK's make_dev() into more places where DEVFS used to beJulian Elischer1999-08-271-17/+2
| | | | | | | | | | | | 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-15/+32
| | | | Notes: svn path=/head/; revision=49460
* devsw and cdevsw_add() changes for i4b.Poul-Henning Kamp1999-06-011-15/+25
| | | | | | | Reviewed by: hm Notes: svn path=/head/; revision=47659
* upgrade isdn4bsd from version 0.71 to the just released version 0.81Hellmuth Michaelis1999-05-204-99/+172
| | | | Notes: svn path=/head/; revision=47338
* Missing 'int' declaration in devsw_installed variable.Peter Wemm1999-05-061-2/+2
| | | | Notes: svn path=/head/; revision=46569