Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/sun3/dev/cg2.c
RevisionDateAuthorComments
 1.34  21-Dec-2024  tsutsui Make local dev_type_*() functions static.
 1.33  20-Dec-2024  tsutsui Remove trailing whitespace.
 1.32  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.31  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.30  16-Mar-2014  dholland branches: 1.30.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.29  28-Jun-2008  tsutsui branches: 1.29.30; 1.29.40; 1.29.46;
Split softc/device_t, with misc cosmetic changes.
 1.28  08-Jun-2008  tsutsui branches: 1.28.2;
Use device_private() and device_lookup_private() to get softc
and to see if device unit is vaild.
 1.27  04-Mar-2007  christos branches: 1.27.40; 1.27.42; 1.27.44; 1.27.46;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.26  11-Dec-2005  christos branches: 1.26.26;
merge ktrace-lwp.
 1.25  22-Jan-2005  chs branches: 1.25.8;
de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.24  07-Aug-2003  agc branches: 1.24.8;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.23  15-Jul-2003  lukem __KERNEL_RCSID()
 1.22  23-Oct-2002  jdolecek branches: 1.22.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.21  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.20  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.19  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.18  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.17  03-Aug-2002  itojun correct range check, have overflow check, fix type mismatches,
for cmap args and some other calls. from openbsd
 1.16  19-Sep-2001  thorpej branches: 1.16.4; 1.16.12; 1.16.14;
machine/fbio.h -> dev/sun/fbio.h
 1.15  05-Sep-2001  tsutsui branches: 1.15.2;
Remove register prefixes.
 1.14  05-Aug-2001  jdolecek use unsigned variable types as appropriate
 1.13  29-Jun-2000  mrg branches: 1.13.4;
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.12  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.11  23-Jan-1998  gwr branches: 1.11.16; 1.11.26;
Add: extern struct cfdriver cgtwo_cd;
 1.10  12-Jan-1998  thorpej Update for changes to config.
 1.9  17-Oct-1997  gwr Clean up cg2match()
 1.8  17-Dec-1996  gwr Make this compile with -Werror -Wall -Wstrict-prototypes
(finally! yea!) Also get rid of __BROKEN_INDIRECT_CONFIG
 1.7  13-Oct-1996  christos backout previous kprintf change
 1.6  11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.5  17-Mar-1996  thorpej 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.4  10-Apr-1995  mycroft map --> mmap
 1.3  10-Apr-1995  mycroft map --> mmap
 1.2  08-Apr-1995  gwr It works now.
 1.1  07-Apr-1995  gwr First cut at cgtwo driver. Not quite right yet.
 1.11.26.2  16-Aug-2001  tv Pullup [jdolecek]:

sys/arch/amiga/dev/grf_cl.c 1.26
sys/arch/amiga/dev/grfioctl.h 1.14
sys/arch/hpcmips/dev/plumvideo.c 1.20
sys/arch/macppc/dev/ofb.c 1.25
sys/arch/sparc/dev/cgtwo.c 1.35
sys/arch/sparc/include/fbio.h patch
sys/arch/sparc64/include/fbio.h patch
sys/arch/sun3/dev/cg2.c 1.14
sys/arch/sun3/include/fbio.h patch
sys/dev/pci/tga.c 1.35
sys/dev/tc/cfb.c 1.28
sys/dev/tc/mfb.c 1.27
sys/dev/tc/sfb.c 1.46
sys/dev/tc/sfbplus.c 1.10 via patch
sys/dev/tc/tfb.c 1.30
sys/dev/tc/xcfb.c 1.23
sys/net/if_ppp.c 1.71

Use unsigned variable types to make bounds checking more correct.
 1.11.26.1  30-Jun-2000  simonb Pull up mmap paddr_t/off_t changes from trunk.
 1.11.16.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.13.4.6  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.13.4.5  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.13.4.4  28-Jun-2002  jdolecek provide kqfilter hooks (equivalent to seltrue() for poll() case), and
hook them to fb driver
 1.13.4.3  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.13.4.2  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.13.4.1  25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.15.2.2  10-Oct-2001  fvdl Convert all remaining devices.
 1.15.2.1  01-Oct-2001  fvdl Catch up with -current.
 1.16.14.1  07-Aug-2002  lukem Pull up revision 1.17 (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.16.12.2  31-Aug-2002  gehenna catch up with -current.
 1.16.12.1  17-May-2002  gehenna Add device switch.
 1.16.4.5  11-Nov-2002  nathanw Catch up to -current
 1.16.4.4  18-Oct-2002  nathanw Catch up to -current.
 1.16.4.3  17-Sep-2002  nathanw Catch up to -current.
 1.16.4.2  13-Aug-2002  nathanw Catch up to -current.
 1.16.4.1  19-Sep-2001  nathanw file cg2.c was added on branch nathanw_sa on 2002-08-13 02:18:59 +0000
 1.22.6.5  04-Feb-2005  skrll Adapt to branch.
 1.22.6.4  24-Jan-2005  skrll Sync with HEAD.
 1.22.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.22.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.22.6.1  03-Aug-2004  skrll Sync with HEAD
 1.24.8.1  29-Apr-2005  kent sync with -current
 1.25.8.2  03-Sep-2007  yamt sync with head.
 1.25.8.1  21-Jun-2006  yamt sync with head.
 1.26.26.1  12-Mar-2007  rmind Sync with HEAD.
 1.27.46.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.27.46.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.27.44.1  04-May-2009  yamt sync with head.
 1.27.42.1  17-Jun-2008  yamt sync with head.
 1.27.40.1  29-Jun-2008  mjf Sync with HEAD.
 1.28.2.1  03-Jul-2008  simonb Sync with head.
 1.29.46.1  18-May-2014  rmind sync with head
 1.29.40.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.29.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.30.2.1  10-Aug-2014  tls Rebase.

RSS XML Feed