Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/sparc/dev/cgfour.c
RevisionDateAuthorComments
 1.51  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.50  18-Oct-2014  snj src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
 1.49  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.48  16-Mar-2014  dholland branches: 1.48.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.47  27-Oct-2012  chs branches: 1.47.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.46  18-Jul-2011  mrg branches: 1.46.2; 1.46.12;
convert to use device_t, cfdata_t and CFATTACH_DECL_NEW().

XXX: compile time tested only.
 1.45  11-Jun-2008  drochner mechanical changes to use device_private() or device_lookup_private()
to get softcs, makes the code compile under the stricter type checking
introduced earlier today
 1.44  28-Apr-2008  martin branches: 1.44.2; 1.44.4;
Remove clause 3 and 4 from TNF licenses
 1.43  04-Mar-2007  christos branches: 1.43.40; 1.43.42; 1.43.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.42  29-Mar-2006  thorpej branches: 1.42.14;
Use device_cfdata().
 1.41  11-Dec-2005  christos branches: 1.41.4; 1.41.6; 1.41.8; 1.41.10; 1.41.12;
merge ktrace-lwp.
 1.40  16-Nov-2005  uwe ANSIify function declarations/defintions. Use uint<N>_t.
Propagate "static" to function definitions. Drop trailing whitespace.
Same binary code is produced for GENERIC.MP + KGDB + DDB.
 1.39  10-Dec-2003  agc branches: 1.39.16; 1.39.24;
Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
 1.38  04-Dec-2003  keihan NetBSD.ORG -> NetBSD.org

Now all "NetBSD.ORG" are gone from src/sys.
 1.37  25-Aug-2003  uwe Undo previous as it broke things.

There are some scattered implicit RASTERCONSOLE dependencies,
so there should be a better way.
 1.36  24-Aug-2003  uwe #include "opt_rcons.h"
 1.35  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.34  15-Jul-2003  lukem __KERNEL_RCSID()
 1.33  29-Jun-2003  fvdl branches: 1.33.2;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.32  29-Jun-2003  darrenr More changes for providing lwpid for ktrace (sparc GENERIC built)
 1.31  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.30  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.29  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.28  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.27  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.26  11-Mar-2002  pk branches: 1.26.4;
* `bus_type_t' is gone.
* Use BUS_ADDR() where appropriate to encode I/O space and physical
address offset into a `bus_addr_t' value.
* Drop obio_bus_map() since it's now completely equivalent to bus_space_map()
* Use bus_space_map2() to map device space at a fixed virtual address.
* Remove the virtual address argument from sbus_sbus_addr()
 1.25  24-Sep-2001  eeh branches: 1.25.4;
Change bus_space_mmap() signature to the official one.
 1.24  22-Aug-2000  pk branches: 1.24.2; 1.24.4;
Use the framebuffer drivers & header files that now live in /sys/dev/sun.
 1.23  29-Jun-2000  mrg remove include of <vm/vm.h> and <machine/pmap.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.22  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.21  04-Apr-2000  pk branches: 1.21.4;
Use copyin/copyout to get a colormap from/to user space.
Also, prepare for the case of a colormap maintained in kernel space.
 1.20  19-Mar-2000  pk Use fb_is_console(); retract fbconstty & fbnode from service.
 1.19  19-Nov-1998  mrg branches: 1.19.10;
fix problems in many d_mmap routines:
- returned EOPNOTSUPP rather than -1.
- no check for negative offset.
many of these fix potential security problems in these drivers.


XXX XXX XXX
the d_mmap cdev routine should be changed to have a prototype like:
paddr_t (*d_mmap) __P((dev_t, off_t, int));

by someone!
 1.18  07-Apr-1998  pk bus_space_mmap() has changed to take a `bus_space_handle_t *' argument,
like other bus space methods.
 1.17  29-Mar-1998  pk obio_bus_probe() => bus_space_probe()
 1.16  21-Mar-1998  pk Account for changed bus attachment scheme.
 1.15  12-Jan-1998  thorpej Update for changes to config.
 1.14  05-Oct-1997  thorpej branches: 1.14.2;
Copyright assigned to The NetBSD Foundation.
 1.13  24-May-1997  pk branches: 1.13.4;
Remove all `bustype' arguments from map[io]dev() and REG2PHYS().
 1.12  10-Dec-1996  pk Comply with recent autoconfiguration changes. Diffs graciously
supplied by Chris Demetriou.
 1.11  13-Oct-1996  christos backout previous kprintf change
 1.10  11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.9  04-Oct-1996  thorpej Returning ENODEV is not correct in a poll entry point. Instead, since
read/write returns an error, use seltrue().
 1.8  13-Aug-1996  thorpej Fix a typo and an error in color plane offset calculation. Submitted by
Konrad Schroder <perseant@hitl.washington.edu>, PR #2695.
 1.7  01-Apr-1996  christos branches: 1.7.4;
Eliminated dependencies on dev_conf.h
 1.6  31-Mar-1996  pk Re-arrange a bit to stear clear of gcc `-Wall' bites.
 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  16-Mar-1996  christos include <sys/systm.h>
 1.3  14-Mar-1996  christos Bring prototypes into scope and fix compiler warnings.
 1.2  28-Feb-1996  thorpej Oops...missed to places where I could have used CPU type macros.
 1.1  27-Feb-1996  thorpej First-cut support for P4 framebuffers. Currently supports P4 variants
of bwtwo, cgfour, cgsix, and cgeight. Includes support for attaching
the overlay plane of the cgfour and cgeight as a bwtwo instance (a'la
SunOS).

P4 register descriptions, cgfour driver, and cgeight driver partially
derived from OpenBSD.

This code may still need polishing.
 1.7.4.1  10-Dec-1996  mycroft From trunk:
Fix plane offset calculation.
 1.13.4.1  14-Oct-1997  thorpej Update marc-pcmcia branch from trunk.
 1.14.2.1  23-Nov-1998  cgd Fix many real and potential security problems with character device
driver mmap routines that did not properly bounds check offsets.
See NetBSD security advisory NetBSD-SA1998-005 for details. Done
as a patch because it's large, and a fair number of bits are different
in -current. (mrg)
 1.19.10.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.1  30-Jun-2000  simonb Pull up mmap paddr_t/off_t changes from trunk.
 1.24.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.24.4.4  28-Jun-2002  jdolecek hook fbkqfilter to leaf drivers' kqfilter
 1.24.4.3  28-Jun-2002  jdolecek prove kqfilter hook; it's very simple equivalent of seltrue()
 1.24.4.2  16-Mar-2002  jdolecek Catch up with -current.
 1.24.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.24.2.2  10-Oct-2001  fvdl Convert all remaining devices.
 1.24.2.1  01-Oct-2001  fvdl Catch up with -current.
 1.25.4.5  11-Nov-2002  nathanw Catch up to -current
 1.25.4.4  18-Oct-2002  nathanw Catch up to -current.
 1.25.4.3  17-Sep-2002  nathanw Catch up to -current.
 1.25.4.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.25.4.1  24-Sep-2001  nathanw file cgfour.c was added on branch nathanw_sa on 2002-04-01 07:42:39 +0000
 1.26.4.1  17-May-2002  gehenna Add device switch.
 1.33.2.5  11-Dec-2005  christos Sync with head.
 1.33.2.4  04-Feb-2005  skrll Adapt to branch.
 1.33.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.33.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.33.2.1  03-Aug-2004  skrll Sync with HEAD
 1.39.24.1  22-Nov-2005  yamt sync with head.
 1.39.16.2  03-Sep-2007  yamt sync with head.
 1.39.16.1  21-Jun-2006  yamt sync with head.
 1.41.12.1  31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.41.10.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.41.8.1  01-Apr-2006  yamt sync with head.
 1.41.6.1  22-Apr-2006  simonb Sync with head.
 1.41.4.1  09-Sep-2006  rpaulo sync with head
 1.42.14.1  12-Mar-2007  rmind Sync with HEAD.
 1.43.44.2  04-May-2009  yamt sync with head.
 1.43.44.1  16-May-2008  yamt sync with head.
 1.43.42.2  17-Jun-2008  yamt sync with head.
 1.43.42.1  18-May-2008  yamt sync with head.
 1.43.40.2  29-Jun-2008  mjf Sync with HEAD.
 1.43.40.1  02-Jun-2008  mjf Sync with HEAD.
 1.44.4.1  18-Jun-2008  simonb Sync with head.
 1.44.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.46.12.3  03-Dec-2017  jdolecek update from HEAD
 1.46.12.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.46.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.46.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.46.2.1  30-Oct-2012  yamt sync with head
 1.47.2.1  18-May-2014  rmind sync with head
 1.48.2.1  10-Aug-2014  tls Rebase.

RSS XML Feed