Commit Graph

111 Commits

Author SHA1 Message Date
ad a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
martin 27701280d7 We count last activity in time_update nowadays, so use that to compare
idle timeouts as well.
2007-10-14 23:44:49 +00:00
ad 88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
he 785202d938 Adapt to const-ification of the *dst arg of if_output() functions. 2007-02-20 07:43:28 +00:00
hubertf 142c2a33ba Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
2007-01-24 13:08:11 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
elad a498da2060 Kill KAUTH_GENERIC_ISSUSER. 2006-10-25 23:44:42 +00:00
pooka 46e45ee2d4 replace static for ncapi - it doesn't need exporting - nuke it from the header 2006-10-16 13:03:03 +00:00
pooka 97cdceacd6 * __unused madness
* insert missing initializers
* fix one (1!) bug because of if(); (although I wonder if
  the fix is actually of any use ...)
2006-10-16 12:23:00 +00:00
ad f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
kardel de4337ab21 merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
2006-06-07 22:33:33 +00:00
christos 2a606d89a3 remove static decl. 2006-06-03 15:35:29 +00:00
elad 874fef3711 integrate kauth. 2006-05-14 21:19:33 +00:00
lukem a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
perry fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +00:00
perry 0f0296d88a Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:45:08 +00:00
jmc 058eb3d205 Remove shadow variable caused by lwp fixes 2005-12-17 05:37:17 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
elad adf9419c9a Multiple inclusion protection, as suggested by christos@ on tech-kern@
few days ago.
2005-12-10 23:44:08 +00:00
jmc 168d2d9f35 Rename a shadowed variable 2005-06-13 20:34:16 +00:00
drochner b10340ac93 quell cast-qual and shadow warnings 2005-06-01 18:07:04 +00:00
perry bcfcddbac1 nuke trailing whitespace 2005-02-26 22:31:44 +00:00
martin 028c339458 If we don't have a source telephone number configured, do not send
a IEI_CALLINGPN information element.
2004-05-06 21:11:04 +00:00
itojun d2f1c029b9 kill sprintf, use snprintf 2004-04-21 18:40:37 +00:00
matt 29fd5f0232 Use M_ZERO as appropriate. Use M_WAITOK instead of 0. 2004-04-18 19:21:06 +00:00
pooka e9a93a44e9 Pass the number of B channels down in the info ioctl. 2004-03-28 14:27:26 +00:00
martin acbc97c970 Avoid NULL pointer dereferences on incomplete setup by userland.
Fixes PR kern/24807.
2004-03-21 16:29:40 +00:00
wiz e365329be5 Spell length with h after t. Inspired by a commit by brad@openbsd. 2004-02-13 18:02:05 +00:00
keihan b8702f530b netbsd.org -> NetBSD.org
This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean".  Thanks for the patiance, and sorry for all the commits.
2003-12-04 13:57:30 +00:00
pooka aaff23d58d Calculate controller number based on the controller number stored in
the soft context instead of hardcoding it to "1".  Now we have a better
chance of working with multiple controllers.
2003-10-28 17:02:54 +00:00
pooka a1dd1bf617 g/c unused var bch from a few places 2003-10-03 16:47:57 +00:00
pooka 2491e652ce When processing a connect indication, seek out the appropriate
l3drv and add that information to the call descriptor.  This causes
us to not crash when receiving calls.
2003-10-03 16:46:32 +00:00
pooka dae7af8b24 Ready the kernel side of i4b for primary rate interface support by
removing assumptions that there are only two B channels and by
adding support for a varying number of channels.

Due to this, rename previously used isdn identified "bri" to "isdnif",
which better describes the current situation.
2003-10-03 16:38:44 +00:00
martin 6b0c555300 On physical layer errors, mark deactivated call descriptors correctly.
Spotted by Antti Kantee.
2003-09-26 22:20:12 +00:00
pooka 3a930307fc When releasing all cd's associated with a controller, don't stop
after finding one.
2003-09-26 21:05:33 +00:00
pooka b6d1da0696 RCSID 2003-09-26 15:17:23 +00:00
pooka 4952ffa71e Give iavc a bit in the debug bitmask society. 2003-09-25 15:54:41 +00:00
pooka 6a7a858eb2 Add a support layer for the ISDN CAPI (http://www.capi.org/), which should
make it pretty simple to write drivers for cards which conform to CAPI.

This code was originally written by Juha-Matti Liukkonen <jml@cubical.fi>
of Cubical Solutions Ltd. for FreeBSD, and was now adapted to NetBSD
by myself for the same company.
2003-09-25 15:34:38 +00:00
pooka 0553a30d48 Make the number of maximum b-channels provided by a controller a macro
and base the calculation of the amount of call descriptors on that.

Define MAX_BCHAN as 2 for now, since we don't support primary rate (yet).
2003-09-25 15:16:08 +00:00
pooka 0388df434a add number of b-channels provided to controller info request 2003-09-25 15:11:21 +00:00
pooka 3a76a8a2df Add a hack to avoid calling l2 functions for active ISDN cards. They
expect l1_token to contain the l2_token when it indeed is the l1_token
for active cards, which don't use l2.

Martin promised to look into really fixing this a few weeks from now .. ;)
2003-09-25 14:17:57 +00:00
pooka 4915f83148 Make isdntel hangup via /dev/isdnteld work by digging out the correct
soft context and using it instead of the incorrect one.

Also, don't bother to crash the kernel if we try to hangup a non-connected
dialer, simply return an error.
2003-09-23 14:15:59 +00:00
martin c52fa54bfe Make it compile on alpha. 2003-08-12 19:49:27 +00:00
itojun a812112ebc use strlcpy 2003-05-16 05:12:32 +00:00
martin b0290dfbc4 Change a integer value that is passed via a void* in an ioctl() like
function to a intptr_t. This makes it compile on sparc64.
Addresses parts of PR kern/21448 by Frank Kardel.
2003-05-08 21:15:13 +00:00
drochner 93c6f5d089 Rename the IPR_VJ option into IRIP_VJ (as irip(4) told all the time),
create an opt_ header and make the dependency on slcompress.c more exact.
(OK by martin)
2003-04-11 14:45:27 +00:00
wiz 68caa698b2 Respect the law: Use A-law and mu-law as spellings as far as easily possible.
Inspired by Igor Sobrado in PR 19680.
2003-04-06 18:20:07 +00:00
kristerw 83b5a18c99 Restore the system priority level in case of errors.
OK:ed by martin.
2002-12-28 21:09:14 +00:00
drochner cc12f9fb4e remove ttydefchars declaration which was wrong anyway,
a correct one is now pulled in from <sys/ttydefaults.h>
2002-12-10 13:50:10 +00:00