Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/sun3/dev/cg4.c
RevisionDateAuthorComments
 1.44  21-Dec-2024  tsutsui Make local dev_type_*() functions static.
 1.43  20-Dec-2024  tsutsui Remove trailing whitespace.
 1.42  21-Nov-2020  thorpej branches: 1.42.24;
malloc(9) -> kmem(9)
 1.41  25-Jul-2014  dholland branches: 1.41.40;
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.40  16-Mar-2014  dholland branches: 1.40.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.39  28-Jun-2008  tsutsui branches: 1.39.30; 1.39.40; 1.39.46;
Split softc/device_t, with misc cosmetic changes.
 1.38  08-Jun-2008  tsutsui branches: 1.38.2;
Use device_private() and device_lookup_private() to get softc
and to see if device unit is vaild.
 1.37  12-Mar-2007  tsutsui branches: 1.37.38; 1.37.40; 1.37.42; 1.37.44;
Fix printf formats in #ifdef DEBUG.
 1.36  04-Mar-2007  christos branches: 1.36.2;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.35  29-Mar-2006  thorpej branches: 1.35.14;
Use device_cfdata().
 1.34  28-Mar-2006  thorpej Use device_unit().
 1.33  11-Dec-2005  christos branches: 1.33.4; 1.33.6; 1.33.8; 1.33.10; 1.33.12;
merge ktrace-lwp.
 1.32  22-Jan-2005  chs branches: 1.32.8;
de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.31  07-Aug-2003  agc branches: 1.31.8;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.30  15-Jul-2003  lukem __KERNEL_RCSID()
 1.29  23-Oct-2002  jdolecek branches: 1.29.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.28  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.27  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.26  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.25  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.24  03-Aug-2002  itojun correct range check, have overflow check, fix type mismatches,
for cmap args and some other calls. from openbsd
 1.23  19-Sep-2001  thorpej branches: 1.23.4; 1.23.12; 1.23.14;
machine/fbio.h -> dev/sun/fbio.h
 1.22  05-Sep-2001  tsutsui branches: 1.22.2;
Remove register prefixes.
 1.21  29-Jun-2000  mrg branches: 1.21.4;
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.20  26-Jun-2000  simonb Change the kernel mmap interface so that the offset to map is an
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".

Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
 1.19  09-Jun-1998  gwr branches: 1.19.14; 1.19.24;
Simplify ifdefs in cg4b_ldcmap()
 1.18  09-Jun-1998  gwr Make this work on the 3/80, which has the Brooktree DAC
wired high-byte-only like the sparc. (yuck!)
 1.17  21-Mar-1998  gwr Deal with missing P4 register on old Sun3/60 machines.
 1.16  08-Mar-1998  gwr Need to use an offset to map the colormap H/W now that the
config address is that of the P4 register. Oops.
 1.15  08-Feb-1998  gwr Rewrite the match/attch routines to use the P4 register
(when it exists). Also get the size right; other fixes.
 1.14  26-Jan-1998  gwr Simplify the colormap and blanking stuff a little.
 1.13  12-Jan-1998  thorpej branches: 1.13.2;
Update for changes to config.
 1.12  17-Dec-1996  gwr Make this compile with -Werror -Wall -Wstrict-prototypes
(finally! yea!) Also get rid of __BROKEN_INDIRECT_CONFIG
 1.11  29-Oct-1996  gwr Checkpoint new version of this driver with support for the "Type A"
variant of the CG4 (the one with the AMD colormap DACs). This has
been tested only on the "Type B" H/W at this point (Brooktree DACs).
Thanks to Ezra Story and Scott Ellis for the "Type A" support.
 1.10  13-Oct-1996  christos backout previous kprintf change
 1.9  11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.8  09-Oct-1996  thorpej Merge netbsd-1-2 branch back into mainline.
 1.7  17-Mar-1996  thorpej branches: 1.7.4;
New device attachment scheme:

- split softc size and match/attach out from cfdriver into
a new struct cfattach.

- new "attach" directive for files.*. May specify the name of
the cfattach structure, so that devices may be easily attached
to parents with different autoconfiguration semantics.
 1.6  13-Apr-1995  gwr fix typo
 1.5  10-Apr-1995  mycroft map --> mmap
 1.4  10-Apr-1995  mycroft map --> mmap
 1.3  07-Apr-1995  gwr Fix that probe sequence right this time.
 1.2  07-Apr-1995  gwr Changed fb_attach() interface, hack probe to avoid impossible matches.
Corrected fbtype->fb_size (which x11r6 is picky about...)
 1.1  10-Mar-1995  gwr New frame-buffer support from Chuck Silvers (plus some tweaks from me)
 1.7.4.1  08-Aug-1996  gwr Fix an uninitialized pointer.
 1.13.2.1  26-Jan-1998  gwr Merge recent changes on the head onto the gwr-3x3 branch.
 1.19.24.1  30-Jun-2000  simonb Pull up mmap paddr_t/off_t changes from trunk.
 1.19.14.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.21.4.5  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.21.4.4  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.21.4.3  28-Jun-2002  jdolecek provide kqfilter hooks (equivalent to seltrue() for poll() case), and
hook them to fb driver
 1.21.4.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.21.4.1  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.22.2.2  10-Oct-2001  fvdl Convert all remaining devices.
 1.22.2.1  01-Oct-2001  fvdl Catch up with -current.
 1.23.14.1  07-Aug-2002  lukem Pull up revision 1.24 (requested by itojun in ticket #616):
correct range check, have overflow check, fix type mismatches,
for cmap args and some other calls. from openbsd
 1.23.12.2  31-Aug-2002  gehenna catch up with -current.
 1.23.12.1  17-May-2002  gehenna Add device switch.
 1.23.4.5  11-Nov-2002  nathanw Catch up to -current
 1.23.4.4  18-Oct-2002  nathanw Catch up to -current.
 1.23.4.3  17-Sep-2002  nathanw Catch up to -current.
 1.23.4.2  13-Aug-2002  nathanw Catch up to -current.
 1.23.4.1  19-Sep-2001  nathanw file cg4.c was added on branch nathanw_sa on 2002-08-13 02:18:59 +0000
 1.29.6.5  04-Feb-2005  skrll Adapt to branch.
 1.29.6.4  24-Jan-2005  skrll Sync with HEAD.
 1.29.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.29.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.29.6.1  03-Aug-2004  skrll Sync with HEAD
 1.31.8.1  29-Apr-2005  kent sync with -current
 1.32.8.2  03-Sep-2007  yamt sync with head.
 1.32.8.1  21-Jun-2006  yamt sync with head.
 1.33.12.1  31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.33.10.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.33.8.1  01-Apr-2006  yamt sync with head.
 1.33.6.1  22-Apr-2006  simonb Sync with head.
 1.33.4.1  09-Sep-2006  rpaulo sync with head
 1.35.14.2  24-Mar-2007  yamt sync with head.
 1.35.14.1  12-Mar-2007  rmind Sync with HEAD.
 1.36.2.1  13-Mar-2007  ad Sync with head.
 1.37.44.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.37.44.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.37.42.1  04-May-2009  yamt sync with head.
 1.37.40.1  17-Jun-2008  yamt sync with head.
 1.37.38.1  29-Jun-2008  mjf Sync with HEAD.
 1.38.2.1  03-Jul-2008  simonb Sync with head.
 1.39.46.1  18-May-2014  rmind sync with head
 1.39.40.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.39.30.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.40.2.1  10-Aug-2014  tls Rebase.
 1.41.40.1  14-Dec-2020  thorpej Sync w/ HEAD.
 1.42.24.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed