Home | History | Annotate | Download | only in vax
History log of /src/sys/arch/vax/vax/ctu.c
RevisionDateAuthorComments
 1.39  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.38  02-Jun-2023  andvar follow the steps of Andrew Doran (ad) commit and fix more s/loose/lose/ typos.
also s/beyound/beyond/ and few others along the way, mainly in comments.
 1.37  02-Apr-2018  mrg convert some spaces into new lines and tabs to make the gcc 6
indent checker happy.
 1.36  22-May-2017  ragge branches: 1.36.8;
Update copyright notice for Ludd (remove clause 3 & 4).
 1.35  07-Jul-2016  msaitoh KNF. Remove extra spaces. No functional change.
 1.34  25-Jul-2014  dholland branches: 1.34.4;
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.33  25-Jul-2014  dholland Add d_discard to all struct bdevsw instances I could find.

I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.
 1.32  16-Mar-2014  dholland branches: 1.32.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.31  14-Dec-2010  matt branches: 1.31.8; 1.31.18; 1.31.22;
Cleanups includes. Change <machine/XXX.h> to <sys/XXX.h>
Remove unneeded includes.
 1.30  13-Jan-2009  yamt branches: 1.30.6;
g/c BUFQ_FOO() macros and use bufq_foo() directly.
 1.29  11-Mar-2008  matt branches: 1.29.4; 1.29.12;
Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.28  17-Oct-2007  garbled branches: 1.28.12; 1.28.16;
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.
 1.27  29-Jul-2007  ad branches: 1.27.6;
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
 1.26  09-Jul-2007  ad branches: 1.26.2; 1.26.4;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.25  04-Mar-2007  christos branches: 1.25.2; 1.25.4; 1.25.10;
Fix caddr_t fallout.
 1.24  04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.23  11-Dec-2005  christos branches: 1.23.26;
merge ktrace-lwp.
 1.22  15-Oct-2005  yamt - change the way to specify a bufq strategy. (by string rather than by number)
- rather than embedding bufq_state in driver softc,
have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
from sys/bufq.h to sys/bufq_impl.h.
(is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c. (not tested)
 1.21  28-Oct-2004  yamt branches: 1.21.12;
move buffer queue related stuffs from buf.h to their own header, bufq.h.
 1.20  06-Nov-2003  he Work around gcc 2.95.3's inability to detect that 'ck' will be set
in rounds 129 and 130 through the loop. Will be noted in doc/HACKS,
and should be reviewed when gcc 3.3.2 is ready for vax.
 1.19  15-Jul-2003  lukem __KERNEL_RCSID()
 1.18  23-Oct-2002  jdolecek branches: 1.18.6;
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.17  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.16  22-Jul-2002  hannken Convert to new device buffer queue interface.

Approved by: Anders Magnusson <ragge@netbsd.org>
 1.15  01-Jul-2002  ragge Protect biodone() with spl7(). Found by art@openbsd, but fixed in the
wrong way.
 1.14  14-May-2001  ragge branches: 1.14.2; 1.14.4; 1.14.8; 1.14.16;
Write support for TU58 tapes written.
 1.13  13-May-2001  ragge Add checksum calculation, busy-wait loops for receive packets and use
correct interrupt levels (spl7). Reading tapes now work reliable.
 1.12  12-Apr-2001  thorpej splimp -> splbio.
 1.11  19-May-2000  thorpej branches: 1.11.6;
A foolish consistency; most parts of the kernel use bp->b_data, so
change these from bp->b_un.b_addr to bp->b_data, as well. This also
allows us more flexibility to experiment with other data buffer types
hung off of struct buf.
 1.10  23-Mar-2000  thorpej New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
 1.9  07-Feb-2000  thorpej Fix a bug in disksort_*() which caused non-optimal ordering when multiple
active partitions were on a single spindle. Add a b_rawblkno member to
struct buf which contains the non-partition-relative block number to sort
by.
 1.8  24-Jan-2000  matt Revamp the VAX interrupt handling code. Make it compatible with all the
other ports. Clean up some things.
 1.7  23-Jan-2000  matt remove volatile from softc. cleanup interrupt initialization.
 1.6  21-Jan-2000  thorpej Update for sys/buf.h/disksort_*() changes.
 1.5  13-Oct-1996  christos branches: 1.5.28;
backout previous kprintf change
 1.4  11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.3  08-Apr-1996  ragge Added prototypes to everything. Made all files compile with -Wall.
 1.2  02-Mar-1996  ragge Add a #ifdef TUDEBUG around a printf statement.
 1.1  17-Feb-1996  ragge Console TU58 device driver for 11/750 added.
It cannot write tapes yes, but reading works OK.
 1.5.28.2  21-Apr-2001  bouyer Sync with HEAD
 1.5.28.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.11.6.1  21-Jun-2001  nathanw Catch up to -current.
 1.14.16.3  31-Aug-2002  gehenna catch up with -current.
 1.14.16.2  17-Jul-2002  gehenna catch up with -current.
 1.14.16.1  17-May-2002  gehenna Add device switch.
 1.14.8.4  11-Nov-2002  nathanw Catch up to -current
 1.14.8.3  17-Sep-2002  nathanw Catch up to -current.
 1.14.8.2  01-Aug-2002  nathanw Catch up to -current.
 1.14.8.1  14-May-2001  nathanw file ctu.c was added on branch nathanw_sa on 2002-08-01 02:43:59 +0000
 1.14.4.1  10-Oct-2001  fvdl Convert all remaining devices.
 1.14.2.2  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.14.2.1  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.18.6.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.18.6.5  02-Nov-2004  skrll Sync with HEAD.
 1.18.6.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.18.6.3  18-Sep-2004  skrll Sync with HEAD.
 1.18.6.2  12-Aug-2004  skrll Adapt to new world order.

Vax GENERIC compiles.
 1.18.6.1  03-Aug-2004  skrll Sync with HEAD
 1.21.12.3  17-Mar-2008  yamt sync with head.
 1.21.12.2  03-Sep-2007  yamt sync with head.
 1.21.12.1  21-Jun-2006  yamt sync with head.
 1.23.26.1  12-Mar-2007  rmind Sync with HEAD.
 1.25.10.1  03-Oct-2007  garbled Sync with HEAD
 1.25.4.1  11-Jul-2007  mjf Sync with head.
 1.25.2.2  19-Aug-2007  ad - Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).
 1.25.2.1  15-Jul-2007  ad Sync with head.
 1.26.4.1  15-Aug-2007  skrll Sync with HEAD.
 1.26.2.1  07-Aug-2007  matt Sync with HEAD.
 1.27.6.2  23-Mar-2008  matt sync with HEAD
 1.27.6.1  06-Nov-2007  matt sync with HEAD
 1.28.16.2  17-Jan-2009  mjf Sync with HEAD.
 1.28.16.1  03-Apr-2008  mjf Sync with HEAD.
 1.28.12.1  24-Mar-2008  keiichi sync with head.
 1.29.12.1  19-Jan-2009  skrll Sync with HEAD.
 1.29.4.1  04-May-2009  yamt sync with head.
 1.30.6.1  05-Mar-2011  rmind sync with head
 1.31.22.1  18-May-2014  rmind sync with head
 1.31.18.2  03-Dec-2017  jdolecek update from HEAD
 1.31.18.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.31.8.1  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.32.2.1  10-Aug-2014  tls Rebase.
 1.34.4.2  28-Aug-2017  skrll Sync with HEAD
 1.34.4.1  09-Jul-2016  skrll Sync with HEAD
 1.36.8.1  07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$

RSS XML Feed