Commit Graph

514 Commits

Author SHA1 Message Date
jklos
2d49a0d673 Patches from Björ Johannesson to fix DEC LK201 keyboards, this time
applied to correct tree.
2015-01-02 21:32:26 +00:00
dholland
f9228f4225 Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
2014-07-25 08:10:31 +00:00
dholland
a68f9396b6 Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
2014-03-16 05:20:22 +00:00
christos
188063a297 add __USE() for unused volatile variables, so that we generate the same code. 2013-11-04 16:53:09 +00:00
chs
bfba6f2a6d remove unused file. 2012-10-29 13:19:15 +00:00
chs
cbab9cadce split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
elad
0c9d8d15c9 Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
2012-03-13 18:40:26 +00:00
macallan
449763bb95 adjust wsfont_find() 2012-01-11 21:12:36 +00:00
jmcneill
8a962f23f2 Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

  Add MP locking to the audio drivers.

  Making the audio drivers MP safe is necessary before efforts
  can be made to make the VM system MP safe.

  The are two locks per device instance, an ISR lock and
  a character device lock. The ISR lock replaces calls to
  splaudio()/splx(), and will be held across calls to device
  methods which were called at splaudio() before (e.g.
  trigger_output). The character device lock is held across
  calls to nearly all of the methods, excluding some only
  used for initialization, e.g. get_locks.

Welcome to 5.99.57.
2011-11-23 23:07:28 +00:00
tsutsui
47f361e87a Split device_t/softc. pmax is tested on GXemul.
Compile test only for alpha and vax.

XXX: alpha/tc/tcasic.c calls tcattach() via config_found(9), but
XXX: pmax/tc/tcbus.c and vax/vsa/tc_vsbus.c calls tcattach() directly.
XXX: It looks horrible...
2011-06-04 01:57:34 +00:00
tsutsui
def926001b Split device_t/softc. pmax is tested on GXemul, compile test only for alpha. 2011-06-04 01:49:43 +00:00
tsutsui
595cbc6ae0 Split device_t/softc of am7930. No crash on TME and GXemul. 2011-06-04 01:27:57 +00:00
matt
045e8178c9 Add some missing includes of <sys/device.h> 2011-02-20 08:03:22 +00:00
uebayasi
8184d5dc03 Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.
2010-11-13 13:51:57 +00:00
uebayasi
8c8c5ca481 Include uvm/uvm.h to access UVM internal. 2010-11-06 10:58:12 +00:00
skrll
162991256a Spell immediately correctly. 2010-11-02 20:49:47 +00:00
tsutsui
a9edf8145e Clear RI_NO_AUTO in actual attach functions during autoconf(9)
for console devices that set the flag during consinit().
2010-05-15 08:53:26 +00:00
tsutsui
83f23f325b Set RI_NO_AUTO in ri_flg if *fb_common_init() is invoked from cnattach.
Untested.
2010-05-15 07:01:37 +00:00
tsutsui
ccc34e8d3e u_intNN_t -> uintNN_t 2009-08-22 17:38:06 +00:00
tsutsui
9f1ba3c402 MALLOC() -> malloc() 2009-08-22 17:36:12 +00:00
tsutsui
1a3bfa5100 Use volatile on device register access. 2009-08-20 12:55:26 +00:00
cegger
7cf2991222 struct device * -> device_t, no functional changes intended. 2009-05-12 14:38:26 +00:00
cegger
d16a259fe3 struct cfdata * -> cfdata_t, no functional changes intended. 2009-05-12 13:15:24 +00:00
tsutsui
d779b85d3e Remove extra whitespace added by a stupid tool.
XXX: more in src/sys/arch
2009-04-18 14:58:02 +00:00
cegger
e2cb85904d bcopy -> memcpy 2009-03-18 17:06:41 +00:00
cegger
c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
jnemeth
5d551dd0c7 add a comment explaining how to regenerate tcdevs.h and tcdevs_data.h 2009-01-21 14:34:18 +00:00
he
556cce3113 Follow up on the removal of MALLOC(), use malloc() instead. 2008-12-27 10:23:54 +00:00
cegger
9b87d582bd kill MALLOC and FREE macros. 2008-12-17 20:51:31 +00:00
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
gmcgarry
0de5da9678 Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
preprocessor macros.
2008-09-08 23:36:53 +00:00
joerg
85d049a760 - device/softc split
- make sfbplus at least compilable
2008-07-09 13:19:33 +00:00
tsutsui
d1336c20ea Use device_lookup_private() to get softc.
XXX this driver assumes cf_unit is always zero
2008-06-11 16:46:11 +00:00
nisimura
540dfe3a95 - assign 2 clause TNF license to the files cited as my ownership.
- abandon and remove my copyright notice from the three files were
copied in order to adapt HW I don't have; pvr.c, pm.c and stic.c
2008-05-26 10:31:22 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tsutsui
78a1d236b6 Split device_t/softc for MI ncr53c9x and some related devices,
with various cleanup.
2008-04-13 04:55:52 +00:00
cegger
395c8c3fd3 use aprint_*_dev and device_xname 2008-04-05 16:35:35 +00:00
tsutsui
d9941582bf Split device_t/softc for le(4) and variants and misc cosmetic changes. 2008-04-04 12:25:06 +00:00
tsutsui
02cb47cab2 Split softc and device_t for zsc(4) and its children.
XXX we should restructure MI APIs and make it really machine independent.
2008-03-29 19:15:34 +00:00
matt
1a5c171d25 Add the bus devclass to tc 2008-02-27 23:49:11 +00:00
matt
421d92a428 Use the VAX_PHYS_TO_S0 macro from vax/tc_machdep.h 2008-02-20 18:15:12 +00:00
matt
e71c736cbb Fix TC on VAX. (missed committing these earlier) 2008-02-19 18:30:33 +00:00
cube
205642797e Remove some whitespace. 2007-11-13 05:31:01 +00:00
ad
ca6954d465 Use zs_lock_init() to set up the chanstate's lock. 2007-11-09 00:05:38 +00:00
ad
d37935697b Merge tty changes from the vmlocking branch. 2007-11-07 15:56:11 +00:00
ad
a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
ad
46ed8f7d77 Use the softint API. 2007-10-08 16:18:02 +00:00
ad
744a92f0f8 Don't depend on uvm_extern.h pulling in proc.h. 2007-07-21 19:06:20 +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
matt
a2a9594187 Make tc_knowndevs const. 2007-04-12 21:39:24 +00:00