Commit Graph

61 Commits

Author SHA1 Message Date
apb 96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
skrll 6a21cfdeb4 ANSIfy 2008-08-28 08:25:46 +00:00
mjf 9cc4809adb Fix build. 2008-06-14 21:27:37 +00:00
cegger 28f4ebad5e use device_lookup_private to get softc 2008-06-13 09:41:15 +00:00
skrll 770e609eb3 Add support for NCR 53C720 found on various machines/attachments.
From OpenBSD (Mark Kettenis)
2008-03-30 12:32:13 +00:00
skrll c36ab687e9 Tidyup the attachment of various devices in the same way as OpenBSD and
use the same name.

Must have been funny to someone.
2008-03-29 15:59:25 +00:00
cube 607ead0ef4 Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend).  Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
ad 065b6ba2fb lockmgr -> mutex 2007-12-06 17:00:31 +00:00
ad dc26833bb6 - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
garbled d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
dsl 3a1264a004 Add '0' to three more random callout_init() calls. 2007-07-11 21:57:28 +00:00
skrll fc4b2491b2 caddr_t fallout 2007-03-07 11:29:46 +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
elad 65792a0340 More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
skrll 47ff53e648 Allow kernels to compile without USELEDS.
From Sergey Svishchev on port-hp700
2006-09-22 14:08:03 +00:00
skrll 05f8bc59e4 Timecounters for hp700 from Garrett. Tested by me. 2006-09-16 15:43:24 +00:00
skrll 73f2f65977 Convert hp700 to __HAVE_GENERIC_TODR
Move the tod routines to dev/pdc.c as suggested by Izumi Tsutsui - we
access the tod device via the pdc.

Tested on a hp712/60 with a flat battery.
2006-09-15 07:51:17 +00:00
ad f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
gdamore 34537908ab Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@.  Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
elad 8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
perry 5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
drochner e224b50008 some autoconf cleanup fallout, leftover of last week, mostly from
Havard Eidnes
2005-07-04 15:18:17 +00:00
chs b25ecfbe53 only lvalues can be incremented. found by gcc4. 2005-05-20 15:09:45 +00:00
chs b797340b41 one more revision that uses the pagezero info. 2005-05-07 16:57:33 +00:00
chs 2cb0f8ab7c regen 2005-05-01 19:03:39 +00:00
chs 1c6c3c528a fix various entries. 2005-05-01 19:02:59 +00:00
jkunz 3c88ecfad5 Add two more revisions that use the pagezero info. 2005-01-28 17:38:49 +00:00
jkunz a4d6ea5ca9 Implement powerd(8) interface via sysmon(9) for power switch, controllable by sysctl(8). 2005-01-28 17:38:49 +00:00
chs 7cd6a571a5 when determining the rom address, use only the IODC model and revision info,
not the unit number (from jkunz).  add two more revisions that use the
pagezero info (one from openbsd, one from me).
2005-01-19 03:30:21 +00:00
chs 0ded74691b for drivers that support only one instance, use a global variable to ensure
that only one instance is configured rather than requiring that its
unit number be zero.
2004-12-13 02:14:13 +00:00
chs b242249052 add driver for harmony audio. from openbsd, adapted for netbsd by me. 2004-09-19 23:03:34 +00:00
chs b42337cb2a fix optimized compilation. 2004-09-19 23:00:29 +00:00
drochner 46289e1fef Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.
2004-08-30 15:05:15 +00:00
jkunz 70b14a8138 Add support for shareing PCI interrupts and PCI-PCI bridges. 2004-08-26 16:52:27 +00:00
jkunz 1035c6af08 Import STI wscons(4) driver from OpenBSD and add new driver for PS/2
keyboard / mouse pots of LASI.
2004-08-26 16:48:06 +00:00
chs 5dd3057b5c replace some spinlock/tsleep code with a lockmgr lock. 2004-08-07 21:40:47 +00:00
jkunz 4c72b79518 Import PCI support from OpenBSD and update GENERIC config for PCI devices. 2004-07-29 19:10:23 +00:00
jkunz 461314c36f Bring the WAX GSC to GSC bus adapter + interrupt controller and the
GSC bus inside the WAX chip to live with some bits from lasi.c and
the OpenBSD wax.c.
2004-07-25 21:52:56 +00:00
chs a9402ad488 convert another %b to bitmask_snprintf(). 2004-06-11 13:59:40 +00:00
jmc 43bf89bfc6 Fixes from PR#23177. Various lint/logic fixes:
Fix some non-initialized variables
close the output files when done
Redo the printing for RCS strings so they don't expand in the awk script too
Do proper tests for variables existance before accessing

Verified output from all scripts is identical to original versions
2003-12-15 07:32:20 +00:00
chs 06abe054f9 bcopy -> memcpy 2003-11-28 19:03:03 +00:00
chs 36ff370721 de-__P, remove register, ansify. 2003-11-23 17:09:29 +00:00
chs 6cca27ceb0 add cnmagic support to pdc console driver. 2003-11-21 00:25:36 +00:00
chs 5dcca2231a restructure autoconf for [ABCDJK]-class machines. add phantomas bus.
adapted from OpenBSD by Jochen Kunz.
2003-11-18 04:04:42 +00:00
matt 1dc67abbb1 Compile at -O2. Fix various GCC3-isms
XXX mem.c still fails to assemble.
2003-11-01 18:23:37 +00:00
lukem 0c82163c78 __KERNEL_RCSID() 2003-07-15 02:29:24 +00:00
thorpej 72a2c87923 Use aprint_normal() for cfprint routines. 2003-01-01 01:34:45 +00:00
chs 737b05a938 make this compile again. 2002-11-17 17:10:46 +00:00
jdolecek e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00