Commit Graph

66544 Commits

Author SHA1 Message Date
cl
2f20c17423 make gcc3's `deprecated use of label at end of compound statement' go away 2003-09-27 20:16:59 +00:00
cl
3f16119f55 Cast through (void *) to appease gcc3. 2003-09-27 20:01:58 +00:00
mhitch
28527002f8 Cast through (void *) to appease gcc3. 2003-09-27 19:34:17 +00:00
tsutsui
499f56cda2 sys__sigreturn14 -> compat_16_sys___sigreturn14 2003-09-27 17:51:42 +00:00
tsutsui
2fe24b8c7f Use strlcpy() rather than strncpy() + `\0' termination. 2003-09-27 17:42:11 +00:00
mycroft
c82b47f9bc Fix a non-fatal race condition. 2003-09-27 15:56:03 +00:00
mycroft
88dd794c62 Put pfsnode in the #ifdef _KERNEL too, so this actually compiles. 2003-09-27 15:32:50 +00:00
darcy
566d30be44 Changes as discussed with itojun on tech-kern. I have modified the enums
to have KFS or PFS differentiators.  Further I have wrapped the enum in
procfs in "#ifdef _KERNEL" as it is done in kernfs.

To see the discussion go to http://mail-index.NetBSD.org/tech-kern/2003/09/
and look for "Mismatched enums in include files" in the list.
2003-09-27 13:29:02 +00:00
mrg
3942bb7a51 enable broadcom BCM4401 (bce) driver (as found on recent dell laptops) 2003-09-27 13:16:16 +00:00
mrg
871eae696e add new driver for broadcom BCM4401 chipset (as seen on recent dell
laptops) written by Cliff Wright <cliff@snipe444.org> and tested by
yours truly.

XXX: missing mcast filter support.

thanks cliff!
2003-09-27 13:13:28 +00:00
jdolecek
e257c8b61f map ERRSRV:ERRbaduid to EAUTH 2003-09-27 12:24:25 +00:00
tsutsui
ddc207b63e Add options COMPAT_16. 2003-09-27 10:07:57 +00:00
dsl
84577b4fe4 Add kern.root_partition (sysinst needs to know it)
Add kern.drivers - reports driver names and major numbers
Remove some redundant caddr_t casts.
2003-09-27 07:58:55 +00:00
dsl
70fa83aaf4 Add kern.root_partition (because sysinst needs to know it).
Add kern.drivers - reports installed driver names and major numbers.
2003-09-27 07:52:34 +00:00
matt
a8a3bf5bed ANSIfy. 2003-09-27 04:44:42 +00:00
matt
827263a8bc Use ksi_signo instead of _signo. 2003-09-27 03:51:54 +00:00
tls
d0ffab287c Remove NOSETTLE flag from channel in FibreChannel case. It makes sense that
it should be there, but in practice, on some systems an ugly race condition
rears its head: SCSI commands are issued before the FC thread ever runs, and
fail from then on forever.  Yuck.
2003-09-27 03:43:08 +00:00
christos
6fc26a7684 add SIGTRAMP_VALID and gc old sigcontext <-> ucontext macros. 2003-09-27 03:14:31 +00:00
matt
60ff688f72 Define SIGTRAMP_VALID properly. 2003-09-27 00:58:32 +00:00
matt
3ce59aebf3 Deal with signal trampoline being const. 2003-09-27 00:57:45 +00:00
matt
2546f51a33 Regen. 2003-09-26 23:11:16 +00:00
matt
ebb8ea4c89 Constify __sigaction_sigtramp argument 'void * tramp'. 2003-09-26 23:08:24 +00:00
nathanw
4d59420344 Move __cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED to machine/types.h
so that they can be used in a namespace-friendly way.
2003-09-26 22:45:41 +00:00
wiz
db579612f4 Definition, not defintion. From miod@openbsd. 2003-09-26 22:25:21 +00:00
wiz
cff5e477ad Process has only one c. From miod@openbsd. 2003-09-26 22:23:58 +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
matt
6986092cfe Add a machine-dependent SIGTRAMP_VALID macro which is used to test whether
a trampoline version is valid or not.
2003-09-26 22:14:19 +00:00
tsutsui
81d5d9d0f3 TAB/space cleanup. 2003-09-26 21:41:16 +00:00
christos
597d36cd65 Add needed header file. 2003-09-26 21:28:45 +00:00
christos
deacebb910 Add necessary include file. 2003-09-26 21:28:24 +00:00
christos
9eb9621f0e fix fallout from frame to frame * conversion. 2003-09-26 21:24:34 +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
christos
7e25d9a162 catch up with const sigset_t 2003-09-26 18:11:47 +00:00
christos
25f1b29f36 bring in MI declarations. 2003-09-26 18:10:32 +00:00
christos
541faba137 catch up with const sigset_t 2003-09-26 18:10:01 +00:00
christos
44f376e8fc move MI stuff to the MI include 2003-09-26 18:09:38 +00:00
christos
a0a66e38c7 move MI stuff to the MI include. 2003-09-26 18:09:13 +00:00
christos
85d91a39fe add catch up with const sigset_t * 2003-09-26 18:05:01 +00:00
christos
4f76392503 catch up with const sigset_t * 2003-09-26 18:04:11 +00:00
matt
fb54d529b8 Copy out the entire ksiginfo_t, not just the first word. 2003-09-26 18:00:47 +00:00
tsutsui
b299c2186f Remove casts and use %x in printf for tc_offset_t,
which is int32_t on both alpha and pmax.
2003-09-26 17:17:47 +00:00
lonewolf
c8d69e8d1c Attach haltwo on Indigo2 machines also, it reportedly works on them. 2003-09-26 16:58:06 +00:00
matt
4c294aa149 Add DELL Perc 4/di (from Freebsd). 2003-09-26 16:31:08 +00:00
simonb
5c54e29374 Cast through (void *) to appease gcc3. 2003-09-26 16:02:24 +00:00
simonb
a35e8c4a16 Cast through (void *) to appease gcc3.
XXX1 - why does this "type-punned pointer" warning only affect little-
       endian MIPS and not big-endian MIPS?!
XXX2 - too much duplicated code.
2003-09-26 16:00:28 +00:00
mycroft
c7d415bac1 Fix off-by-one problem in array size. 2003-09-26 16:00:12 +00:00
simonb
cff4731c81 Avoid multi-line strings. 2003-09-26 15:34:11 +00:00
simonb
091072d91a Can't use __FUNCTION__ with string concatenation in gcc331. 2003-09-26 15:29:22 +00:00
pooka
b6d1da0696 RCSID 2003-09-26 15:17:23 +00:00
simonb
e2c040a1f7 Don't have a label as the last part of a compound statement (fixes a
gcc331 warning).
2003-09-26 14:30:15 +00:00
yamt
ef98d23ce3 do delayed truncation in nfs_getattr. 2003-09-26 14:08:45 +00:00
simonb
e5be45f167 Disable pass3 DMA for now; booting a box to multi-user with root-on-nfs
reliably wedges during the dev_mkdb command in uvn_fp2.
2003-09-26 13:34:56 +00:00
simonb
550b4bef88 Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs. Test
compiled on most architectures.
2003-09-26 12:02:55 +00:00
yamt
c2025ab0ea change n_mtime from time_t to timespec in order to improve
cache consistency.
(1 second granularity is too loose these days.)
2003-09-26 11:51:53 +00:00
simonb
1d558954a5 Add "ULL" to large constant; keeps gcc331 happy. 2003-09-26 10:34:41 +00:00
matt
d685af4b25 Regen. 2003-09-26 07:47:14 +00:00
matt
90bc204d53 Add Dell Perc 4/DI 2003-09-26 07:45:15 +00:00
chs
066b5091f4 don't dereference a vm_page pointer after we free the page. 2003-09-26 04:03:39 +00:00
chs
592a0a8b16 in pmap_enter(), invalidate the TSBs before pre-loading the new values,
since we only pre-load one and the other one could be stale.
also, remove the bogus dcache_flush_page() from pmap_clear_modify() again,
since the problem it was intended to mask seems to have disappeared.
2003-09-26 03:59:33 +00:00
thorpej
a398d77171 Confirmed; don't need to query stripe size on TwinStor. 2003-09-26 03:11:41 +00:00
atatat
ce41526125 Make kernfs peacefully co-exist with procfs. 2003-09-26 03:08:18 +00:00
uwe
a8bc4b332e Minor nit. Use more compact "device hd64461if {}" instead of separate
"define" and "device" lines.  Ditto for hd64465if.  Same ioconf.c is
generated.
2003-09-26 00:52:33 +00:00
eeh
a6192488f7 Define ksi. 2003-09-26 00:00:17 +00:00
enami
b50653d8aa In ffs_sbupdate(), swap the sblock after ffs_oldfscompat_write() is
applied rather than the original.
2003-09-25 23:39:17 +00:00
enami
e027b9d372 Make negative name cache works again. 2003-09-25 23:10:58 +00:00
thorpej
abcd16ecc6 Fix up the TWEIO_COMMAND code to actually work. The 3ware management API
library can now communicate with the card.
2003-09-25 22:26:40 +00:00
matt
2deb8b2e7b Deal with the constification of ksiginfo_t and sigset_t in signalling. 2003-09-25 22:22:36 +00:00
christos
ecfb034cb3 constify siginfo/trapsignal 2003-09-25 22:04:17 +00:00
christos
cfba45c856 constify sendsig/trapsignal 2003-09-25 22:00:02 +00:00
matt
9a305fca59 Use direct entry for siginfo trampoline. Deal with missing
legacy trampolines in a cleaner manner.
2003-09-25 21:59:55 +00:00
christos
b2ceab3824 constify sendsig/trapsignal 2003-09-25 21:59:18 +00:00
matt
83003b0798 Fill in ksi_code. 2003-09-25 21:58:46 +00:00
christos
94b2c0f8b1 constify sendsig/trapsignal [suggested by gimpy] 2003-09-25 21:58:12 +00:00
christos
7da4d27c12 imake this compile again. 2003-09-25 21:55:49 +00:00
mycroft
eefae40298 Hide the use of config_interrupts() in one place. 2003-09-25 19:29:48 +00:00
mycroft
864b96269c Modify the fdcattach() interface again, splitting it into two parts, so that
DRQ allocation is done earlier.
2003-09-25 19:06:19 +00:00
matt
85a83bcb92 Add COMPAT_16 2003-09-25 18:56:17 +00:00
matt
85a5f3065d Add siginfo support for PowerPC. 2003-09-25 18:42:18 +00:00
thorpej
1e3cfaaadc Install twereg.h and tweio.h 2003-09-25 18:05:53 +00:00
thorpej
70b9bb88c1 - Protect against multiple inclusion.
- Pull in <dev/pci/twereg.h> ourselves, as well.
2003-09-25 18:05:40 +00:00
matt
49317aa149 Remove db_onpanic check. 2003-09-25 17:36:33 +00:00
joda
709b6b0e89 regen 2003-09-25 16:49:03 +00:00
joda
074d64615d more nvidia devices 2003-09-25 16:47:54 +00:00
lonewolf
3111a2e6ea Support for HAL2 audio controller attached to the HPC ASIC, found on SGI Indy.
The driver is not too heavily tested and only supports audio playback and
master volume setting currently.
2003-09-25 16:35:50 +00:00
pooka
a41fa163fd iavc@pci 2003-09-25 16:00:24 +00:00
pooka
2ef487b6bc autoconf goop for iavc 2003-09-25 15:58:14 +00:00
pooka
4952ffa71e Give iavc a bit in the debug bitmask society. 2003-09-25 15:54:41 +00:00
pooka
a99f02d0ee Add a driver for the CAPI-compliant AVM B1/T1 cards.
The driver backend is capable of supporting also ISA cards (no DMA)
and primary rate (PRI) cards in addition to the basic rate ones,
but I don't any to test on right now, so we don't support those
currently.

This code was originally written by Juha-Matti Liukkonen <jml@cubical.fi>
of Cubical Solutions Ltd. for FreeBSD, and was ported to NetBSD by
myself for the same company.
2003-09-25 15:53:26 +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
ichiro
066497ec38 add comment and delete unused definition 2003-09-25 14:48:16 +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
ichiro
663ccee1cc pci bus support 2003-09-25 14:11:18 +00:00
scw
a3b1a08d1e Fix for PR kern/22933
Avoid gcc3 pointer alias bugs caused by casting between struct callout
and struct callout_circq.
2003-09-25 10:44:11 +00:00
bouyer
703c60f5c6 Don't print modes we are using if we don't know which modes are really used. 2003-09-25 09:38:09 +00:00
thorpej
4fa7c2c48b - Fix a bug I introduced in a previous commit (oops).
- Add the twe_drivecommand ioctl structure.
2003-09-25 01:35:25 +00:00
mycroft
3d7395ab71 Update for new attach method. 2003-09-25 01:12:43 +00:00
mycroft
516d857707 Do fd probing after interrupts are enabled, and use tsleep() for delays.
Also try to accept a recalibrate interrupt to terminate the delay -- but that
doesn't seem to work reliably, so do a 2s timeout as well.
2003-09-25 01:05:06 +00:00
mycroft
3114965161 Fix glaring errors in recent changes. 2003-09-25 00:59:31 +00:00
mycroft
3e08e45a55 Fix GCC 3 barfage. 2003-09-24 11:57:44 +00:00
shige
95fa35eb8e Delete this file because filename includes uppercase letters. 2003-09-24 11:51:19 +00:00
shige
e0a74e8b1e Rename ibm4xxGPx_autoconf.c to all lowercase filename. 2003-09-24 11:48:18 +00:00
shige
0a36d23137 Copy IBM4xxGPx specific autoconf code from evbppc/walnut/autoconf.c. 2003-09-24 11:47:02 +00:00
yamt
4e746c95f7 in getblk(), don't call allocbuf() for B_LOCKED buffers.
LFS misses total size of B_LOCKED buffer (locked_queue_bytes) when
getblk() re-size them.

XXX maybe needs a better fix.
2003-09-24 10:44:44 +00:00
yamt
61d5d4362b fix a bug of lfs.
genfs_getpages() can read in more blocks than it should due to faked filesize
of lfs_gop_size().  it's a security problem and it makes gcc3 "internal error"

to fix this,
- in genfs_getpages(), always calculate diskeof and memeof separately
  so that filesystems (in this case, lfs) can use different strategies
  for them.
- introduce GOP_SIZE_MEM flag and use it to request in-core filesize.
  (it was an intention of GOP_SIZE_READ,
  but after the above change _READ is not a straightforward name)

after this, no one uses GOP_SIZE_{READ,WRITE} anymore but leave them for now.
2003-09-24 10:22:53 +00:00
mycroft
ba50df223e Take a stab at making this compile, at least. 2003-09-24 07:15:52 +00:00
itojun
8d9a724638 on arplookup() failure, nuke cloned route - otherwise outsider could use massive
number of bogus ARPs for DoS attack.  FreeBSD-SA-03:14.arp
2003-09-24 06:52:47 +00:00
matt
9c8a5009b3 Define va_list as __builtin_va_list for GCC 3.x. Change stdarg macros
appropriately.  (this is committed from a system run a kernel and userland
built with these changes).
2003-09-24 02:39:56 +00:00
thorpej
544359b9a2 - Make CCB allocation slightly more efficient by changing how the
CCB is returned to the caller.
- Make code paths that can use twe_ccb_alloc_wait() use it, and assert
  that a CCB is always returned from that function.
- Assert that a CCB is always returned when allocating the reserved CCB
  for an AEN fetch.
2003-09-23 23:50:04 +00:00
thorpej
765ddabe83 Add a comment clarifying why we clear TWEF_AEN in twe_reset() now. 2003-09-23 23:10:53 +00:00
thorpej
1cad401c12 Separate the AEN fetching path into its own special path that uses the
reserved CCB.  This means that all remaining callers of twe_param_get*()
are called from a valid thread context, and thus have no need to use a
reserved CCB.  This will allow for further cleanup in a future commit.
2003-09-23 23:08:54 +00:00
mycroft
ab223e99bc Allow a device to reject CLEAR_FEATURE ENDPOINT_STALL (with a STALL) -- the
assumption being that the device will never use a STALL of a non-control pipe,
I guess.
2003-09-23 21:44:42 +00:00
mycroft
df8e298ddb Small changes -- if your controller clears DRV_BUSY when recalibrate completes,
you get lucky and the probe is faster.  A more complete fix will require making
the probe use interrupts, since there is no reliable way to poll.
2003-09-23 21:36:07 +00:00
martin
1f68fd5144 Same treatment as libc/hash/sha1.c: ifdef the sparc64 compiler bug
workaround for old gcc only.
2003-09-23 20:00:43 +00:00
martin
d505bdda83 Fix rx buffer size bitmask, do not explicitly set burst length and use 1536
bytes buffers, so this driver can finally cope with full size ethernet
packets. From Peter Bex.
2003-09-23 19:37:39 +00:00
cl
cf9f62a8e7 catch up with sys___sigaction14 compat_16 rename 2003-09-23 18:54:24 +00:00
cl
0dd1fb3d17 regen 2003-09-23 18:32:12 +00:00
cl
7e40a36c7f catch up with sys___sigaction14 compat_16 rename 2003-09-23 18:31:03 +00:00
nathanw
b1a13994b7 When the syscall was made a compat syscall and the function name
changed to compat_16_sys___sigaction14, the name of the _args
structure chaged as well.
2003-09-23 17:59:48 +00:00
thorpej
f0d728e698 Avoid a type punning warning in the MALLOC_DEBUG case. 2003-09-23 16:36:59 +00:00
bouyer
5a2aac1c7c Fix a typo that prevented pre-ata drives from working since 1999. 2003-09-23 16:27:10 +00:00
dyoung
847c5ca1c6 More changes following this pattern:
#ifdef __FreeBSD__
	/* FreeBSD-ism */
#else
	/* NetBSD-ism */
#endif
2003-09-23 16:03:46 +00:00
dyoung
20a915d375 Put FreeBSDisms in #ifdef __FreeBSD__, and add the equivalent
NetBSDisms.
2003-09-23 16:01:21 +00:00
dyoung
608fc21500 Make ieee80211_unref_node compile.
#ifdef __FreeBSD__ a lot of lines, and put the NetBSDisms into the #else
half.

Add ieee80211_node_{dec,inc}ref to ieee80211_node.h.
2003-09-23 15:59:09 +00:00
dyoung
1c4de65baa Make if_printf more nearly match FreeBSD's, and make it compile.
Remove ieee80211_node_{dec,inc}ref (they go to ieee80211_node.h).
2003-09-23 15:57:25 +00:00
shige
dc98452dce Copy PCI codes for IBM405GPx from evbppc/walnut/pci/{pchb.c,pci_machdep.c}. 2003-09-23 15:30:22 +00:00
shige
03467d74b5 Add devices info for IBM405GPR. 2003-09-23 15:26:46 +00:00
shige
91be153592 Add global cpu_model variable. 2003-09-23 15:25:26 +00:00
shige
e20e959b37 Copy IBM4xxGPx specific autoconf code from evbppc/walnut/autoconf.c. 2003-09-23 15:24:15 +00:00
shige
a8dd07e005 Copy IBM4XX OpenBIOS locore.S from evbppc/walnut. 2003-09-23 15:21:58 +00:00
shige
fc29eb23bf Add some PCI definitions listed in evbppc/include/walnut.h. 2003-09-23 15:19:05 +00:00
shige
2977d5a89a Add IBM40x specific machdep functions. 2003-09-23 15:14:02 +00:00
shige
87f629a7b8 Add IBM405GPr PVR. 2003-09-23 15:10:05 +00:00
shige
94959351e8 Add IBM405GPx specific kernel configuration file. 2003-09-23 15:06:40 +00:00
shige
ee990c494d Move todclock driver from evbppc/walnut/dev. 2003-09-23 15:01:50 +00:00
shige
ff6df75f63 Add on-chip IIC driver.
Add some definitions for IIC driver.
2003-09-23 14:56:08 +00:00
shige
9c7b98f8ce Add new evbppc port.
This port is for OpenBlockS266.
OpenBlockS266: IBM405GPr OpenBIOS.
X1226 is a rtc chip connected with IIC bus.
2003-09-23 14:45:12 +00:00
christos
643e2f262c Regen 2003-09-23 14:34:38 +00:00
christos
b601ca6ba8 __sigaction14 should have been COMPAT_16 a while ago. GC it now. 2003-09-23 14:34:07 +00:00
christos
24915aa1a2 Regen. 2003-09-23 14:33:34 +00:00
christos
cf3a45c8c1 Make this compile and link properly. 2003-09-23 14:33:24 +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
cl
3337c2e727 move #defines back to frame.h 2003-09-23 11:33:50 +00:00
scw
6b19830ebb Tweak register usage to shave a couple of instructions off
the Xscale code.
2003-09-23 10:01:36 +00:00
mycroft
f9d629fb93 Fix more probe delay and/or failure problems:
1) Don't wait for DRQ on an IDENTIFY command -- if it's not set when we see
   BSY clear, abort the command and ignore the drive.  (Do this by testing
   for DRQ in the read/write cases in __wdccommand_intr().)
2) Don't wait for DRQ to deassert when we finish an IDENTIFY (or any other
   non-block command that reads data) -- we don't do this for block I/O, and
   empirically it doesn't clear on my CF cards at all, causing a pointless 1s
   delay.
3) Add comments to some of the delay()s, and add missing ones in wdcreset()
   and the WDCC_RECAL in the so-called "pre-ATA" probe.
4) Slightly simplify the reset sequence -- we were doing an extra I/O.
5) Modify the register writability test to make sure that registers are not
   overlapped -- this can happen in some weird cases with a missing device 1.
6) Check the error register value after the reset -- if it's not 01h or 81h,
   as appropriate (see ATA spec), punt.
Tested with a number of ATA-only, ATAPI-only, mixed ATA-ATAPI, CF, and IDE
disk configurations.

Also remove the SINGLE_DRIVE nonsense again.
2003-09-23 09:19:22 +00:00
simonb
5a696d0850 Fix uninitialised variable introduced with previous change.
Patch from mlelstv.
2003-09-23 09:16:07 +00:00
mycroft
07da406c30 GC a structure element. 2003-09-23 09:11:43 +00:00
yamt
67a5559821 cleanup IN_ADIROP/VDIROP handling a little. 2003-09-23 05:26:49 +00:00
yamt
e2fbe9d54d remove unnecessary externs of lfs_do_flush. 2003-09-23 05:26:12 +00:00
skd
f3de6832d9 Additional definitions as per SATA specifications.
Approved by Manuel Bouyer.
2003-09-23 03:55:59 +00:00
itojun
ec5e739b46 extra blank line 2003-09-23 00:03:05 +00:00
cl
c49d4a7e55 pass signo to fownsignal #ifdef ALTQ 2003-09-22 20:49:39 +00:00
thorpej
ddfcdc4f1f Add support for dynamically attaching and detaching RAID array units. 2003-09-22 18:31:10 +00:00
jandberg
bc88a03488 regen after wsmouse addition 2003-09-22 18:29:05 +00:00
jandberg
05be5081d9 added wsmouse 2003-09-22 18:23:01 +00:00
jandberg
448afe509a add wscons support to amiga mouse 2003-09-22 18:17:30 +00:00
tsutsui
75ae5bc4d8 Count clock interrupts.
clock_intr() functions on sun3 are called directly without dispatchers.

XXX should use evcnt(9)?
2003-09-22 17:53:46 +00:00
matt
8012bf2926 Make COMPAT_xx imply all later COMPAT_yy. (COMPAT_09 implies all whereas
COMPAT_14 just implies COMPAT_1[56]).  This means COMPAT_xy implies NetBSD
compatibility for NetBSD x.y OR LATER.
2003-09-22 17:26:14 +00:00
tsutsui
e1e026b917 KNF a bit. 2003-09-22 17:21:51 +00:00
tsutsui
da943b106a Remove #ifdef _KERNEL inside #ifdef _KERNEL. 2003-09-22 17:11:46 +00:00
tsutsui
4c224a510b - replace a magic number with macro
- some KNF
2003-09-22 16:54:14 +00:00
cl
95bf6d89d8 SA_SIGINFO support for m68k (compat svr4) 2003-09-22 14:47:35 +00:00
cl
11af0a3c8d SA_SIGINFO support for m68k (emul linux) 2003-09-22 14:36:42 +00:00
cl
6821f967f5 SA_SIGINFO support for m68k (compat hpux) 2003-09-22 14:35:58 +00:00
cl
bf9728e0db SA_SIGINFO support for m68k (compat sunos) 2003-09-22 14:34:57 +00:00
cl
9b18b6fa61 regen 2003-09-22 14:32:15 +00:00
cl
a580f34fa7 SA_SIGINFO support for m68k (compat aoutm68k) 2003-09-22 14:31:27 +00:00
cl
4169237230 SA_SIGINFO support for m68k (port specific changes) 2003-09-22 14:26:57 +00:00
cl
9289d63920 SA_SIGINFO support for m68k 2003-09-22 14:18:33 +00:00
cl
20dfd3bdde regen 2003-09-22 14:12:29 +00:00
cl
a4186d3dd8 add COMPAT_15/COMPAT_16 2003-09-22 14:11:15 +00:00
christos
6edc0e184e - pass signo to fownsignal [ok by jd]
- make urg signal handling use fownsignal
- remove out of band detection in sowakeup
2003-09-22 12:59:55 +00:00
itojun
cd71ebe2f7 mark security policy that should persist in the system "persistent".
this should prevent recently-reported kernel panic when "spdflush" is issued.
2003-09-22 04:47:43 +00:00
jdolecek
1fda9a87e7 kill unused variable in #ifdef ALTQ part, to make this compile
with ALTQ configured in
2003-09-22 03:29:34 +00:00
thorpej
2f8976d430 Add TWEIO_{ADD,DEL}_UNIT ioctls (used by 3ware management tools). From
FreeBSD.
2003-09-22 01:44:57 +00:00
thorpej
b2b05806b3 Add a few additional control bits and opcodes. From FreeBSD. 2003-09-22 01:28:25 +00:00
thorpej
0448a55234 Improve AEN handling:
- Make AENs use the generic code table stuff.
- Add a few more AEN codes (from FreeBSD).
- Correct the context of a few AEN codes (some were listed as
  "unit context" when they're really "port context").
- Add a queue of AENs that management tools in userspace can poll
  (from FreeBSD).
2003-09-22 01:13:02 +00:00
lha
5b649f6771 Implement nanouptime as a function to avoid 'dereferencing type-punned pointer'.
No token after #endif
2003-09-21 20:56:01 +00:00
thorpej
4431e5d2ea Fetch info about the drives during attach, and inject that info
into the msgbuf using aprint_verbose().
2003-09-21 19:46:44 +00:00
matt
1df05a73fe Fix GCC 3.3.1 nits. 2003-09-21 19:33:13 +00:00
thorpej
a721d80bc9 Report the status of the logical drive (normal, degraded, etc.) at
attach time.
2003-09-21 19:33:10 +00:00
matt
6bf111a80e Fix GCC 3.3.1 nits. 2003-09-21 19:32:37 +00:00
jdolecek
bc83b2f421 make compile after last change (!) 2003-09-21 19:29:10 +00:00
thorpej
21809f0c30 Expose the "param get" functions. 2003-09-21 19:27:27 +00:00
thorpej
291d256789 - Record more information about the array unit, including array
type and stripe depth.
- Report array type and stripe depth when attaching the logical drive.
2003-09-21 19:20:18 +00:00
jdolecek
7cea8a1389 cleanup & uniform descriptor owner handling:
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals
  the owner of descriptor, according to appropriate sematics
  of TIOCSPGRP/FIOSETOWN/SIOCSPGRP/TIOCGPGRP/FIOGETOWN/SIOCGPGRP ioctl; use
  these routines instead of custom code where appropriate
* make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN
  properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP
  in sys_ioctl() & sys_fcntl()
* also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and
  pass the ioctls down to soo_ioctl() as any other ioctl

change discussed on tech-kern@
2003-09-21 19:16:48 +00:00
thorpej
4cf2e784e2 Add some helper routines to fetch 1, 2, and 4 byte parameter values.
Modeled after code in FreeBSD.
2003-09-21 19:01:05 +00:00
manu
9a42b7a993 Do much more sanity checks when handling entries in the sc_scr array
of struct wsdisplay_softc. Unused entries are NULL, and there were
a lot of places where we did not checked that the caller did not
requested an operation on a NULL entry.

While we are there, one bit of KNFification, and make return code more
consistent by always returning the same code (EINVAL) when a screen
number higer than the maximum is requested.
2003-09-21 18:47:59 +00:00
manu
b01f5cf127 Extra sanity checks: all char devices won't have an associated tty. 2003-09-21 18:40:38 +00:00
thorpej
6c5904f215 Add some additional code -> description tables, and add a generic
routine to translate code -> description.  AENs will be converted
to this mechanism in a future commit.

Partially from FreeBSD.
2003-09-21 18:35:31 +00:00
christos
9b18cdecf8 Now that we have siginfo, use it, instead of pretending to have one. 2003-09-21 17:42:23 +00:00
matt
a57c218722 Need to remove .comment too. 2003-09-21 15:21:03 +00:00
skd
e7e68c0c6d Backed out single step emulation.
Approved by thorpej@netbsd.org.
2003-09-21 15:14:51 +00:00
matt
b9d20d131e Fix GCC 3.3.1 nits 2003-09-21 15:12:16 +00:00
matt
c280e763ef Adapt to new wdcattach calling conventions. 2003-09-21 15:11:04 +00:00
matt
749adf24a9 Fix GCC 3.3.1 nits. 2003-09-21 15:10:05 +00:00
cl
cebad0b338 make compile 2003-09-21 14:41:33 +00:00
nisimura
1e9ce6571c Regen. 2003-09-21 14:27:40 +00:00
nisimura
cfb11c4317 Redo, again. 2003-09-21 14:23:21 +00:00