Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/macppc/dev/apm.c
RevisionDateAuthorComments
 1.32  11-Feb-2022  thorpej Remove some #ifdef __OpenBSD__ code that's not complete and thus doesn't
serve much point in existing here.
 1.31  26-Sep-2021  thorpej Driver "kqfilter" entry points return an error code, so if an invalid
filter is requested, return EINVAL rather than 1.
 1.30  26-Sep-2021  thorpej Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89
 1.29  19-Dec-2020  thorpej Use sel{record,remove}_knote().
 1.28  30-Oct-2020  christos branches: 1.28.2;
c99 struct initializers
 1.27  25-Jul-2014  dholland Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.26  16-Mar-2014  dholland branches: 1.26.2;
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.
 1.25  27-Oct-2012  chs branches: 1.25.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.24  18-Jun-2011  matt branches: 1.24.2; 1.24.12;
struct device * -> device_t
struct cfdata * -> cfdata_t
use device accessors, use device_private.
some softc/device_t splits (macppc needs a bunch more)
aprint*_dev used considerably more
 1.23  14-Mar-2009  dsl branches: 1.23.10;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.22  14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.21  14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.20  13-Jun-2008  cegger branches: 1.20.4; 1.20.10;
use device_lookup_private to get softc
 1.19  01-Mar-2008  rmind branches: 1.19.2; 1.19.4; 1.19.6; 1.19.8;
Welcome to 4.99.55:

- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call. It will
indicate which event (POLL_IN, POLL_OUT, etc) happen. If unknown,
zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
 1.18  11-Dec-2007  david branches: 1.18.2; 1.18.6;
Wrong copyright template used on import. Referenced Regents, but
Berkeley wasn't in on this one.

closes port-macppc/37520, filed by Ted Unangst.
 1.17  06-Dec-2007  ad branches: 1.17.2; 1.17.4;
lockmgr -> mutex
 1.16  04-Mar-2007  christos branches: 1.16.6; 1.16.18; 1.16.20; 1.16.26; 1.16.28;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.15  11-Dec-2005  christos branches: 1.15.26;
merge ktrace-lwp.
 1.14  05-Jun-2005  nathanw branches: 1.14.2;
Fix shadowing of parameter with local variable.
 1.13  01-Feb-2005  briggs Calculate and use seconds of power remaining for smart battery types.
 1.12  01-Feb-2005  briggs ADB_HW_PB is really ADB_HW_PMU.
 1.11  01-Feb-2005  briggs adb_direct.h contents are in adbvar.h. No need for duplication.
 1.10  15-Apr-2004  aymeric branches: 1.10.4; 1.10.6;
. add a missing call to lockinit() in apmattach()
. while here, explicitly initialize three softc variables to 0
 1.9  15-Jul-2003  lukem __KERNEL_RCSID()
 1.8  29-Jun-2003  fvdl branches: 1.8.2;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.7  29-Jun-2003  darrenr 'struct proc *' -> 'struct lwp *' as required to get GENERIC for macppc built
 1.6  26-Nov-2002  christos si_ -> sel_
 1.5  23-Oct-2002  jdolecek 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
 1.4  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.3  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.2  06-Sep-2002  gehenna Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.

- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.

- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
 1.1  18-Jun-2002  itojun branches: 1.1.2; 1.1.4; 1.1.6;
apm emulation, from openbsd
 1.1.6.4  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.3  02-Oct-2002  jdolecek do not need the (void *) cast for kn_hook anymore
 1.1.6.2  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1  18-Jun-2002  jdolecek file apm.c was added on branch kqueue on 2002-09-06 08:37:06 +0000
 1.1.4.2  16-Jul-2002  gehenna catch up with -current.
 1.1.4.1  18-Jun-2002  gehenna file apm.c was added on branch gehenna-devsw on 2002-07-16 08:48:16 +0000
 1.1.2.6  11-Dec-2002  thorpej Sync with HEAD.
 1.1.2.5  11-Nov-2002  nathanw Catch up to -current
 1.1.2.4  18-Oct-2002  nathanw Catch up to -current.
 1.1.2.3  17-Sep-2002  nathanw Catch up to -current.
 1.1.2.2  20-Jun-2002  nathanw Catch up to -current.
 1.1.2.1  18-Jun-2002  nathanw file apm.c was added on branch nathanw_sa on 2002-06-20 03:39:33 +0000
 1.8.2.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.8.2.5  04-Feb-2005  skrll Sync with HEAD.
 1.8.2.4  18-Nov-2004  skrll Adapt to branch. macppc release builds.
 1.8.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.8.2.1  03-Aug-2004  skrll Sync with HEAD
 1.10.6.1  12-Feb-2005  yamt sync with head.
 1.10.4.1  29-Apr-2005  kent sync with -current
 1.14.2.5  17-Mar-2008  yamt sync with head.
 1.14.2.4  21-Jan-2008  yamt sync with head
 1.14.2.3  07-Dec-2007  yamt sync with head
 1.14.2.2  03-Sep-2007  yamt sync with head.
 1.14.2.1  21-Jun-2006  yamt sync with head.
 1.15.26.1  12-Mar-2007  rmind Sync with HEAD.
 1.16.28.2  26-Dec-2007  ad Sync with head.
 1.16.28.1  08-Dec-2007  ad Sync with head.
 1.16.26.2  27-Dec-2007  mjf Sync with HEAD.
 1.16.26.1  08-Dec-2007  mjf Sync with HEAD.
 1.16.20.2  23-Mar-2008  matt sync with HEAD
 1.16.20.1  09-Jan-2008  matt sync with HEAD
 1.16.18.1  09-Dec-2007  jmcneill Sync with HEAD.
 1.16.6.1  09-Dec-2007  reinoud Pullup to HEAD
 1.17.4.1  13-Dec-2007  bouyer Sync with HEAD
 1.17.2.1  13-Dec-2007  yamt sync with head.
 1.18.6.2  29-Jun-2008  mjf Sync with HEAD.
 1.18.6.1  03-Apr-2008  mjf Sync with HEAD.
 1.18.2.1  24-Mar-2008  keiichi sync with head.
 1.19.8.1  18-Jun-2008  simonb Sync with head.
 1.19.6.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.19.4.1  04-May-2009  yamt sync with head.
 1.19.2.1  17-Jun-2008  yamt sync with head.
 1.20.10.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.20.4.1  28-Apr-2009  skrll Sync with HEAD.
 1.23.10.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.24.12.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.24.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.24.2.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.24.2.1  30-Oct-2012  yamt sync with head
 1.25.2.1  18-May-2014  rmind sync with head
 1.26.2.1  10-Aug-2014  tls Rebase.
 1.28.2.1  03-Jan-2021  thorpej Sync w/ HEAD.

RSS XML Feed