Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/atari/dev/ite_cc.c
RevisionDateAuthorComments
 1.47  06-Jan-2023  tsutsui TAB/spaces/indents cleanup.
 1.46  26-Jun-2022  tsutsui Use aprint_*(9) for device attach messages.
 1.45  25-Jun-2022  tsutsui Add a minimum DEC special graphics character support for atari ite(4).

This closes PR port-atari/46647 (Menu borders in sysinst appear as
characters with diacritical marks instead of graphics characters).

Switching encoding support by "ESC ( <F>" sequence for vt220 was
pulled from x68k ite(4) (that already supports ISO-2022-JP and EUC-JP).
Note atari's fonts already include DEC special graphics characters.
ET4000 on Hades is untested due to long-term lack of hardware.
Discussed on port-atari@ etc.
 1.44  28-Mar-2022  riastradh sys: Split struct device into a private device_impl.h.

Include this only inside autoconf itself, and a few files that abuse
autoconf in ways I can't confidently make easy fixes for.

XXX kernel ABI change requires bump -- no more use of struct device
internals allowed, previously done by some drivers
 1.43  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.42  27-Apr-2021  thorpej branches: 1.42.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.41  24-Apr-2021  thorpej branches: 1.41.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.40  29-Jun-2019  tsutsui branches: 1.40.2; 1.40.12;
Make local functions static.
 1.39  03-Sep-2018  riastradh Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
 1.38  27-Oct-2012  chs branches: 1.38.36; 1.38.38;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.37  05-Jun-2011  tsutsui branches: 1.37.2; 1.37.12;
Split device_t/softc. Also rename some softc variables. Tested on TT030.

XXX: old ugly config_console() hack should go away...
 1.36  13-Apr-2010  tsutsui branches: 1.36.2; 1.36.6;
Misc KNF.
 1.35  09-Feb-2010  wiz branches: 1.35.2;
Fix typo in comment.
 1.34  19-Jul-2009  tsutsui branches: 1.34.2;
Remove extra whitespace added by a dumb tool which replaced bcopy with memcpy.
 1.33  18-Mar-2009  cegger bcopy -> memcpy
 1.32  18-Mar-2009  cegger bzero -> memset
 1.31  18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.30  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.29  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.28  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.27  04-Mar-2007  christos branches: 1.27.44; 1.27.52; 1.27.58;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.26  26-Mar-2006  thorpej branches: 1.26.14;
Use device_unit().
 1.25  24-Dec-2005  perry branches: 1.25.4; 1.25.6; 1.25.8; 1.25.10; 1.25.12;
__asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
 1.24  24-Dec-2005  perry bare asm -> __asm
 1.23  11-Dec-2005  christos merge ktrace-lwp.
 1.22  15-Jul-2003  lukem branches: 1.22.16;
__KERNEL_RCSID()
 1.21  01-Jan-2003  thorpej branches: 1.21.2;
Use aprint_normal() for cfprint routines.
 1.20  02-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  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  10-Jul-2001  leo branches: 1.16.6;
Nuke another cf_unit abuse.
 1.15  11-Feb-2000  leo branches: 1.15.8;
Move the ite_default_* variables to ite.c. They are generic ite.
 1.14  12-Jan-1998  thorpej branches: 1.14.14;
Update for changes to config.
 1.13  15-Jul-1997  leo Garbage collect bell-ioctl's.
 1.12  20-Dec-1996  leo Get rid of BROKEN_INDIRECT_CONFIG
 1.11  13-Oct-1996  christos backout previous kprintf changes
 1.10  11-Oct-1996  leo Remove grf_ite_ioctl(). Replace it by 'itexx_ioctl' that is configurable
per ite-type.
 1.9  11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.8  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.7  16-Sep-1996  leo Prepare for (soon to come) et4000 PCI console.
 1.6  18-Apr-1996  leo Yet more prototyping and -Wall fixes.
 1.5  22-Feb-1996  leo First bunch of changes due to stricter prototype checking.
 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 Fix UL-handling
 1.2  28-Mar-1995  leo Make ite ioctl work and fixup the colormap stuff.
 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.14.14.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.15.8.3  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.15.8.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.15.8.1  03-Aug-2001  lukem update to -current
 1.16.6.5  03-Jan-2003  thorpej Sync with HEAD.
 1.16.6.4  18-Oct-2002  nathanw Catch up to -current.
 1.16.6.3  17-Sep-2002  nathanw Catch up to -current.
 1.16.6.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.16.6.1  10-Jul-2001  nathanw file ite_cc.c was added on branch nathanw_sa on 2002-04-01 07:39:32 +0000
 1.17.4.1  19-May-2002  gehenna Replace the access to devsw table and the hard-coded majors with devsw API.
 1.21.2.4  17-Jan-2005  skrll Adapt to branch.
 1.21.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.21.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.21.2.1  03-Aug-2004  skrll Sync with HEAD
 1.22.16.2  03-Sep-2007  yamt sync with head.
 1.22.16.1  21-Jun-2006  yamt sync with head.
 1.25.12.1  28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.25.10.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.25.8.1  01-Apr-2006  yamt sync with head.
 1.25.6.1  22-Apr-2006  simonb Sync with head.
 1.25.4.1  09-Sep-2006  rpaulo sync with head
 1.26.14.1  12-Mar-2007  rmind Sync with HEAD.
 1.27.58.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.27.52.1  28-Apr-2009  skrll Sync with HEAD.
 1.27.44.4  11-Aug-2010  yamt sync with head.
 1.27.44.3  11-Mar-2010  yamt sync with head
 1.27.44.2  19-Aug-2009  yamt sync with head.
 1.27.44.1  04-May-2009  yamt sync with head.
 1.34.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.35.2.2  12-Jun-2011  rmind sync with head
 1.35.2.1  30-May-2010  rmind sync with head
 1.36.6.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.36.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.37.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.37.2.1  30-Oct-2012  yamt sync with head
 1.38.38.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.38.38.1  10-Jun-2019  christos Sync with HEAD
 1.38.36.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.40.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.40.2.1  11-Sep-2022  martin Pull up following revision(s) (requested by tsutsui in ticket #1518):

sys/arch/atari/dev/ite.c: revision 1.82
sys/arch/atari/dev/ite_cc.c: revision 1.45
sys/arch/atari/dev/ite_et.c: revision 1.36
sys/arch/atari/dev/itevar.h: revision 1.15

Add a minimum DEC special graphics character support for atari ite(4).

This closes PR port-atari/46647 (Menu borders in sysinst appear as
characters with diacritical marks instead of graphics characters).

Switching encoding support by "ESC ( <F>" sequence for vt220 was
pulled from x68k ite(4) (that already supports ISO-2022-JP and EUC-JP).

Note atari's fonts already include DEC special graphics characters.
ET4000 on Hades is untested due to long-term lack of hardware.

Discussed on port-atari@ etc.
 1.41.2.1  13-May-2021  thorpej Sync with HEAD.
 1.42.6.1  03-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed