Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/hpcmips/dev/ite8181.c
RevisionDateAuthorComments
 1.31  28-May-2022  andvar fix various typos, mainly in comments.
 1.30  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.29  24-Apr-2021  thorpej branches: 1.29.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.28  27-Oct-2012  chs branches: 1.28.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.27  18-Mar-2009  cegger branches: 1.27.12; 1.27.22;
bzero -> memset
 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  04-Mar-2007  christos branches: 1.25.44; 1.25.52; 1.25.58;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.24  24-Sep-2006  jmcneill branches: 1.24.4;
Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
 1.23  26-May-2006  blymn branches: 1.23.6; 1.23.8;
Clean up bogus whitespace
 1.22  11-Dec-2005  christos branches: 1.22.4; 1.22.6; 1.22.8; 1.22.14;
merge ktrace-lwp.
 1.21  12-Dec-2004  abs branches: 1.21.10;
Fix comments regarding configration bounaries
 1.20  13-Nov-2003  chs eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed. however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors. most of
the callers of uvm_useracc() make the above incorrect assumption. the
rest are all misguided optimizations, which optimize for the case
where an operation will fail. we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors. since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
 1.19  15-Jul-2003  lukem __KERNEL_RCSID()
 1.18  06-Nov-2002  wiz branches: 1.18.6;
Fix typo. Reported by Jolan Luff in PR 18952.
 1.17  06-Aug-2002  itojun integer overflow. from silvio@qualys.com
 1.16  17-Mar-2002  atatat branches: 1.16.4; 1.16.6;
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.15  16-Sep-2001  uch branches: 1.15.4;
ANSIfy, KNF.
 1.14  22-Jul-2001  takemura branches: 1.14.2;
You must set 'HPCFB_SWAP_*' if bytes are stored in reverse order, i.e.
little endian like order, however, usage of 'HPCFB_SWAP_*' was widely
misunderstood because it reminded you of 'RI_BSWAP' in raster operation.
Please note that 'RI_BSWAP' indicate that frame buffer byte order is different
from natural order of system while 'HPCFB_REVORDER_*' is independent of
system byte order.
 1.13  17-Jul-2001  toshii "infomation" -> "information"
 1.12  11-Jun-2001  sato branches: 1.12.2;
not set HPCFB_SWAP_BYTE
 1.11  26-Mar-2001  sato o Change initialization for config_hook() base lcd control.
o Fix backlight control in case that light is controlable but not be
able to get status.
o change some verbose prints.
 1.10  12-Mar-2001  sato * assume backlight is on if backlight value cannot get.
* move the lcd control codes used config_hook_call()
in *_hardpower() to *_power().
 1.9  09-Mar-2001  sato support WSDISPLAYIO_SVIDEO/WSDISPLAYIO_GVIDEO.
lcd on/off
 1.8  27-Feb-2001  sato branches: 1.8.2;
* add WSDISPLAYIO_PARAM_BACKLIGHT, WSDISPLAYIO_PARAM_CONTRAST,
WSDISPLAYIO_PARAM_BRIGHTNESS supports.
 1.7  22-Feb-2001  uch hpc common files are moved to dev/hpc.
 1.6  15-Feb-2001  sato * show framebuffer address in boot time.
 1.5  23-Jan-2001  sato add 4bpp support (sync with mq200 rev1.6 -> 1.7)
 1.4  03-Dec-2000  takemura Change hf_baseaddr usage. Now it potins frame buffer start address instead
of hf_baseadd + hf_offset. You should use hf_baseaddr only in kernel and
you should use hf_offset only with mmap system call from userland.
 1.3  27-Oct-2000  sato branches: 1.3.2;
enlarge ITE8181_LCD_ON_SELF_DELAY.
 1.2  23-Oct-2000  sato - change constant to static variable for
ite8181 access delay parameter after lcd power on.
- ITE8181_WINCE_CMAP.
use presetting cmap by pbsdboot.exe(temporally)
 1.1  02-Oct-2000  sato experimental ite8181 video driver for hpcfb.
- just copy from bivideo.
- erase WindowsCE hardware cursor initialy.
- LCD power management codes exist, but currently disabled.
Because some devices(include ite8181) confuse after LCD power turn on.
WorkPad z50 power unit seem to be very weak,
 1.3.2.7  27-Mar-2001  bouyer Sync with HEAD.
 1.3.2.6  12-Mar-2001  bouyer Sync with HEAD.
 1.3.2.5  11-Feb-2001  bouyer Sync with HEAD.
 1.3.2.4  08-Dec-2000  bouyer Sync with HEAD.
 1.3.2.3  22-Nov-2000  bouyer Sync with HEAD.
 1.3.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.3.2.1  27-Oct-2000  bouyer file ite8181.c was added on branch thorpej_scsipi on 2000-11-20 20:45:57 +0000
 1.8.2.2  21-Jun-2001  nathanw Catch up to -current.
 1.8.2.1  09-Apr-2001  nathanw Catch up with -current.
 1.12.2.4  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.12.2.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.12.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.12.2.1  03-Aug-2001  lukem update to -current
 1.14.2.1  01-Oct-2001  fvdl Catch up with -current.
 1.15.4.4  11-Nov-2002  nathanw Catch up to -current
 1.15.4.3  13-Aug-2002  nathanw Catch up to -current.
 1.15.4.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.15.4.1  16-Sep-2001  nathanw file ite8181.c was added on branch nathanw_sa on 2002-04-01 07:40:24 +0000
 1.16.6.1  07-Aug-2002  lukem Pull up revision 1.17 (requested by itojun in ticket #616):
integer overflow. from silvio@qualys.com
 1.16.4.1  31-Aug-2002  gehenna catch up with -current.
 1.18.6.5  24-Jan-2005  skrll Adapt to branch.
 1.18.6.4  18-Dec-2004  skrll Sync with HEAD.
 1.18.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.18.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.18.6.1  03-Aug-2004  skrll Sync with HEAD
 1.21.10.3  03-Sep-2007  yamt sync with head.
 1.21.10.2  30-Dec-2006  yamt sync with head.
 1.21.10.1  21-Jun-2006  yamt sync with head.
 1.22.14.1  19-Jun-2006  chap Sync with head.
 1.22.8.1  26-Jun-2006  yamt sync with head.
 1.22.6.1  01-Jun-2006  kardel Sync with head.
 1.22.4.1  09-Sep-2006  rpaulo sync with head
 1.23.8.1  22-Oct-2006  yamt sync with head
 1.23.6.1  18-Nov-2006  ad Sync with head.
 1.24.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.25.58.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.25.52.1  28-Apr-2009  skrll Sync with HEAD.
 1.25.44.1  04-May-2009  yamt sync with head.
 1.27.22.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.27.12.1  30-Oct-2012  yamt sync with head
 1.28.52.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.29.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed