Home | History | Annotate | Download | only in hpc
History log of /src/sys/dev/hpc/bivideo.c
RevisionDateAuthorComments
 1.37  28-May-2022  andvar fix various typos, mainly in comments.
 1.36  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.35  24-Apr-2021  thorpej branches: 1.35.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.34  13-Jun-2017  spz branches: 1.34.22;
correct size checks so they cannot be circumvented by integer overflows

reported by CTurt, thanks for the notification
 1.33  27-Oct-2012  chs branches: 1.33.12; 1.33.14; 1.33.16; 1.33.24; 1.33.30;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.32  13-Nov-2010  uebayasi branches: 1.32.8; 1.32.14; 1.32.18; 1.32.20; 1.32.22;
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants. These are provided by sys/param.h now.
 1.31  01-Aug-2010  tsutsui Replace powerhook_establish(9) with pmf(9).
 1.30  12-May-2009  cegger branches: 1.30.2; 1.30.4;
struct device * -> device_t, no functional changes intended.
 1.29  12-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.28  06-Apr-2008  cegger branches: 1.28.4; 1.28.18;
use aprint_*_dev and device_xname
 1.27  19-Oct-2007  ad branches: 1.27.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.26  04-Mar-2007  christos branches: 1.26.2; 1.26.14; 1.26.16; 1.26.20;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.25  10-Oct-2006  he branches: 1.25.4;
The use of a local variable is conditional on FBDEBUG, so make the
declaration too. Makes this build without FBDEBUG defined.
 1.24  09-Oct-2006  peter Remove (the default) #define XXXDEBUG and add the options to the relevant
files.xxx file.
 1.23  24-Sep-2006  jmcneill Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
 1.22  29-Mar-2006  thorpej branches: 1.22.8; 1.22.10;
Use device_private().
 1.21  11-Dec-2005  christos branches: 1.21.4; 1.21.6; 1.21.8; 1.21.10; 1.21.12;
merge ktrace-lwp.
 1.20  27-Feb-2005  perry branches: 1.20.4;
nuke trailing whitespace
 1.19  12-Dec-2004  abs branches: 1.19.2; 1.19.4;
Fix comments regarding configration bounaries
 1.18  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.17  02-Oct-2002  thorpej branches: 1.17.6;
Add trailing ; to CFATTACH_DECL.
 1.16  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.15  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.14  27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.13  17-Mar-2002  atatat 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.12  13-Nov-2001  lukem add RCSID
 1.11  22-Jul-2001  takemura 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.10  17-Jul-2001  toshii "infomation" -> "information"
 1.9  07-Jul-2001  toshii branches: 1.9.2;
bcopy -> memcpy, bzero -> memset.
 1.8  11-Jun-2001  sato not set HPCFB_SWAP_BYTE
 1.7  08-May-2001  uch fix RCS Id.
 1.6  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.5  12-Mar-2001  sato branches: 1.5.2;
* assume backlight is on if backlight value cannot get.
* move the lcd control codes used config_hook_call()
in *_hardpower() to *_power().
 1.4  09-Mar-2001  sato support WSDISPLAYIO_SVIDEO/WSDISPLAYIO_GVIDEO.
lcd on/off
 1.3  27-Feb-2001  sato branches: 1.3.2;
* add WSDISPLAYIO_PARAM_BACKLIGHT, WSDISPLAYIO_PARAM_CONTRAST,
WSDISPLAYIO_PARAM_BRIGHTNESS supports.
 1.2  24-Feb-2001  uch replace mips_btop, mips_ptob with mips, sh, arm common define.
ANSIfy and de-__P()
 1.1  22-Feb-2001  uch hpc common files are moved to dev/hpc.
 1.3.2.6  18-Oct-2002  nathanw Catch up to -current.
 1.3.2.5  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.2.4  14-Nov-2001  nathanw Catch up to -current.
 1.3.2.3  24-Aug-2001  nathanw Catch up with -current.
 1.3.2.2  21-Jun-2001  nathanw Catch up to -current.
 1.3.2.1  09-Apr-2001  nathanw Catch up with -current.
 1.5.2.3  27-Mar-2001  bouyer Sync with HEAD.
 1.5.2.2  12-Mar-2001  bouyer Sync with HEAD.
 1.5.2.1  12-Mar-2001  bouyer file bivideo.c was added on branch thorpej_scsipi on 2001-03-12 13:30:03 +0000
 1.9.2.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.9.2.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.9.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.9.2.1  03-Aug-2001  lukem update to -current
 1.17.6.6  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.17.6.5  24-Jan-2005  skrll Adapt to branch.
 1.17.6.4  18-Dec-2004  skrll Sync with HEAD.
 1.17.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.17.6.1  03-Aug-2004  skrll Sync with HEAD
 1.19.4.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.19.2.1  29-Apr-2005  kent sync with -current
 1.20.4.4  27-Oct-2007  yamt sync with head.
 1.20.4.3  03-Sep-2007  yamt sync with head.
 1.20.4.2  30-Dec-2006  yamt sync with head.
 1.20.4.1  21-Jun-2006  yamt sync with head.
 1.21.12.1  31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.21.10.1  19-Apr-2006  elad sync with head.
 1.21.8.1  01-Apr-2006  yamt sync with head.
 1.21.6.1  22-Apr-2006  simonb Sync with head.
 1.21.4.1  09-Sep-2006  rpaulo sync with head
 1.22.10.1  22-Oct-2006  yamt sync with head
 1.22.8.1  18-Nov-2006  ad Sync with head.
 1.25.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.26.20.1  25-Oct-2007  bouyer Sync with HEAD.
 1.26.16.1  06-Nov-2007  matt sync with HEAD
 1.26.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.26.2.1  23-Oct-2007  ad Sync with head.
 1.27.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.28.18.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.28.4.2  11-Aug-2010  yamt sync with head.
 1.28.4.1  16-May-2009  yamt sync with head
 1.30.4.1  05-Mar-2011  rmind sync with head
 1.30.2.1  17-Aug-2010  uebayasi Sync with HEAD.
 1.32.22.1  15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1456):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.32.20.1  15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1456):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.32.18.2  03-Dec-2017  jdolecek update from HEAD
 1.32.18.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.32.14.1  15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1456):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.32.8.1  30-Oct-2012  yamt sync with head
 1.33.30.1  15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #39):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.33.24.1  15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1432):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.33.16.1  15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1432):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.33.14.1  28-Aug-2017  skrll Sync with HEAD
 1.33.12.1  15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1432):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.34.22.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.35.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed