Home | History | Annotate | Download | only in isa
History log of /src/sys/dev/isa/pcdisplay.c
RevisionDateAuthorComments
 1.47  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.46  24-Apr-2021  thorpej branches: 1.46.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.45  24-Apr-2020  ad branches: 1.45.4;
BUS_SPACE_MAP_PREFETCHABLE yields a write combining region on x86 and that's
not what I intended.. BUS_SPACE_MAP_CACHEABLE is enough.
 1.44  01-Dec-2019  ad branches: 1.44.6;
Map the video RAM cacheable/prefetchable, it's very slow and this helps a bit.
 1.43  21-Apr-2018  mlelstv branches: 1.43.2;
Fix an ancient typo, instead of setting the base address, the size
value is written leaving the autoconf setting (-1) as the address.
The value is only used for printing an attach message, the actual
pcdisplay_init code uses hard coded base addresses again.
 1.42  14-Jul-2016  msaitoh branches: 1.42.16;
KNF. No functional change.
 1.41  27-Oct-2012  chs branches: 1.41.14;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.40  19-Apr-2010  dyoung branches: 1.40.8; 1.40.18;
Add default implementations for bus_space_is_equal(9),
bus_space_tag_create(9), and bus_space_tag_destroy(9). Use
bus_space_is_equal(9) throughout the kernel to compare
bus_space_tag_t's. Tested on i386 and on sparc64.
 1.39  22-Mar-2010  dyoung isadma.c: #if 0 some diagnostic code that compares two bus_space_tag_t's.

pcdisplay.c: #if 0 some code that compares two bus_space_tag_t's
in order to see if pcdisplay0 is console. It does not seem to
be helpful to compare the tags; maybe the author intended to
compare some other bus property?

MI code should not compare an opaque type such as bus_space_tag_t!
 1.38  12-May-2009  cegger branches: 1.38.2; 1.38.4;
struct device * -> device_t, no functional changes intended.
 1.37  12-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.36  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.35  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.34  19-Oct-2007  ad branches: 1.34.20; 1.34.28; 1.34.34;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.33  04-Mar-2007  christos branches: 1.33.2; 1.33.14; 1.33.16; 1.33.20;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.32  16-Nov-2006  christos branches: 1.32.4;
__unused removal on arguments; approved by core.
 1.31  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.30  03-Sep-2006  christos branches: 1.30.2; 1.30.4;
add missing initializers
 1.29  12-Apr-2006  jmmv 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.28  11-Dec-2005  christos branches: 1.28.4; 1.28.6; 1.28.8; 1.28.10; 1.28.12;
merge ktrace-lwp.
 1.27  04-Feb-2005  perry branches: 1.27.6;
de-__P
 1.26  14-Sep-2004  drochner branches: 1.26.4; 1.26.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.25  24-Mar-2004  drochner remove license clauses 3 and 4 from my cpoyright notices
 1.24  29-Jun-2003  fvdl branches: 1.24.2;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.23  28-Jun-2003  darrenr Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
 1.22  02-Oct-2002  thorpej Fix sizeof and whitespace bug from the script I'm using to do the
CFATTACH_DECL conversion. (Grumble.)
 1.21  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.20  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.19  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.18  04-Jul-2002  junyoung alloc_attr -> allocattr

Approved by Matthias Drochner.
 1.17  17-Mar-2002  atatat branches: 1.17.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.16  07-Jan-2002  thorpej Overhaul of the ISA autoconfiguration code to support direct
configuration of devices logically attached to the ISA bus:

* Change the isa_attach_args to have arrays of io, mem, irq, drq
resources.
* Add a "pnpnames" and a linked list of "pnpcompatnames" to the
isa_attach_args. If either of these members are non-NULL,
direct configuration of the bus is being performed. Add an
ISA_DIRECT_CONFIG() macro to test for this.
* Drivers are not allowed to modify the isa_attach_args unless
direct configuration is not being performed and the probe fucntion
is returning success.
* Adapt device drivers -- currently, all driver probe routines return
"no match" if ISA_DIRECT_CONFIG() evaluates to true.
 1.15  16-Dec-2001  thorpej Try again: weasel -> weasel_isa
 1.14  16-Dec-2001  thorpej Oops, revert previous; it included some other changes there weren't
meant to be checked in.
 1.13  16-Dec-2001  thorpej weasel -> weasel_isa
 1.12  13-Nov-2001  lukem add RCSID
 1.11  04-Nov-2000  thorpej branches: 1.11.2; 1.11.4;
Add a device driver for the Middle Digital, Inc. PC-Weasel serial
console board. This glues into the `pcdisplay' driver and provides
support for the watchdog timer function on the PC-Weasel.
 1.10  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.9  25-Jan-2000  ad branches: 1.9.4;
Finish with fixing the SOFTCURSOR stuff.
 1.8  05-Jan-2000  ad Add and use pcdisplay_cursor_init(). Still a couple of nits with this, I
will resolve when I can test properly.
 1.7  06-Dec-1999  drochner update for changed struct wsdisplay_accessops:show_screen signature.
no functional changes
 1.6  11-Jan-1999  drochner branches: 1.6.8; 1.6.14;
remove dummy "load_font" entries
 1.5  13-Aug-1998  eeh Merge paddr_t changes into the main branch.
 1.4  24-Jul-1998  drochner branches: 1.4.2;
Initialize the new "dispoffset" (but don't use it for anything fancy).
 1.3  26-Jun-1998  drochner adapt to wsdisplay interface change
 1.2  21-Jun-1998  drochner adapt to wscons interface change
 1.1  28-May-1998  drochner Add a graphics device driver for wscons which supports legacy PC display
adapters. (minimal functionality - no virtual screens, no colors)
 1.4.2.2  08-Aug-1998  eeh Revert cdevsw mmap routines to return int.
 1.4.2.1  07-Aug-1998  drochner make it compile in paddr_t world
 1.6.14.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.6.8.2  22-Nov-2000  bouyer Sync with HEAD.
 1.6.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.9.4.1  30-Jun-2000  simonb Pull up mmap paddr_t/off_t changes from trunk.
 1.11.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.11.4.3  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.11.4.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.11.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.11.2.7  18-Oct-2002  nathanw Catch up to -current.
 1.11.2.6  01-Aug-2002  nathanw Catch up to -current.
 1.11.2.5  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.11.2.4  28-Feb-2002  nathanw Catch up to -current.
 1.11.2.3  11-Jan-2002  nathanw More catchup.
 1.11.2.2  08-Jan-2002  nathanw Catch up to -current.
 1.11.2.1  14-Nov-2001  nathanw Catch up to -current.
 1.17.4.1  15-Jul-2002  gehenna catch up with -current.
 1.24.2.5  04-Feb-2005  skrll Sync with HEAD.
 1.24.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.24.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.24.2.2  03-Aug-2004  skrll Sync with HEAD
 1.24.2.1  02-Jul-2003  darrenr Apply the aborted ktrace-lwp changes to a specific branch. This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it. This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.
 1.26.6.1  12-Feb-2005  yamt sync with head.
 1.26.4.1  29-Apr-2005  kent sync with -current
 1.27.6.4  27-Oct-2007  yamt sync with head.
 1.27.6.3  03-Sep-2007  yamt sync with head.
 1.27.6.2  30-Dec-2006  yamt sync with head.
 1.27.6.1  21-Jun-2006  yamt sync with head.
 1.28.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.28.10.1  19-Apr-2006  elad sync with head.
 1.28.8.2  03-Sep-2006  yamt sync with head.
 1.28.8.1  24-May-2006  yamt sync with head.
 1.28.6.1  22-Apr-2006  simonb Sync with head.
 1.28.4.1  09-Sep-2006  rpaulo sync with head
 1.30.4.2  10-Dec-2006  yamt sync with head.
 1.30.4.1  22-Oct-2006  yamt sync with head
 1.30.2.1  18-Nov-2006  ad Sync with head.
 1.32.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.33.20.1  25-Oct-2007  bouyer Sync with HEAD.
 1.33.16.1  06-Nov-2007  matt sync with HEAD
 1.33.14.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.33.2.1  23-Oct-2007  ad Sync with head.
 1.34.34.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.34.28.1  28-Apr-2009  skrll Sync with HEAD.
 1.34.20.3  11-Aug-2010  yamt sync with head.
 1.34.20.2  16-May-2009  yamt sync with head
 1.34.20.1  04-May-2009  yamt sync with head.
 1.38.4.1  30-May-2010  rmind sync with head
 1.38.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.40.18.2  03-Dec-2017  jdolecek update from HEAD
 1.40.18.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.40.8.1  30-Oct-2012  yamt sync with head
 1.41.14.1  05-Oct-2016  skrll Sync with HEAD
 1.42.16.1  22-Apr-2018  pgoyette Sync with HEAD
 1.43.2.1  08-Apr-2020  martin Merge changes from current as of 20200406
 1.44.6.1  25-Apr-2020  bouyer Sync with bouyer-xenpvh-base2 (HEAD)
 1.45.4.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.46.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed