Commit Graph

17253 Commits

Author SHA1 Message Date
marcel
7f43cbd8e2 Now that userland including modules don't use the osig* syscalls,
make them of type COMPAT.
1999-10-12 09:29:53 +00:00
brian
0d3d335feb Blank out the twiddly thing when outputting the ``BTX loader'' message. 1999-10-12 06:57:26 +00:00
bde
63d8df6fc6 Unremove used includes.
Bugs in test coverage should be fixed before removing any includes.  LINT
should be configured for full profiling support.
1999-10-12 02:54:23 +00:00
msmith
3e234b2007 Remember folks, it's:
1) test
 2) commit
 3) test again

Guess who forgot 1 and 3?  8)
1999-10-12 02:23:14 +00:00
luoqi
4081a7f93f Add a per-signal flag to mark handlers registered with osigaction, so we
can provide the correct context to each signal handler.

Fix broken sigsuspend(): don't use p_oldsigmask as a flag, use SAS_OLDMASK
as we did before the linuxthreads support merge (submitted by bde).

Move ps_sigstk from to p_sigacts to the main proc structure since signal
stack should not be shared among threads.

Move SAS_OLDMASK and SAS_ALTSTACK flags from sigacts::ps_flags to proc::p_flag.
Move PS_NOCLDSTOP and PS_NOCLDWAIT flags from proc::p_flag to procsig::ps_flag.

Reviewed by:	marcel, jdp, bde
1999-10-11 20:33:17 +00:00
mjacob
41df27ce2b remove unnecessary includes 1999-10-11 19:30:59 +00:00
phk
6576d17ff5 remove unused #includes 1999-10-11 19:18:43 +00:00
phk
b2a6ff7eff remove unused #include 1999-10-11 19:16:54 +00:00
phk
9e59f95e78 remove unused #include, add $FreeBSD$ 1999-10-11 19:14:37 +00:00
phk
8898c19e84 remove unused #includes. 1999-10-11 19:12:30 +00:00
imp
9d3a8bb755 Kill unused includes 1999-10-11 19:05:21 +00:00
imp
9aa7e2f357 Hid silly unknown board types message behind if (bootverbose). This
appears to have been lost sometime since joerge made this same fix in
1.47.
1999-10-11 18:53:59 +00:00
peter
2a25f7cd42 Oh foo. I got carried away. :-( "joy.h" is used to size an array.
(Incidently, there is no bounds checking...)
1999-10-11 16:09:00 +00:00
peter
5f2dea3689 Trim unused options (or #ifdef for undoc options).
Submitted by:	phk
1999-10-11 15:19:12 +00:00
peter
9f5ddae51f Clean up some cruft. We don't run <= 4.3 binaries on hp300 or luna68k
arches using owait(2).
1999-10-11 15:15:45 +00:00
steve
43b9d2d425 Add support for the USRobotics Courier V.Everything (USR0101) modem.
Submitted by:	Robert Blayzor <robert@superior.net>
1999-10-11 15:06:14 +00:00
peter
a88fb949e0 Trim some unused #includes
Submitted by:	phk
1999-10-11 15:00:09 +00:00
peter
0aecda7a3b Zap unneeded #include (found by phk)
Remove useless #include "joy.h"; #if NJOY > 0 - this is always true
if it's being compiled. config arranges this.
1999-10-11 14:53:46 +00:00
peter
9bf32518bb Zap unneeded #includes
Submitted by:	phk
1999-10-11 14:50:03 +00:00
peter
b2ad3d87b2 Delete unneeded #include
Submitted by:	 phk
1999-10-11 14:42:33 +00:00
sos
d638c2735d Fix a bug in the isa attach code which would panic isa systems. 1999-10-11 11:04:43 +00:00
newton
9cc8b0ae11 Replace cdevsw_add() and friends with make_dev()/remove_dev(). 1999-10-10 22:57:40 +00:00
phk
c35b32cea0 I don't know if this is the correct fix, but my kernel can compile with it. 1999-10-10 20:32:48 +00:00
jhay
33683db07a Update the comments to say we are at draft 05 now. 1999-10-10 18:41:42 +00:00
sos
c4dd81ab87 Remove unused include files.
Submitted by: phk
1999-10-10 18:08:40 +00:00
peter
03cb6892a2 #ifdef PPS_SYNC around "kapi" declaration to fix a -Wunused warning. 1999-10-10 16:18:36 +00:00
marcel
20c1d44660 Use the proper #ifdef around union sigval and siginfo_t. This fixes
the breakage of POSIX sources (such as XFree86).

Reviewed by: bde
1999-10-10 15:52:33 +00:00
peter
aaac0ad22e Put IPFILTER_LKM into opt_ipfilter.h and delete the other two IPFILTER
options that previously went there.
1999-10-10 15:24:04 +00:00
peter
29ed1e429b Don't try and build IPFILTER in LINT. 1999-10-10 15:20:06 +00:00
peter
99a7a60f87 Remove ipfilter files - the hooks remain in ip_input.c and ip_output.c 1999-10-10 15:17:28 +00:00
peter
1532f574b1 Nuke the old antique copy of ipfilter from the tree. This is old enough
to be dangerous.  It will better serve us as a port building a KLD,
ala SKIP.

The hooks are staying although it would be better to port and use
the NetBSD pfil interface rather than have custom hooks.
1999-10-10 15:09:59 +00:00
phk
c75e0975fe Retire old and unused #includes. 1999-10-10 12:02:36 +00:00
marcel
c7025812f2 Avoid using the osig* syscalls. 1999-10-10 09:14:31 +00:00
green
044650e9c9 Modify to work with the new sbreserve(). 1999-10-09 23:24:59 +00:00
phk
eb520fd28f Remove obsolete include file. 1999-10-09 23:17:04 +00:00
phk
546f13f6b3 Remove another obsolete include file. 1999-10-09 23:08:06 +00:00
green
808cf376d5 Implement RLIMIT_SBSIZE in the kernel. This is a per-uid sockbuf total
usage limit.
1999-10-09 20:42:17 +00:00
phk
3b1e8784ff pnpparse.c is needed for kernel builds. 1999-10-09 20:40:07 +00:00
sos
3830a85c68 Add the options for the ATA driver. 1999-10-09 20:22:01 +00:00
sos
5002ac82db Add support for the HPT366 chip, this is used on the Abit boards and
their HotRod controller and on SIIG PCI ultra DMA controller. These
changes also made lots of the Promise code go away, its all much more
generic this way.

Get rid of atapi_immed_cmd, instead use the queue to move atapi commands
from interrupt context if nessesary, the entire atapi layer has
gotten an overhaul.

Lots of fixes to utililize the new features in subr_disk.c etc, and
get rid of the last biots of softc arrays in the drivers, the
only one left is atadevices which cannot easily go away (yet).

Use our own malloc names, its a lot easier to track memory usage this way.

General cleanup overall.
1999-10-09 19:57:13 +00:00
phk
6abc4460f2 Give physio a makeover.
- Let physio take read/write compatible args and have it use uio->uio_rw
  to determine the direction.

- physread/physwrite are now #defines for physio

- Remove the inversly named minphys(), dev->si_iosize_max takes over.

- Physio() always uses pbufs.

- Fix the check for non page-aligned transfers, now only unaligned
  transfers larger than (MAXPHYS - PAGE_SIZE) get fragmented (only
  interesting for tapes using max blocksize).

- General wash-and-clean of code.

Constructive input from: bde
1999-10-09 19:44:32 +00:00
peter
5b05177f93 Add the 16550 programming interface code for PCIS_SIMPLECOMM_UART. 1999-10-09 16:00:56 +00:00
jhay
a1ae6f4cf2 Update the PPSAPI to draft-mogul-pps-api-05.txt which is the latest.
NOTE: This will break building ntpd until ntpd has been upgraded to also
support draft 05. People that want to build ntpd in the meantime can
get patches from me.
1999-10-09 14:49:56 +00:00
phk
64fa4dba54 A leftover include file from pre-CAM days gets retired... 1999-10-09 13:25:30 +00:00
dfr
1d3c40efb0 Factor out the PnP resource parser so that it can be re-used by pnpbios
and acpi.

Reviewed by: msmith
1999-10-09 13:11:46 +00:00
dfr
d2308f5b2f Fix build break.
Submitted by: Thomas Valentino Crimi <tcrimi+@andrew.cmu.edu>
1999-10-09 12:30:18 +00:00
dfr
d0b3e151f4 Add net device to netboot. 1999-10-09 12:29:42 +00:00
mdodd
db2544af13 Remove old copies. These files now live in src/sys/dev/buslogic 1999-10-09 06:28:18 +00:00
mdodd
253288d021 - Point the right bits at the new location of the bus front ends.
The 'bt' SCSI driver now lives in sys/dev/buslogic.

- Correct a few comments.
1999-10-09 06:25:18 +00:00
green
0eda6a7caf Add a newline to "WARNING: %s maxphys = 0 ??" so it doesn't trip up
syslogd.  Note of course it's simply much more polite and correct, too :)
1999-10-09 05:17:05 +00:00
mdodd
ca9b79a284 - Restore correct operation of bt_mca.
- Work around a problem not yet solved in the tree (but solved in mine.)

	device_get_ivars() should never be cast to a struct resource_list *
	The solution, under review, involves the creation of a
	device_get_resource_list() function.  More later.
1999-10-09 04:02:02 +00:00
imp
0c098cc0a8 Make interrupts shareable with RF_SHAREABLE. This is untested, but
it compiles and should just work.
1999-10-09 03:52:07 +00:00
mdodd
7c9a0b056f Remove these files as they now live in sys/dev/dpt/ 1999-10-09 03:51:18 +00:00
imp
1f47ab5031 Allow interrupt sharing by allocating the interrupt RF_SHAREABLE.
This allows newpcm to grok my es1370 based card, which shared
interrupts with the ethernet card.
1999-10-09 03:50:27 +00:00
imp
24f6f0cd4b Call DEVICE_IDENIFY in bus_generic_driver_added to allow devices to
add nodes to the tree.  Also, default to bus_generic_driver_added for
the BUS_DRIVER_ADDED method.

This allows newbus busses to be kldload'd.

Reviewed by: dfr
1999-10-09 03:48:18 +00:00
mdodd
f1b8b56533 Switch over to the new location in sys/dev/dpt.
Fix a forgotten #include
1999-10-09 03:46:28 +00:00
mdodd
9f4b999ce6 Remove the DPT EISA driver entry. 1999-10-09 03:41:07 +00:00
mdodd
95c881331f - Implement a simple PIO driven function for retreiving the onboard
configuration information from a DPT card at a given port.

  This is needed by the ISA bus front end (still to come) and the EISA
  bus front end (which hasn't ever worked).

- Blow away dpt_eisa.h as the information it contains does not justify
  an additional file.

- Convert dpt_eisa.c to use the onboard config instead of trying to
  read the EISA configuration registers.
1999-10-09 03:39:47 +00:00
phk
0001e9b54a Fix a panic(8) implementation:
hexdump -C < /dev/drum
by simply refusing to do I/O from userland.
a panic.  I'm not sure we even need /dev/drum anymore, it seems
to have been broken for a long time thi
1999-10-08 19:10:18 +00:00
phk
d9285d7ecc Add a couple of strategic KASSERTs 1999-10-08 19:07:23 +00:00
peter
e382956434 Zap cdevsw_add() - the make_dev's take care of it and don't use
the cdevsw[] array.
1999-10-08 18:27:20 +00:00
phk
b37c3edc58 Add back sysctl vfs.enable_userblk_io 1999-10-08 18:25:19 +00:00
n_hibma
ac2e9ad7af perl5 -> perl
(This was breaking world.)

Submitted by:	Marcel Molenaar, green
1999-10-08 14:29:12 +00:00
green
5edbcf3f6d perl5 -> perl
(This was breaking world.)
1999-10-08 14:09:17 +00:00
mdodd
c44b3bc53f Sync with recent changes to the MCA bus code. Resource IVARS went
away.
1999-10-08 13:02:34 +00:00
roger
cde8ecb8a0 No longer required, following the move of the driver to /sys/dev/bktr 1999-10-08 10:19:49 +00:00
marcel
8084a846fc Synchronize with i386 rev 1.367 1999-10-08 09:20:56 +00:00
dfr
6506143079 Don't include <machine/frame.h>. 1999-10-08 09:09:13 +00:00
n_hibma
42460a2a80 Change the SOURCE line to include ${CURDIR}
Submitted by:	Guy Helmer <ghelmer@scl.ameslab.gov>
1999-10-08 07:41:17 +00:00
n_hibma
fa1d1bb3c2 Move the include of device.h into the NetBSD specific section.
Submitted by:	Guy Helmer <ghelmer@scl.ameslab.gov>
1999-10-08 07:38:11 +00:00
peter
cb238f57bb Zap these defucnt files before anyone things about trying to merge them. 1999-10-08 06:21:38 +00:00
phk
0ba7053691 Fix amr.c line, a '.' had become a '/'. 1999-10-08 05:43:33 +00:00
n_hibma
917eae0b2c Fix typo 1999-10-07 21:25:04 +00:00
n_hibma
2910e6792b The Makefiles for the modules for the USB device drivers.
Finally.
1999-10-07 21:23:08 +00:00
n_hibma
22d4dba211 Make the umodem stub compile 1999-10-07 21:09:08 +00:00
n_hibma
27e842b582 Remove a debugging printf. 1999-10-07 21:08:29 +00:00
n_hibma
8d09ab9b64 Add make_dev and remove_dev. 1999-10-07 21:06:52 +00:00
n_hibma
d65bb33964 priorities weren't correct (old version). 1999-10-07 20:58:43 +00:00
n_hibma
8e903977d2 Major synchronisation with the NetBSD USB stack:
- Some cleanup and improvements in the uhci and ohci drivers
- Support for plugging and unplugging devices improved
- Now available is bulk transport over OHCI controllers
- Resume and suspend have been temporarily been disabled again.  Proper
  support for it is available in the uhci.c and ohci.c files but I have
  not yet spent the brain cycles to use it.
- OpenBSD now uses the USB stack as well
- Add FreeBSD tags
1999-10-07 19:26:38 +00:00
n_hibma
3cab65e54a remove the use of uhci_reset to wake up the controller after
resume/suspend (->resume is broken again, will be fixed properly ASAP)

style fixes
1999-10-07 18:56:10 +00:00
n_hibma
ea7b2011ae Remove last bits and pieces of NetBSD porting.
Remove the use of ukbd_disconnect and replace it with direct
calls to disable.
Change printf to DPRINTF
Remove the use of usbd_lock, change it to splusb()/splx()
1999-10-07 18:53:08 +00:00
n_hibma
ae3f3867af Remove the last bits and pieces left over from porting the driver
from NetBSD.
1999-10-07 18:50:46 +00:00
marcel
b2ac4b30af Simplification of the signal trampoline and other cleanups.
o  Remove unused defines from genassym.c that were needed
   by the trampoline.
o  Add load_gs_param function to support.s that catches
   a fault when %gs is loaded with an invalid descriptor.
   The function returns EFAULT in that case.
o  Remove struct trapframe from mcontext_t and replace it
   with the list of registers.
o  Modify sendsig and sigreturn accordingly.

This commit contains a patch by bde.

Reviewed by: luoqi, jdp
1999-10-07 12:40:34 +00:00
bp
513a2fcbac Put back cn_namelen initialization. Removed by phk in rev 1.2. 1999-10-07 12:18:12 +00:00
marcel
2659740aeb I forgot this one :-(
ucontext_t is now actually compatible with struct sigcontext.

Discovered by: jdp
1999-10-07 09:03:17 +00:00
msmith
5eea754b3b Connect the 'amr' and 'mlx' drivers. They can be built as modules or
integrated into a static kernel as the user wishes.
1999-10-07 02:24:22 +00:00
msmith
4a8bb09166 This is a driver for the AMI MegaRAID family of controllers. It all of
the AMI PCI controllers using the 8LD firmware interface (40LD firmware
will be supported as soon as I have hardware to test with).

These controllers are rebadged by Dell as the PERC, as well as by HP
and possibly other vendors.
1999-10-07 02:23:12 +00:00
msmith
2eb70f9ebc This is a driver for the Mylex DAC960 family of integrated RAID
controllers.  It currently supports the P, PL, PD and PU variants,
with more to be supported shortly.
1999-10-07 02:20:32 +00:00
msmith
b40c6bc896 Be much more selective in claiming devices that might be IDE controllers.
The old algorithm was:

 if class == storage and subclass != SCSI device must be IDE

This results in claiming 'raid' and 'other' storage devices as IDE,
which is typically not the case.

Reviewed by:	sos
1999-10-07 02:17:21 +00:00
msmith
355d8267d7 Re-synchronise the alpha major numbers list with the i386 list.
Add the Mylex DAC960 and AMI MegaRAID numbers.
1999-10-07 02:15:10 +00:00
jhay
3f1f6261fd Swap IOC_OUT and IOC_IN for the SETDIR macro. The linux ioctl read and
write bits are swapped.

Reviewed by:	luoqi, marcel
1999-10-06 19:51:37 +00:00
yokota
ce9e08a731 - Remove cdevsw_add(). 1999-10-06 13:03:09 +00:00
yokota
603ad018f1 - Remove cdevsw_add().
- Call ttyregister() and make_dev() to register virtual terminals.
- Set nottystop to tp->t_stop.
1999-10-06 13:01:12 +00:00
phk
4a51915378 Add $FreeBSD$.
Remove some minphys related cruft.
1999-10-06 07:26:48 +00:00
n_hibma
9008e04e4d Removal of sys/device.h
- Move intrhook stuff into kernel.h
- Remove all occurrences of #device <device.h>
- Add kernel.h were necessary (nowhere)
- delete device.h

This file contained the structures for cfdata (old style config) and is no
longer used. It was included by most drivers.

It confuses the remote debugger as the definition of 'struct device' in
device.h is found before the one in bus_private.h.
1999-10-05 21:19:41 +00:00
n_hibma
1ea1e871fd Attempt at cleaning up the (unused part of) support for TurboChannel to
remove the need for device.h.
1999-10-05 20:46:58 +00:00
n_hibma
e4944c58c7 Add SLIST_HEAD_INITIALIZER for static initialisation of SLISTs. 1999-10-05 20:35:32 +00:00
n_hibma
7488a249ab Check whether init and term are actually given 1999-10-05 20:32:53 +00:00
n_hibma
fcc37da7b5 Print more verbose debugging output
Clean up computation of parameters.
1999-10-05 20:29:00 +00:00
roger
1f269e799e Found and fixed FM radio mute bug
Submitted by:	Thomas Runge <runge@rostock.zgdv.de>
1999-10-05 01:49:43 +00:00