Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/hpcmips/dev/plumvideo.c
RevisionDateAuthorComments
 1.46  26-Feb-2025  andvar Fix typos in comments, mainly s/calcurate/calculate/.
 1.45  10-Sep-2023  andvar Remove custom DPRINTF/DPRINTFN definitions and reuse one defined in debug.h.
Remove "#undef PLUMVIDEODEBUG", it is not defined by default.

fixes PLUMVIDEODEBUG enabled build.
 1.44  16-Apr-2022  andvar s/setted/set/
 1.43  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.42  24-Apr-2021  thorpej branches: 1.42.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.41  27-Oct-2012  chs branches: 1.41.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.40  18-Mar-2009  cegger branches: 1.40.12; 1.40.22;
Ansify function definitions w/o arguments. Generated with sed.
 1.39  28-Apr-2008  martin branches: 1.39.8; 1.39.14;
Remove clause 3 and 4 from TNF licenses
 1.38  04-Mar-2007  christos branches: 1.38.40; 1.38.42; 1.38.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.37  11-Dec-2005  christos branches: 1.37.26;
merge ktrace-lwp.
 1.36  30-Jul-2005  nakayama Add LCD and battery control support for Sharp Telios series.
 1.35  12-Dec-2004  abs branches: 1.35.8; 1.35.10;
Fix comments regarding configration bounaries
 1.34  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.33  25-Oct-2003  mycroft Eliminate nested functions.
(There are a billion better ways to abstract this...)
 1.32  15-Jul-2003  lukem __KERNEL_RCSID()
 1.31  02-Oct-2002  thorpej branches: 1.31.6;
Use CFATTACH_DECL().
 1.30  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.29  27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.28  08-Jun-2002  yamt make auto const variables static.
(and space->tab)
 1.27  13-Apr-2002  takemura branches: 1.27.2;
Fixed dev/hpc/hpcfb.c to set RI_BSWAP flag in 8bpp for rasops8.c
and backout changes 'fix LCD byte-order setting':
arch/hpcsh/dev/hd64461/hd64461video.c Rev. 1.7 to 1.8
arch/hpcmips/dev/plumvideo.c Rev. 1.23 to 1.24
arch/hpcmips/tx/tx3912video.c Rev. 1.24 to 1.25
 1.26  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.25  06-Mar-2002  uch don't attach bivideo.
 1.24  19-Feb-2002  uch fix LCD byte-order setting.
 1.23  29-Jan-2002  uch clean up debug print and configuration.
 1.22  14-Nov-2001  thorpej branches: 1.22.2;
Merge the thorpej-mips-cache branch onto the trunk. This is an
overhaul of how caches are handled for NetBSD's MIPS ports.
 1.21  15-Sep-2001  uch branches: 1.21.2;
ANSIfy, KNF, change my copyright.
 1.20  05-Aug-2001  jdolecek branches: 1.20.2;
use unsigned variable types as appropriate
 1.19  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.18  21-May-2001  uch branches: 1.18.2;
fix WSDISPLAYIO_PUTCMAP bug.
 1.17  22-Feb-2001  uch branches: 1.17.2;
hpc common files are moved to dev/hpc.
 1.16  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.15  22-Oct-2000  uch branches: 1.15.2;
reverse color support.
 1.14  04-Oct-2000  uch experimental power management support for TX3912/TX3922 based model.
 1.13  29-Jun-2000  mrg remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.12  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.11  22-May-2000  uch branches: 1.11.4;
debug frame buffer draw routines moved to video_subr.c.
plumvideo also use it.
 1.10  21-May-2000  uch Get LCD size from PLUM2 Display control register.
 1.9  09-May-2000  uch fix WSDISPLAYIO_PUTCMAP return value.
 1.8  08-May-2000  uch implement 8bpp CLUT of Plum2, TX3912 video module.
 1.7  02-May-2000  uch add ioctl, mmap.
hpcfb directly attach to tx3912video and plumvideo. (no longer use bivideo)
XXX CLUT
 1.6  03-Apr-2000  sato - virtual TEXT vram implimentation.
- optimize scroll.
- hardware accelerator hooking mechanism (initianly, maybe change..)
- multiscreen (some bugs, so currently disabled)
- if you want disable above codes, #define HPCFB_DISABLE.
 1.5  25-Mar-2000  uch TOSHIBA TC6358TB(PLUM2) OHCI module support.
 1.4  13-Mar-2000  uch sync with hpcfb.
 1.3  26-Feb-2000  uch change power up sequence.
 1.2  07-Dec-1999  uch branches: 1.2.2;
frame buffer device support.
 1.1  21-Nov-1999  uch PLUM2(TC6358TB) TX3922 companion chip
 1.2.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.4.2  16-Aug-2001  tv Pullup [jdolecek]:

sys/arch/amiga/dev/grf_cl.c 1.26
sys/arch/amiga/dev/grfioctl.h 1.14
sys/arch/hpcmips/dev/plumvideo.c 1.20
sys/arch/macppc/dev/ofb.c 1.25
sys/arch/sparc/dev/cgtwo.c 1.35
sys/arch/sparc/include/fbio.h patch
sys/arch/sparc64/include/fbio.h patch
sys/arch/sun3/dev/cg2.c 1.14
sys/arch/sun3/include/fbio.h patch
sys/dev/pci/tga.c 1.35
sys/dev/tc/cfb.c 1.28
sys/dev/tc/mfb.c 1.27
sys/dev/tc/sfb.c 1.46
sys/dev/tc/sfbplus.c 1.10 via patch
sys/dev/tc/tfb.c 1.30
sys/dev/tc/xcfb.c 1.23
sys/net/if_ppp.c 1.71

Use unsigned variable types to make bounds checking more correct.
 1.11.4.1  30-Jun-2000  simonb Pull up mmap paddr_t/off_t changes from trunk.
 1.15.2.4  12-Mar-2001  bouyer Sync with HEAD.
 1.15.2.3  08-Dec-2000  bouyer Sync with HEAD.
 1.15.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.15.2.1  22-Oct-2000  bouyer file plumvideo.c was added on branch thorpej_scsipi on 2000-11-20 20:46:15 +0000
 1.17.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.18.2.7  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.18.2.6  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.18.2.5  16-Mar-2002  jdolecek Catch up with -current.
 1.18.2.4  11-Feb-2002  jdolecek Sync w/ -current.
 1.18.2.3  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.18.2.2  25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.18.2.1  03-Aug-2001  lukem update to -current
 1.20.2.1  01-Oct-2001  fvdl Catch up with -current.
 1.21.2.1  06-Nov-2001  uch Update for the new cache code.
 1.22.2.6  18-Oct-2002  nathanw Catch up to -current.
 1.22.2.5  20-Jun-2002  nathanw Catch up to -current.
 1.22.2.4  17-Apr-2002  nathanw Catch up to -current.
 1.22.2.3  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.22.2.2  28-Feb-2002  nathanw Catch up to -current.
 1.22.2.1  14-Nov-2001  nathanw file plumvideo.c was added on branch nathanw_sa on 2002-02-28 04:09:55 +0000
 1.27.2.1  14-Jul-2002  gehenna catch up with -current.
 1.31.6.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.31.6.5  24-Jan-2005  skrll Adapt to branch.
 1.31.6.4  18-Dec-2004  skrll Sync with HEAD.
 1.31.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.31.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.31.6.1  03-Aug-2004  skrll Sync with HEAD
 1.35.10.2  03-Sep-2007  yamt sync with head.
 1.35.10.1  21-Jun-2006  yamt sync with head.
 1.35.8.1  04-Aug-2005  tron Pull up revision 1.36 (requested by nakayama in ticket #637):
Add LCD and battery control support for Sharp Telios series.
 1.37.26.1  12-Mar-2007  rmind Sync with HEAD.
 1.38.44.2  04-May-2009  yamt sync with head.
 1.38.44.1  16-May-2008  yamt sync with head.
 1.38.42.1  18-May-2008  yamt sync with head.
 1.38.40.1  02-Jun-2008  mjf Sync with HEAD.
 1.39.14.1  13-May-2009  jym Sync with HEAD.

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

RSS XML Feed