NetBSD/sys/dev
uwe 7cbde2c0d5 Further reduce diffs to dev/apm/apm.c.
Bring over remaining bits of logic not picked up in the first round.
Main semantic difference between the two that ramins is now basically
powerhooks vs. pmf.

Cosmetics to reduce diff noise: split apmattach into apmdevattach and
apm_attach, where the latter matches its counterpart in the real
apm.c.  Change local macros names from APMDEV* to APM*

Now that apmdev.c is demonstrably congruent to apm.c it should be
easier to switch hpc* and zaurus ports to apm.c from apmdev.c.
apmdev.c is one of the only two remaining drivers that call
dopowerhooks(9), the other one being arch/arm/xscale/pxa2x0_apm.c.

Ideally I would prefer for them to be interchangeable to smooth the
transition (in pmf world order *all* devices must have pmf hooks
registered), but they are attached differently - apmdev is separate
from its backend device (like hpcapm), while apm.c backends are
attachment glue, not separate devices.
2009-04-03 02:08:38 +00:00
..
acpi avoid tsleep also during shutdown (and in particular ACPI poweroff), 2009-03-31 17:17:47 +00:00
adb Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
altmem Add 'alternative memory' disk device driver. 2009-03-12 00:15:07 +00:00
apm
arcbios
ata During shutdown, detach devices in an orderly fashion. 2009-04-02 00:09:32 +00:00
bi Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
bluetooth ansify function definitions 2009-03-15 15:40:33 +00:00
cardbus During shutdown, detach devices in an orderly fashion. 2009-04-02 00:09:32 +00:00
dec ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
dkwedge g/c BUFQ_FOO() macros and use bufq_foo() directly. 2009-01-13 13:33:58 +00:00
dm It is only by chance that this gets the prop_array_t definition that it 2009-03-25 23:35:54 +00:00
dmover
drm drm_addmap(): 2009-03-29 19:50:17 +00:00
ebus Make it attach on JavaStation KRUPS again 2009-01-31 10:35:38 +00:00
eisa bcopy -> memcpy 2009-03-18 17:06:41 +00:00
gpib ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
gpio During shutdown, detach devices in an orderly fashion. 2009-04-02 00:09:32 +00:00
hpc Further reduce diffs to dev/apm/apm.c. 2009-04-03 02:08:38 +00:00
i2c 1. Reorganize code into memory-type-specific routines instead of multiple 2009-02-22 17:28:50 +00:00
i2o More device_t/softc split fallout, this time in iop(4). Fix from 2008-12-15 18:35:48 +00:00
ic Add the WEP capability to our net80211 capability flags, since we do 2009-04-02 00:57:20 +00:00
ieee1394 bcopy -> memcpy 2009-03-18 17:06:41 +00:00
if_ndis I find myself making a lot of changes in this code to keep it compiling 2009-04-02 00:39:37 +00:00
ir Avoid crash under LOCKDEBUG by destroying a mutex correctly. 2009-01-11 14:28:13 +00:00
isa During shutdown, detach devices in an orderly fashion. 2009-04-02 00:09:32 +00:00
isapnp bzero -> memset 2009-03-18 16:00:08 +00:00
marvell bcopy -> memcpy 2009-03-18 17:06:41 +00:00
mca ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
microcode Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
mii During shutdown, detach devices in an orderly fashion. 2009-04-02 00:09:32 +00:00
mscp bcopy -> memcpy 2009-03-18 17:06:41 +00:00
mvme Fix fallout from device_t changes - initialise sc->sc_osiop.sc_dev before 2009-03-23 18:59:57 +00:00
news
ofisa bzero -> memset 2009-03-18 16:00:08 +00:00
ofw Correct bungled bcopy() -> memcpy() conversion 2009-03-20 05:26:37 +00:00
onewire bzero -> memset 2009-03-18 16:00:08 +00:00
pad 'boot -z' bogons 2009-03-14 11:08:28 +00:00
pci Fix SIOCSIFFLAGS. Mark as safe to detach at shutdown. 2009-04-03 00:14:42 +00:00
pckbport use aprint_error 2009-03-08 15:06:56 +00:00
pcmcia During shutdown, detach devices in an orderly fashion. 2009-04-02 00:09:32 +00:00
podulebus WD33C93 has only two registers, which often times aren't mapped to adjacent 2009-02-12 06:24:45 +00:00
ppbus replace bitmask_snprintf(9) with snprintb(3) 2008-12-16 22:35:21 +00:00
pud Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
putter Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
qbus bcopy -> memcpy 2009-03-18 17:06:41 +00:00
raidframe Rework/simplify the disk queuing code. A bunch of this was still 2009-03-23 18:38:54 +00:00
rasops ansify function definitions 2009-03-15 21:23:31 +00:00
rcons bcopy -> memcpy 2009-03-18 17:06:41 +00:00
sbus Get width, height, and linebytes values from prom_getpropint(). 2009-03-29 07:24:56 +00:00
scsipi Implement MMC_TRACKINFO_DATA and MMC_TRACKINFO_AUDIO detection for cdrom and 2009-04-01 12:19:04 +00:00
smbus
spi g/c BUFQ_FOO() macros and use bufq_foo() directly. 2009-01-13 13:33:58 +00:00
splash
std
sun bcopy -> memcpy 2009-03-18 17:06:41 +00:00
sysmon Fix typo in previous, and wrap a panic with #ifdef DIAGNOSTIC 2008-11-11 19:03:06 +00:00
tc bcopy -> memcpy 2009-03-18 17:06:41 +00:00
tprof tprof_stop1: add an assertion. 2009-03-13 11:06:26 +00:00
usb Putting a device into the unconfigured state by an ioctl seems legitimate, 2009-03-20 20:47:43 +00:00
videomode add a comment explaining how to regenerate videomode.c 2009-01-21 14:40:25 +00:00
vme bcopy -> memcpy 2009-03-18 17:06:41 +00:00
wscons wsevent_copyout_events50: fix a bogus panic. 2009-02-18 13:20:02 +00:00
wsfb s/long/intptr_t/ 2009-02-21 17:24:47 +00:00
wsfont
xmi
auconv.c remove extra semicolons. 2009-01-03 03:43:21 +00:00
auconv.h
audio_if.h
audio.c
audiobell.c kill MALLOC and FREE macros. 2008-12-17 20:51:31 +00:00
audiobellvar.h
audiovar.h
aurateconv.c
bio.c
biovar.h
ccd.c g/c BUFQ_FOO() macros and use bufq_foo() directly. 2009-01-13 13:33:58 +00:00
ccdvar.h
cgd_crypto.c
cgd_crypto.h
cgd.c Pass DIOCCACHESYNC ioctl down to the underlying disk. 2009-03-14 17:56:47 +00:00
cgdvar.h PR/39525: Joachim Schueth, Frederik Sausmikat: 2008-09-12 16:51:55 +00:00
clock_subr.c convert to ANSI function prototypes 2009-02-14 20:32:29 +00:00
clock_subr.h
clockctl.c - fix copyout size in CLOCKCTL_O?ADJTIME. 2009-02-22 13:06:58 +00:00
cninit.c
cons.c
cons.h
DEVNAMES remove vesabios and vesafb 2009-02-19 00:55:48 +00:00
dksubr.c g/c BUFQ_FOO() macros and use bufq_foo() directly. 2009-01-13 13:33:58 +00:00
dkvar.h
firmload.c
firmload.h
fss.c g/c BUFQ_FOO() macros and use bufq_foo() directly. 2009-01-13 13:33:58 +00:00
fssvar.h Replace the fss unmount hook with a vfs_hook. 2008-09-17 14:49:25 +00:00
kloader.c Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
kloader.h
kttcp.c
kttcpio.h
ld.c g/c BUFQ_FOO() macros and use bufq_foo() directly. 2009-01-13 13:33:58 +00:00
ldvar.h Complete device_t/softc split for the ld(4) attachments. This should 2008-09-09 12:45:39 +00:00
lockstat.c
lockstat.h bump lockstat interface version for timespec. 2009-01-20 14:49:00 +00:00
Makefile wrap lines. no functional change. 2008-11-06 17:50:59 +00:00
md_root.c Changes to MEMORY_RBFLAGS option: 2009-02-06 18:50:26 +00:00
md.c g/c BUFQ_FOO() macros and use bufq_foo() directly. 2009-01-13 13:33:58 +00:00
md.h
midi_if.h
midi.c
midictl.c
midictl.h
midisyn.c
midisynvar.h
midivar.h
mm.c Need to include sys/termios.h here too. 2008-10-08 16:11:23 +00:00
mulaw.c
mulaw.h
nullcons_subr.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
radio_if.h
radio.c
rnd.c
rndpool.c
sequencer.c Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
sequencervar.h
verified_exec.c PR/39559: Juan RP: veriexec(4): too easy to cause a NULL dereference 2008-12-14 23:20:23 +00:00
video_if.h Add RGB555, RGB565, UYVY support 2008-09-20 18:13:40 +00:00
video.c PR# kern/41008: possible simple mistake of field check in video(9) 2009-03-14 00:33:25 +00:00
vnd.c bzero -> memset 2009-03-18 16:00:08 +00:00
vndvar.h