Home | History | Annotate | Download | only in isa
History log of /src/sys/dev/isa/ega.c
RevisionDateAuthorComments
 1.33  14-Jul-2025  andvar s/swith size/with the size/ and s/swich/switch/ in comments.
 1.32  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.31  24-Apr-2021  thorpej branches: 1.31.8;
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.30  27-Oct-2012  chs branches: 1.30.54;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.29  12-May-2009  cegger branches: 1.29.12; 1.29.22;
struct device * -> device_t, no functional changes intended.
 1.28  12-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.27  16-Mar-2009  dsl ANSIfy functions with function-pointer arguments
 1.26  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.25  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.24  19-Oct-2007  ad branches: 1.24.20; 1.24.28; 1.24.34;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.23  28-Jul-2007  mjf branches: 1.23.4; 1.23.6; 1.23.10; 1.23.12;
Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
 1.22  09-Jul-2007  ad branches: 1.22.2;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.21  04-Mar-2007  christos branches: 1.21.2; 1.21.4;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.20  12-Apr-2006  jmmv branches: 1.20.12; 1.20.14; 1.20.18;
Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called. The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place. There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
 1.19  11-Dec-2005  christos branches: 1.19.4; 1.19.6; 1.19.8; 1.19.10; 1.19.12;
merge ktrace-lwp.
 1.18  27-Feb-2005  perry branches: 1.18.2; 1.18.4; 1.18.12; 1.18.14;
nuke trailing whitespace
 1.17  14-Sep-2004  drochner branches: 1.17.4; 1.17.6;
Separate the namespace for default (ie unspecified) locators used
by the isa.c bus driver and the "address/whatever not specified"
argument passed to leaf device drivers.
The former is "ISACF_XXX_DEFAULT" as generaterd by config(8), the latter
"ISA_UNKNOWN_XXX", defined in isavar.h.
This way we save a dependency of every ISA device driver on "locators.h".
 1.16  24-Mar-2004  drochner branches: 1.16.2; 1.16.4; 1.16.6;
remove license clauses 3 and 4 from my cpoyright notices
 1.15  02-Oct-2002  thorpej branches: 1.15.6;
Fix sizeof and whitespace bug from the script I'm using to do the
CFATTACH_DECL conversion. (Grumble.)
 1.14  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.13  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.12  07-Jul-2002  junyoung Remove __P.
 1.11  07-Jul-2002  junyoung Rename vc_ccol and vc_crow in struct pcdisplayscreen to cursorcol
and cursorrow, respectively, to be consistent with other members
in the structure.
 1.10  04-Jul-2002  junyoung alloc_attr -> allocattr

Approved by Matthias Drochner.
 1.9  17-Mar-2002  atatat branches: 1.9.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.8  08-Jan-2002  christos Deal with lossage caused by recent isa changes [/briq potr]
 1.7  13-Nov-2001  lukem add RCSID
 1.6  18-Jul-2001  thorpej bcopy -> memcpy
 1.5  26-Jun-2000  simonb branches: 1.5.2; 1.5.4; 1.5.6;
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.4  23-Mar-2000  thorpej branches: 1.4.4;
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.3  25-Jan-2000  ad Finish with fixing the SOFTCURSOR stuff.
 1.2  05-Jan-2000  ad Use pcdisplay_cursor_init().
 1.1  13-Dec-1999  drochner branches: 1.1.2;
