History log of /src/sys/arch/atari/dev/grf.c |
Revision | | Date | Author | Comments |
1.57 |
| 20-Dec-2023 |
thorpej | Remove unnecessary <sys/malloc.h> include.
|
1.56 |
| 06-Jan-2023 |
tsutsui | TAB/spaces/indents cleanup.
|
1.55 |
| 26-Jun-2022 |
tsutsui | Use aprint_*(9) for device attach messages.
|
1.54 |
| 26-Jun-2022 |
tsutsui | Make local devsw functions static.
No visible regression on TT030.
|
1.53 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.52 |
| 27-Apr-2021 |
thorpej | branches: 1.52.6; The Amiga and Atari ports abuse some autoconfiguration internals as part of their early console bring-up, so we need to expose some of the new internals to them and adapt the call sites.
|
1.51 |
| 24-Apr-2021 |
thorpej | branches: 1.51.2; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.50 |
| 29-Jun-2019 |
tsutsui | branches: 1.50.12; Make local functions static.
|
1.49 |
| 25-Jul-2014 |
dholland | branches: 1.49.28; 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 |
| 30-Jun-2011 |
wiz | branches: 1.47.2; 1.47.12; 1.47.16; dependant -> dependent
|
1.46 |
| 05-Jun-2011 |
matt | A few missed device_t, cfdata_t cleanups
|
1.45 |
| 05-Jun-2011 |
tsutsui | - use CFATTACH_DECL_NEW() (no softc) - use device_t, cfdata_t etc.
|
1.44 |
| 08-Feb-2011 |
rmind | branches: 1.44.2; Remove clause 3 (UCB advertising clause) from the University of Utah copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks! Also, merge UCB and Utah copyright texts back into one, as they originally were.
Extra verification by snj@.
|
1.43 |
| 13-Apr-2010 |
tsutsui | branches: 1.43.2; 1.43.4; Misc KNF.
|
1.42 |
| 13-Apr-2010 |
tsutsui | Include "ioconf.h" to declare struct cfdriver foo_cd.
|
1.41 |
| 19-Jul-2009 |
tsutsui | branches: 1.41.2; 1.41.4; Remove extra whitespace added by a dumb tool which replaced bcopy with memcpy.
|
1.40 |
| 18-Mar-2009 |
cegger | bcopy -> memcpy
|
1.39 |
| 14-Mar-2009 |
dsl | 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.38 |
| 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.37 |
| 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.36 |
| 04-Mar-2007 |
christos | branches: 1.36.44; 1.36.52; 1.36.58; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.35 |
| 11-Dec-2005 |
christos | branches: 1.35.26; merge ktrace-lwp.
|
1.34 |
| 25-Mar-2004 |
leo | branches: 1.34.16; Licence cleanup (suggested by wiz).
|
1.33 |
| 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.32 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.31 |
| 23-Oct-2002 |
jdolecek | branches: 1.31.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.30 |
| 10-Oct-2002 |
jdolecek | replace the somewhat strange poll routine with standard nopoll() (a.k.a seltrue())
|
1.29 |
| 02-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 |
| 17-Mar-2002 |
atatat | branches: 1.26.4; Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
1.25 |
| 29-Jun-2000 |
mrg | branches: 1.25.2; 1.25.4; 1.25.8; remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
|
1.24 |
| 26-Jun-2000 |
mrg | remove/move more mach vm header files:
<vm/pglist.h> -> <uvm/uvm_pglist.h> <vm/vm_inherit.h> -> <uvm/uvm_inherit.h> <vm/vm_kern.h> -> into <uvm/uvm_extern.h> <vm/vm_object.h> -> nothing <vm/vm_pager.h> -> into <uvm/uvm_pager.h>
also includes a bunch of <vm/vm_page.h> include removals (due to redudancy with <vm/vm.h>), and a scattering of other similar headers.
|
1.23 |
| 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.22 |
| 20-Dec-1998 |
thomas | branches: 1.22.8; 1.22.18; Changed grf mmap that it is closer to XFree. VGA memory on et4000/et6000 is now at offset 0xa0000.
|
1.21 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.20 |
| 25-Apr-1997 |
leo | - Provide the reasonable size that can/may be mmap-ed. This might differ from the current frame buffer size. - The et-driver now allows for a 16Kb io-region (was 8Kb) that can be mapped. The XFree server uses this.
|
1.19 |
| 26-Feb-1997 |
leo | Fix a kernel-dump that occurred when accessing a grf-device that was configured in the config file but not found by the autoconfig code.
|
1.18 |
| 10-Jan-1997 |
leo | branches: 1.18.6; Allow the control registers to be mapped too.
|
1.17 |
| 20-Dec-1996 |
leo | Get rid of BROKEN_INDIRECT_CONFIG
|
1.16 |
| 13-Oct-1996 |
christos | backout previous kprintf changes
|
1.15 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.14 |
| 04-Oct-1996 |
leo | Checkpointing my et4000 work. Note that the et-console will not be functional until the minimal pci-support is checked in.
|
1.13 |
| 25-Sep-1996 |
leo | Catchup with -current: - Extra argument to boot() - select -> poll
|
1.12 |
| 16-Sep-1996 |
leo | Prepare for (soon to come) et4000 PCI console.
|
1.11 |
| 27-Aug-1996 |
cgd | change cfprint_t type definition to take a const char *, rather than a char *, because that's what was really intended, and because if the print function modifies the string, various things could become unhappy (so the string should _not_ be modified).
|
1.10 |
| 18-Apr-1996 |
leo | Yet more prototyping and -Wall fixes.
|
1.9 |
| 20-Mar-1996 |
leo | Fix typo in neew config changes.
|
1.8 |
| 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.7 |
| 22-Feb-1996 |
leo | First bunch of changes due to stricter prototype checking.
|
1.6 |
| 26-Jun-1995 |
leo | Sync grf with underlying view on open.
|
1.5 |
| 09-Jun-1995 |
leo | Fix grfmmap()
|
1.4 |
| 28-May-1995 |
leo | Remove the pointer to view_t from the grf-structure, use viewview(dev) to obtain the pointer instead. This removes a kernel-crash that happened when something was written to the console while the console was being resized.
|
1.3 |
| 21-May-1995 |
leo | Minor fixes.
|
1.2 |
| 10-Apr-1995 |
mycroft | map --> mmap
|
1.1 |
| 26-Mar-1995 |
leo | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 26-Mar-1995 |
leo | NetBSD/Atari, port by Leo Weppelman.
|
1.18.6.1 |
| 12-Mar-1997 |
is | Merge in Changes from The Trunk.
|
1.22.18.1 |
| 30-Jun-2000 |
simonb | Pull up mmap paddr_t/off_t changes from trunk.
|
1.22.8.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.25.8.4 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.25.8.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.25.8.2 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.25.8.1 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.25.4.5 |
| 10-Oct-2002 |
jdolecek | use nokqfilter (or seltrue_kqfilter()) for drivers which provide poll routine very similar to seltrue(); the poll routines would be cleaned up on trunk
|
1.25.4.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.25.4.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.25.4.2 |
| 17-Jun-2002 |
jdolecek | make compilable - use cdev_decl(), and remove unnecessary prototypes from headers
|
1.25.4.1 |
| 12-Sep-2001 |
thorpej | Add noop kqueue entry points.
|
1.25.2.1 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.26.4.1 |
| 19-May-2002 |
gehenna | Add device switch. Replace the access to devsw table and the hard-coded majors with devsw API.
|
1.31.6.4 |
| 17-Jan-2005 |
skrll | Adapt to branch.
|
1.31.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.31.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.31.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.34.16.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.34.16.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.35.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.36.58.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.36.52.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.36.44.3 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.36.44.2 |
| 19-Aug-2009 |
yamt | sync with head.
|
1.36.44.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.41.4.3 |
| 12-Jun-2011 |
rmind | sync with head
|
1.41.4.2 |
| 05-Mar-2011 |
rmind | sync with head
|
1.41.4.1 |
| 30-May-2010 |
rmind | sync with head
|
1.41.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.43.4.1 |
| 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.43.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.44.2.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.47.16.1 |
| 18-May-2014 |
rmind | sync with head
|
1.47.12.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.47.2.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.48.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.49.28.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.50.12.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.51.2.1 |
| 13-May-2021 |
thorpej | Sync with HEAD.
|
1.52.6.1 |
| 03-Aug-2021 |
thorpej | Adapt to CFARGS().
|