First cut on an EGA driver. For initial testing, lacks some EGA vs CGA/MGA
identification. Can share more code with VGA later.
 1.1.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.4.1  30-Jun-2000  simonb Pull up mmap paddr_t/off_t changes from trunk.
 1.5.6.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.5.6.4  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.5.6.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.5.6.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.6.1  03-Aug-2001  lukem update to -current
 1.5.4.7  18-Oct-2002  nathanw Catch up to -current.
 1.5.4.6  01-Aug-2002  nathanw Catch up to -current.
 1.5.4.5  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.5.4.4  28-Feb-2002  nathanw Catch up to -current.
 1.5.4.3  11-Jan-2002  nathanw More catchup.
 1.5.4.2  14-Nov-2001  nathanw Catch up to -current.
 1.5.4.1  24-Aug-2001  nathanw Catch up with -current.
 1.5.2.2  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.5.2.1  26-Jun-2000  bouyer file ega.c was added on branch thorpej_scsipi on 2000-11-20 11:41:12 +0000
 1.9.4.1  15-Jul-2002  gehenna catch up with -current.
 1.15.6.4  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.15.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.15.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.15.6.1  03-Aug-2004  skrll Sync with HEAD
 1.16.6.1  12-Aug-2007  bouyer Pull up following revision(s) (requested by mjf in ticket #11348):
Pull up following revision(s) (requested by mjf in ticket #11348):
sys/dev/ic/pcdisplay_subr.c: revision 1.33 via patch
sys/dev/ic/vga_raster.c: revision 1.29 via patch
sys/dev/ic/vga.c: revision 1.95 via patch
sys/dev/rasops/rasops.c: revision 1.56 via patch
sys/dev/isa/ega.c: revision 1.23 via patch
Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
Set the 'ri' pointer before use.
 1.16.4.1  11-Aug-2007  bouyer Pull up following revision(s) (requested by mjf in ticket #11348):
sys/dev/ic/pcdisplay_subr.c: revision 1.33 via patch
sys/dev/ic/vga_raster.c: revision 1.29 via patch
sys/dev/ic/vga.c: revision 1.95 via patch
sys/dev/rasops/rasops.c: revision 1.56 via patch
sys/dev/isa/ega.c: revision 1.23 via patch
Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
Set the 'ri' pointer before use.
 1.16.2.1  12-Aug-2007  bouyer Pull up following revision(s) (requested by mjf in ticket #11348):
Pull up following revision(s) (requested by mjf in ticket #11348):
sys/dev/ic/pcdisplay_subr.c: revision 1.33 via patch
sys/dev/ic/vga_raster.c: revision 1.29 via patch
sys/dev/ic/vga.c: revision 1.95 via patch
sys/dev/rasops/rasops.c: revision 1.56 via patch
sys/dev/isa/ega.c: revision 1.23 via patch
Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
Set the 'ri' pointer before use.
 1.17.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.17.4.1  29-Apr-2005  kent sync with -current
 1.18.14.1  06-Aug-2007  ghen Pull up following revision(s) (requested by mjf in ticket #1815):
sys/dev/ic/pcdisplay_subr.c: revision 1.33 via patch
sys/dev/ic/vga_raster.c: revision 1.29 via patch
sys/dev/ic/vga.c: revision 1.95 via patch
sys/dev/rasops/rasops.c: revision 1.56 via patch
sys/dev/isa/ega.c: revision 1.23 via patch
Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
Set the 'ri' pointer before use.
 1.18.12.1  06-Aug-2007  ghen Pull up following revision(s) (requested by mjf in ticket #1815):
sys/dev/ic/pcdisplay_subr.c: revision 1.33 via patch
sys/dev/ic/vga_raster.c: revision 1.29 via patch
sys/dev/ic/vga.c: revision 1.95 via patch
sys/dev/rasops/rasops.c: revision 1.56 via patch
sys/dev/isa/ega.c: revision 1.23 via patch
Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
Set the 'ri' pointer before use.
 1.18.4.3  27-Oct-2007  yamt sync with head.
 1.18.4.2  03-Sep-2007  yamt sync with head.
 1.18.4.1  21-Jun-2006  yamt sync with head.
 1.18.2.1  06-Aug-2007  ghen Pull up following revision(s) (requested by mjf in ticket #1815):
sys/dev/ic/pcdisplay_subr.c: revision 1.33 via patch
sys/dev/ic/vga_raster.c: revision 1.29 via patch
sys/dev/ic/vga.c: revision 1.95 via patch
sys/dev/rasops/rasops.c: revision 1.56 via patch
sys/dev/isa/ega.c: revision 1.23 via patch
Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
Set the 'ri' pointer before use.
 1.19.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.19.10.1  19-Apr-2006  elad sync with head.
 1.19.8.1  24-May-2006  yamt sync with head.
 1.19.6.1  22-Apr-2006  simonb Sync with head.
 1.19.4.1  09-Sep-2006  rpaulo sync with head
 1.20.18.1  03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.20.14.1  12-Mar-2007  rmind Sync with HEAD.
 1.20.12.1  30-Jul-2007  liamjfoy Pull up following revision(s) (requested by mjf in ticket #799):
sys/dev/ic/pcdisplay_subr.c: revision 1.33
sys/dev/wscons/wsdisplay_vcons.c: revision 1.12
sys/dev/wscons/wsdisplay_vcons.c: revision 1.13
sys/dev/ic/vga_raster.c: revision 1.29
sys/dev/pci/chipsfb.c: revision 1.10
sys/dev/ic/vga.c: revision 1.95
sys/dev/rasops/rasops.c: revision 1.56
sys/dev/isa/ega.c: revision 1.23
Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
Set the 'ri' pointer before use.
 1.21.4.1  11-Jul-2007  mjf Sync with head.
 1.21.2.3  23-Oct-2007  ad Sync with head.
 1.21.2.2  20-Aug-2007  ad Sync with HEAD.
 1.21.2.1  01-Jul-2007  ad Adapt to callout API change.
 1.22.2.1  15-Aug-2007  skrll Sync with HEAD.
 1.23.12.2  28-Jul-2007  mjf Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
 1.23.12.1  28-Jul-2007  mjf file ega.c was added on branch matt-mips64 on 2007-07-28 20:28:58 +0000
 1.23.10.1  25-Oct-2007  bouyer Sync with HEAD.
 1.23.6.1  06-Nov-2007  matt sync with HEAD
 1.23.4.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.24.34.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.24.28.1  28-Apr-2009  skrll Sync with HEAD.
 1.24.20.2  16-May-2009  yamt sync with head
 1.24.20.1  04-May-2009  yamt sync with head.
 1.29.22.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.29.12.1  30-Oct-2012  yamt sync with head
 1.30.54.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.31.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed