The NetBSD Project

CVS log for src/sys/arch/luna68k/dev/lunafb.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / luna68k / dev

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.49 / (download) - annotate - [select for diffs], Mon Oct 3 17:42:35 2022 UTC (16 months, 2 weeks ago) by tsutsui
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.48: +9 -11 lines
Diff to previous 1.48 (colored)

Remove global hwplanecount and use ri_depth in struct rasops instead.

No functional change.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Oct 1 14:02:08 2022 UTC (16 months, 3 weeks ago) by tsutsui
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

Set an actual framebuffer depth (bpp) to rasops ri_depth.

The previous value was derived from OpenBSD/luna88k but
it has not been referenced even via ioctl(2).

Revision 1.47 / (download) - annotate - [select for diffs], Sun Sep 25 11:28:40 2022 UTC (16 months, 4 weeks ago) by isaki
Branch: MAIN
Changes since 1.46: +13 -9 lines
Diff to previous 1.46 (colored)

lunafb: Improve drawing performance using VRAM ROP features.
- Drawing a character on 4bpp normally needs 4 times writes, but by using
  VRAM ROP actively, it can be reduced to write only once.
  The same goes for copyrows.  If the whole row consists of only two colors
  (one foreground and one background), it can be copied by reading once and
  writing once, regardless of the number of planes.  Only if the row consists
  of more than two colors, it will be copied plane by plane.
- On 8bpp board, it acts as 4bpp (16 colors).
- On 4bpp board on the real LUNA-I(68030/20MHz), monochrome scroll is about
  4 times faster even without asm.  Using asm improves it by additional 5%
  (asm is enabled by default).
- By tsutsui@-san's report, even color scroll is about about 2 times faster
  on his 8bpp board on the real LUNA-II(68040).
This was first developped by Y.Sugahara back in late 2019, and was modified
a lot by me in 2022.
http://mail-index.netbsd.org/port-luna68k/2022/09/23/msg000072.html

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jul 14 20:13:21 2022 UTC (19 months, 1 week ago) by tsutsui
Branch: MAIN
Changes since 1.45: +17 -11 lines
Diff to previous 1.45 (colored)

Misc KNF and cosmetics.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jul 14 19:55:56 2022 UTC (19 months, 1 week ago) by tsutsui
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Fix pasto.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Jul 3 11:30:48 2022 UTC (19 months, 3 weeks ago) by andvar
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

fix various typos in comments, mainly s/pallete/palette/.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Aug 7 16:18:57 2021 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Merge thorpej-cfargs2.

Revision 1.42.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 02:37:20 2021 UTC (2 years, 6 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Adapt to CFARGS().

Revision 1.42 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:40 2021 UTC (2 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

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?).

Revision 1.41.10.1 / (download) - annotate - [select for diffs], Sun Mar 21 21:09:02 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

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.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:56 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.37: +8 -7 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Thu Oct 3 17:07:51 2019 UTC (4 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Pull up following revision(s) (requested by rin in ticket #271):

	sys/arch/luna68k/dev/lunafb.c: revision 1.41

Correct size of framebuffer; page offset appears only once,
not every color depths.

Pointed out by Araki Ken. Thanks!

Revision 1.41 / (download) - annotate - [select for diffs], Sun Sep 22 06:06:01 2019 UTC (4 years, 5 months ago) by rin
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-cfargs
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

Correct size of framebuffer; page offset appears only once,
not every color depths.

Pointed out by Araki Ken. Thanks!

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jul 23 14:34:11 2019 UTC (4 years, 7 months ago) by rin
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored)

For drivers whose framebuffer is located not page-aligned, permit
offset of mmap up to (length of framebuffer) + (page offset of base
address of framebuffer). This is necessary in order to map the
highest page of framebuffer correctly, see,
http://cvsweb.netbsd.org/bsdweb.cgi/xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c#rev1.35

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jun 30 05:04:48 2019 UTC (4 years, 7 months ago) by tsutsui
Branch: MAIN
Changes since 1.38: +5 -5 lines
Diff to previous 1.38 (colored)

Pull OpenBSD/luna88k board.h to define SX9100 board device addresses.

Also replace magic addresses with macro where appropriate.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jun 30 02:11:56 2019 UTC (4 years, 7 months ago) by tsutsui
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Misc KNF.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Jan 24 05:35:58 2018 UTC (6 years ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Fix integer overflows noted by Silvio Cesare of InfoSect.

Someone^TM should name these idioms so we can eliminate this class of
copypasta bug.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:23 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.26.2.1: +1 -4 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)

update from HEAD

Revision 1.25.8.3 / (download) - annotate - [select for diffs], Sun Nov 9 07:34:12 2014 UTC (9 years, 3 months ago) by msaitoh
Branch: netbsd-6
Changes since 1.25.8.2: +94 -69 lines
Diff to previous 1.25.8.2 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #1182):
	sys/arch/luna68k/conf/files.luna68k: revision 1.24
	sys/arch/luna68k/conf/GENERIC: revision 1.113 via patch
	sys/arch/luna68k/dev/omrasops.c: revision 1.17-1.19
	sys/arch/luna68k/dev/lunaws.c: revision 1.30
	sys/arch/luna68k/dev/omkbdmap.c: revision 1.1-1.2
	sys/arch/luna68k/dev/omkbdmap.h: revision 1.1
	sys/arch/luna68k/dev/lunafb.c: revision 1.31-1.36
	sys/arch/luna68k/dev/omrasopsvar.h: revision 1.3
- Setup Bt458 color palette to support ANSI color text on 8bpp framebuffer.
  Mostly taken from OpenBSD/luna88k.  Also sync some comments.
  Tested on LUNA-II, and mlterm-fb with 8bpp wallpaper also works fine.
  Thanks to Kenji Aoyama (OpenBSD/luna88k maintainer) for providing
  his spare 8bpp board.
- Use C99 struct initialization for wsdisplay_accessops.
- Use kmem(9) instead of malloc(9).
- Pull LUNA's keyboard driver changes from OpenBSD/luna88k. Now LUNA's
  keyboard works on Xorg server without tweaks by xmodmap(1) etc.
  - split keyboard mapping definitions to new files, omkbdmap.[ch]
  - add WSDISPLAY_COMPAT_RAWKBD support
    (actually the name is wrong; it doesn't emit raw keycode but
     converts MD code into PS/2 one as "raw keycode on x86" for Xorg server)
  - allow to enter into ddb by CTRL+ALT(zenmen)+ESC
  - remove unnecessary return values
- Add consistent prefix to a softc member name.
- Implement WSDISPLAYIO_SMODE ioctl for proper mmap and colormap handling.
  Tested on LUNA with 4bpp framebuffer.
  - allow mmap framebuffer memories only in WSDISPLAYIO_DUMBFB
  - initialize palette for ANSI text colors on back to WSDISPLAYIO_MODE_EMUL
- Pull readability changes from OpenBSD/luna88k.
  Tested on LUNA-II with 8bpp framebuffer.
  - prepare and use unpack_attr() function to get fg and bg from attribute
  - use proper variable names to clarify meanings
- Put dumb optimizations to avoid conditionals in putchar drawing loops.
  ~10% improvements of time cat results on LUNA-II 8bpp framebuffer.
- Fix unintended RCS Id substitution.
- Pull LUNA's framebuffer improvements by Kenji Aoyama from OpenBSD/luna88k.
  This Makes 4bpp wscons putchar ~30% on LUNA-II.
  http://marc.info/?l=openbsd-cvs&m=141199909120631&w=2
  > Use raster(logic) operation, or ROP, function on LUNA frame buffer.
  > It makes 4bpp wscons putchar ~20% faster.
  Also use the similar ROP in 1bpp putchar and cursor functions
  and the 1bpp putchar is also ~5% faster.
  While here, reduce diffs from OpenBSD a bit.
  Tested on all 1bpp/4bpp/8bpp framebuffers.
- Add options WSDISPLAY_COMPAT_RAWKBD for Xorg server.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Sun Oct 5 20:12:49 2014 UTC (9 years, 4 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.35: +3 -6 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #130):
	sys/arch/luna68k/dev/omrasops.c: revision 1.17
	sys/arch/luna68k/dev/omrasops.c: revision 1.18
	sys/arch/luna68k/dev/omrasops.c: revision 1.19
	sys/arch/luna68k/dev/omrasopsvar.h: revision 1.3
	sys/arch/luna68k/dev/lunafb.c: revision 1.36
Pull readability changes from OpenBSD/luna88k.
- prepare and use unpack_attr() function to get fg and bg from attribute
- use proper variable names to clarify meanings
Tested on LUNA-II with 8bpp framebuffer.
Put dumb optimizations to avoid conditionals in putchar drawing loops.
~10% improvements of time cat results on LUNA-II 8bpp framebuffer.
Pull LUNA's framebuffer improvements by Kenji Aoyama from OpenBSD/luna88k.
http://marc.info/?l=openbsd-cvs&m=141199909120631&w=2
> Use raster(logic) operation, or ROP, function on LUNA frame buffer.
> It makes 4bpp wscons putchar ~20% faster.
This Makes 4bpp wscons putchar ~30% on LUNA-II.
Also use the similar ROP in 1bpp putchar and cursor functions
and the 1bpp putchar is also ~5% faster.
While here, reduce diffs from OpenBSD a bit.
Tested on all 1bpp/4bpp/8bpp framebuffers.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Oct 4 16:58:17 2014 UTC (9 years, 4 months ago) by tsutsui
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.35: +3 -6 lines
Diff to previous 1.35 (colored)

Pull LUNA's framebuffer improvements by Kenji Aoyama from OpenBSD/luna88k.

http://marc.info/?l=openbsd-cvs&m=141199909120631&w=2
>> Use raster(logic) operation, or ROP, function on LUNA frame buffer.
>> It makes 4bpp wscons putchar ~20% faster.

This Makes 4bpp wscons putchar ~30% on LUNA-II.

Also use the similar ROP in 1bpp putchar and cursor functions
and the 1bpp putchar is also ~5% faster.
While here, reduce diffs from OpenBSD a bit.

Tested on all 1bpp/4bpp/8bpp framebuffers.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:10 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.26: +159 -85 lines
Diff to previous 1.26 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:00 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.30: +93 -65 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Rebase.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jul 25 16:40:12 2014 UTC (9 years, 7 months ago) by tsutsui
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.34: +63 -35 lines
Diff to previous 1.34 (colored)

Implement WSDISPLAYIO_SMODE ioctl for proper mmap and colormap handling.

- allow mmap framebuffer memories only in WSDISPLAYIO_DUMBFB
- initialize palette for ANSI text colors on back to WSDISPLAYIO_MODE_EMUL

Tested on LUNA with 4bpp framebuffer.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jul 24 14:09:09 2014 UTC (9 years, 7 months ago) by tsutsui
Branch: MAIN
Changes since 1.33: +7 -7 lines
Diff to previous 1.33 (colored)

Add consistent prefix to a softc member name.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jul 18 18:17:54 2014 UTC (9 years, 7 months ago) by tsutsui
Branch: MAIN
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

Use kmem(9) instead of malloc(9).

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 18 18:03:36 2014 UTC (9 years, 7 months ago) by tsutsui
Branch: MAIN
Changes since 1.31: +10 -8 lines
Diff to previous 1.31 (colored)

Use C99 struct initialization for wsdisplay_accessops.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jul 13 16:00:32 2014 UTC (9 years, 7 months ago) by tsutsui
Branch: MAIN
Changes since 1.30: +16 -18 lines
Diff to previous 1.30 (colored)

Setup Bt458 color palette to support ANSI color text on 8bpp framebuffer.

Mostly taken from OpenBSD/luna88k.  Also sync some comments.
Tested on LUNA-II, and mlterm-fb with 8bpp wallpaper also works fine.

Thanks to Kenji Aoyama (OpenBSD/luna88k maintainer) for providing
his spare 8bpp board.

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:39:55 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.25.2.1: +91 -45 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.26.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:15 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.26.4.1: +74 -49 lines
Diff to previous 1.26.4.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)

sync with head

Revision 1.25.8.2 / (download) - annotate - [select for diffs], Sun Jan 12 12:25:03 2014 UTC (10 years, 1 month ago) by bouyer
Branch: netbsd-6
Changes since 1.25.8.1: +89 -43 lines
Diff to previous 1.25.8.1 (colored) to branchpoint 1.25 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #1005):
	sys/arch/luna68k/dev/omrasops.c: revision 1.15
	sys/arch/luna68k/dev/omrasops.c: revision 1.16
	sys/arch/luna68k/dev/lunafb.c: revision 1.27
	sys/arch/luna68k/dev/lunafb.c: revision 1.28
	sys/arch/luna68k/dev/lunafb.c: revision 1.29
	sys/arch/luna68k/dev/lunafb.c: revision 1.30
	sys/arch/luna68k/dev/omrasopsvar.h: revision 1.2
	sys/arch/luna68k/dev/omrasops.c: revision 1.14
Properly initialize the palette for while on black even on 1bpp framebuffer.
Preparing for demonstration in Open Source Conference 2013 Kyoto.
Fix off by one in copyrows() backward case.
Make omrasops copycols() op work even if columns are not 32 bit aligned.
This means command line editing works properly in any cases.
The bitcopy strategies for 1bpp copycols() op are taken from
recently fixed MI sys/dev/rasops/rasops_bitops.h.
GETBITS() and PUTBITS() m68k asm macro are taken from hp300.
Tested on both 1bpp (on LUNA-II) and 4bpp (on LUNA) framebuffers.
Initialize capabilities in struct wsscreen_descr per omrasops settings.
Now REVERSE characters are drawn properly.
Add preleminary support of 4bpp LUNA framebuffer.
Changes details:
- prepare and switch 4bpp rasops functions that read/write all 4 planes
  and also handle both fg and bg colors
- make 1bpp ops use first plane on write rather than common bitmap plane
  (which is prepared for multiple plane write with raster ops)
- prepare 4bpp allocattr function to handle ANSI 16 color text
- split omrasops_init() function for each bpp
- move struct hwcmap from softc to hwdevconfig to sync palette values
  on initialization
- allow mmap(2) against all available planes
Now we can use ANSI 16 color text console and also can
demonstrate mlterm-fb with color sixel graphics and wallpaper.
XXX: Xserver needs much more work.
Pull a fix of Bt458 (8bpp framebuffer) initialization from OpenBSD/luna88k.
http://marc.info/?l=openbsd-cvs&m=138838884202196
> Correct initialization of Bt458, used in LUNA's 8bpp frame buffer.
>
> According to the manual, the address register does not automatically
> increment when we access to the control registers.  Also we disable
> overlay planes, because we do not use them.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Dec 30 13:14:48 2013 UTC (10 years, 1 month ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.29: +8 -3 lines
Diff to previous 1.29 (colored)

Pull a fix of Bt458 (8bpp framebuffer) initialization from OpenBSD/luna88k.

http://marc.info/?l=openbsd-cvs&m=138838884202196
>> Correct initialization of Bt458, used in LUNA's 8bpp frame buffer.
>>
>> According to the manual, the address register does not automatically
>> increment when we access to the control registers.  Also we disable
>> overlay planes, because we do not use them.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Dec 28 09:17:23 2013 UTC (10 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.28: +67 -48 lines
Diff to previous 1.28 (colored)

Add preleminary support of 4bpp LUNA framebuffer.

Changes details:
- prepare and switch 4bpp rasops functions that read/write all 4 planes
  and also handle both fg and bg colors
- make 1bpp ops use first plane on write rather than common bitmap plane
  (which is prepared for multiple plane write with raster ops)
- prepare 4bpp allocattr function to handle ANSI 16 color text
- split omrasops_init() function for each bpp
- move struct hwcmap from softc to hwdevconfig to sync palette values
  on initialization
- allow mmap(2) against all available planes

Now we can use ANSI 16 color text console and also can
demonstrate mlterm-fb with color sixel graphics and wallpaper.
XXX: Xserver needs much more work.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Dec 14 19:51:13 2013 UTC (10 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

Initialize capabilities in struct wsscreen_descr per omrasops settings.

Now REVERSE characters are drawn properly.

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:18 2013 UTC (10 years, 5 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.26: +25 -4 lines
Diff to previous 1.26 (colored)

sync with head

Revision 1.26.10.1 / (download) - annotate - [select for diffs], Tue Jul 23 21:07:34 2013 UTC (10 years, 7 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.26: +25 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

sync with HEAD

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jul 19 16:35:57 2013 UTC (10 years, 7 months ago) by tsutsui
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.26: +25 -4 lines
Diff to previous 1.26 (colored)

Properly initialize the palette for while on black even on 1bpp framebuffer.
Preparing for demonstration in Open Source Conference 2013 Kyoto.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:19:54 2012 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.25: +35 -40 lines
Diff to previous 1.25 (colored)

sync with head

Revision 1.25.8.1 / (download) - annotate - [select for diffs], Wed Jul 25 21:30:35 2012 UTC (11 years, 7 months ago) by martin
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.25: +35 -40 lines
Diff to previous 1.25 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #444):
	sys/arch/luna68k/conf/GENERIC: revision 1.99
	sys/arch/luna68k/dev/lunafb.c: revision 1.26
	sys/arch/luna68k/luna68k/locore.s: revision 1.48
	sys/arch/luna68k/dev/lunaws.c: revision 1.24
	sys/arch/luna68k/dev/omron_rfont.h: file removal
	sys/arch/luna68k/dev/omrasopsvar.h: revision 1.1
	sys/arch/luna68k/dev/omrasops.c: revision 1.12
	sys/arch/luna68k/dev/omrasops.c: revision 1.13
	sys/arch/luna68k/conf/INSTALL: revision 1.6
Use & not && to mask bits.  From OpenBSD/luna88k
Fix typo in comment.  From OpenBSD/luna88k.
Switch luna68k wscons framebuffer driver to using rasops(9) APIs instead of
deprecated rcons(4).  This allows "options FONT_foo" in kernel config files.
Mostly taken from OpenBSD/luna88k, but unnecessary MI rasops(9) stuff is
omitted since omrasops.c has own raster wsdisplay_emulops functions.
Tested on LUNA with 4bpp fb and LUNA-II with 1bpp fb.
Make reboot(2) actually work (don't access %sp after MMU is turned off).
Also cleanup spaces and #if 0'ed code.  Tested on both LUNA and LUNA-II.
Should be pulled up to netbsd-6.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jul 20 19:31:53 2012 UTC (11 years, 7 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet, riastradh-drm2
Changes since 1.25: +35 -40 lines
Diff to previous 1.25 (colored)

Switch luna68k wscons framebuffer driver to using rasops(9) APIs instead of
deprecated rcons(4).  This allows "options FONT_foo" in kernel config files.
Mostly taken from OpenBSD/luna88k, but unnecessary MI rasops(9) stuff is
omitted since omrasops.c has own raster wsdisplay_emulops functions.
Tested on LUNA with 4bpp fb and LUNA-II with 1bpp fb.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jul 27 14:17:54 2011 UTC (12 years, 6 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.24: +49 -50 lines
Diff to previous 1.24 (colored)

KNF, use uintNN_t, tab/space cosmetics etc.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jul 27 11:54:40 2011 UTC (12 years, 7 months ago) by tsutsui
Branch: MAIN
Changes since 1.23: +14 -11 lines
Diff to previous 1.23 (colored)

- split device_t/softc and use device_t and cfdata_t etc.
- use aprint_normal(9)
- include "ioconf.h" for struct cfdriver decls
No crash on LUNA.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jul 21 10:33:17 2011 UTC (12 years, 7 months ago) by tsutsui
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Add and return WSKBD_TYPE_LUNA and WSDISPLAY_TYPE_LUNA on WS*_GTYPE ioctls.

XXX: should we still sync <sys/dev/wsconsio.h> and src/sbin/wsconsctl/util.c?

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jul 21 10:06:59 2011 UTC (12 years, 7 months ago) by tsutsui
Branch: MAIN
Changes since 1.21: +44 -26 lines
Diff to previous 1.21 (colored)

Changes put for luna68k X.Org mono server demo at OSC 2011 Kansai @ Kyoto:
 - sprinkle volatile around register access
 - initialize pallete for WHITE on BLACK text
 - add WSDISPLAYIO_LINEBYTES ioctl(2)
 - fix index count in omsetcmap()
 - make omfbmmap() return cookie for OMFB_FB_RADDR to make
   X.Org wsfb driver work on 1bpp framebuffer memory
    (XXX: should revisit later)
 - make WSDISPLAYIO_GINFO always return 1bpp to avoid pallete mangled
   by X.Org server initialization
    (XXX: should revisit later)

Revision 1.16.14.1 / (download) - annotate - [select for diffs], Wed May 13 17:17:58 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.16: +27 -60 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.15.44.2 / (download) - annotate - [select for diffs], Mon May 4 08:11:24 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15.44.1: +27 -60 lines
Diff to previous 1.15.44.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

sync with head.

Revision 1.16.8.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:34:17 2009 UTC (14 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.16: +27 -60 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with HEAD.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Mar 18 10:22:31 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Ansify function definitions w/o arguments. Generated with sed.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Mar 16 23:11:11 2009 UTC (14 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.19: +3 -8 lines
Diff to previous 1.19 (colored)

ANSIfy functions with function-pointer arguments

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 14 21:04:10 2009 UTC (14 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.18: +4 -11 lines
Diff to previous 1.18 (colored)

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.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Mar 14 15:36:08 2009 UTC (14 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.17: +9 -30 lines
Diff to previous 1.17 (colored)

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.)

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 14 14:46:00 2009 UTC (14 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.16: +17 -17 lines
Diff to previous 1.16 (colored)

Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.

Revision 1.15.40.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:21 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.15: +2 -9 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Sync with HEAD.

Revision 1.15.42.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:19 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.15: +2 -9 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

sync with head.

Revision 1.15.44.1 / (download) - annotate - [select for diffs], Fri May 16 02:22:43 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15: +2 -9 lines
Diff to previous 1.15 (colored)

sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:26 2008 UTC (15 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, jym-xensuspend
Changes since 1.15: +2 -9 lines
Diff to previous 1.15 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.12.16.2 / (download) - annotate - [select for diffs], Mon Sep 3 14:27:04 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.12.16.1: +5 -5 lines
Diff to previous 1.12.16.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

sync with head.

Revision 1.14.14.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:48:42 2007 UTC (16 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.14: +5 -5 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Sync with HEAD.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Mar 4 06:00:03 2007 UTC (16 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, ppcoea-renovation-base, ppcoea-renovation, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.14: +5 -5 lines
Diff to previous 1.14 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:40:57 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.13: +9 -6 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

sync with head

Revision 1.12.16.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:52:58 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.12: +10 -7 lines
Diff to previous 1.12 (colored)

sync with head.

Revision 1.13.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:48:12 2006 UTC (17 years, 9 months ago) by tron
Branch: peter-altq
Changes since 1.13: +9 -6 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.13.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:56:58 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.13: +9 -6 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

sync with head.

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:37:40 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.13: +9 -6 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with head.

Revision 1.13.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 02:33:11 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.13: +9 -6 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

sync with head - hopefully this will work

Revision 1.14 / (download) - annotate - [select for diffs], Wed Apr 12 19:38:23 2006 UTC (17 years, 10 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp
Changes since 1.13: +9 -6 lines
Diff to previous 1.13 (colored)

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@.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Dec 11 12:17:52 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

merge ktrace-lwp.

Revision 1.11.2.4 / (download) - annotate - [select for diffs], Tue Jan 25 09:29:04 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.11.2.3: +5 -5 lines
Diff to previous 1.11.2.3 (colored) next main 1.12 (colored)

Adapt to branch.

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:17:24 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.11.2.2: +2 -2 lines
Diff to previous 1.11.2.2 (colored)

Fix the sync with head I botched.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:36:06 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.11.2.1: +0 -0 lines
Diff to previous 1.11.2.1 (colored)

Sync with HEAD.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:36:30 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.11: +26 -23 lines
Diff to previous 1.11 (colored)

Sync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Thu Nov 13 03:09:28 2003 UTC (20 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.11: +26 -23 lines
Diff to previous 1.11 (colored)

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.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 2 00:08:13 2003 UTC (20 years, 10 months ago) by thorpej
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Use PAGE_SIZE rather than NBPG.

Revision 1.6.10.4 / (download) - annotate - [select for diffs], Fri Oct 18 02:38:10 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.6.10.3: +2 -3 lines
Diff to previous 1.6.10.3 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Catch up to -current.

Revision 1.6.6.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:33:37 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.6.6.2: +4 -5 lines
Diff to previous 1.6.6.2 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 2 05:31:46 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.9: +4 -5 lines
Diff to previous 1.9 (colored)

Use CFATTACH_DECL().

Revision 1.6.6.2 / (download) - annotate - [select for diffs], Fri Sep 6 08:36:42 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.6.6.1: +5 -5 lines
Diff to previous 1.6.6.1 (colored) to branchpoint 1.6 (colored)

sync kqueue branch with HEAD

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Wed Sep 4 04:09:07 2002 UTC (21 years, 5 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.4.4.1: +3 -3 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

pullup (itojun)

sys/arch/amiga/dev/grf_cv3d.c			1.11
sys/arch/hpcmips/dev/mq200.c			1.21
sys/arch/i386/i386/sys_machdep.c		1.64
sys/arch/luna68k/dev/lunafb.c			1.9
sys/arch/sparc/dev/bt_subr.c			via patch
sys/arch/sparc64/dev/bt_subr.c			via patch
sys/arch/sun3/dev/bt_subr.c			via patch
sys/compat/ibcs2/ibcs2_stat.c			1.21-1.23
sys/dev/sun/bt_subr.c				1.3
sys/dev/tc/cfb.c				1.34
sys/dev/tc/sfb.c				1.53
sys/dev/tc/xcfb.c				1.29
  integer overflow.  reported by silvio@qualys.com

Revision 1.7.4.2 / (download) - annotate - [select for diffs], Sat Aug 31 13:45:00 2002 UTC (21 years, 5 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.7.4.1: +3 -3 lines
Diff to previous 1.7.4.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

catch up with -current.

Revision 1.6.10.3 / (download) - annotate - [select for diffs], Tue Aug 13 02:18:25 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.6.10.2: +1 -1 lines
Diff to previous 1.6.10.2 (colored) to branchpoint 1.6 (colored)

Catch up to -current.

Revision 1.7.6.1 / (download) - annotate - [select for diffs], Wed Aug 7 01:48:34 2002 UTC (21 years, 6 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Pull up revision 1.9 (requested by itojun in ticket #616):
integer overflow. from silvio@qualys.com

Revision 1.9 / (download) - annotate - [select for diffs], Tue Aug 6 22:48:13 2002 UTC (21 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

integer overflow. from silvio@qualys.com

Revision 1.6.10.2 / (download) - annotate - [select for diffs], Thu Aug 1 02:42:13 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.6.10.1: +2 -2 lines
Diff to previous 1.6.10.1 (colored) to branchpoint 1.6 (colored)

Catch up to -current.

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Tue Jul 16 08:35:20 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

catch up with -current.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jul 4 14:43:49 2002 UTC (21 years, 7 months ago) by junyoung
Branch: MAIN
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

alloc_attr -> allocattr

Approved by Matthias Drochner.

Revision 1.6.6.1 / (download) - annotate - [select for diffs], Sun Jun 23 17:37:37 2002 UTC (21 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

catch up with -current on kqueue branch

Revision 1.6.10.1 / (download) - annotate - [select for diffs], Mon Apr 1 07:40:45 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 17 19:40:42 2002 UTC (21 years, 11 months ago) by atatat
Branch: MAIN
CVS Tags: netbsd-1-6-base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

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.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Mon Nov 20 20:10:25 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.6.2.1: +502 -0 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

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.

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Fri Jun 30 16:27:27 2000 UTC (23 years, 7 months ago) by simonb
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.4: +8 -8 lines
Diff to previous 1.4 (colored)

Pull up mmap paddr_t/off_t changes from trunk.

Revision 1.6.2.1, Thu Jun 29 08:17:25 2000 UTC (23 years, 7 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.6: +0 -502 lines
FILE REMOVED

file lunafb.c was added on branch thorpej_scsipi on 2000-11-20 20:10:25 +0000

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 29 08:17:25 2000 UTC (23 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, ifpoll-base
Branch point for: thorpej_scsipi, nathanw_sa, kqueue
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 26 04:55:46 2000 UTC (23 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.4: +8 -8 lines
Diff to previous 1.4 (colored)

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.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jan 12 01:57:23 2000 UTC (24 years, 1 month ago) by nisimura
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl, chs-ubc2-newbase
Branch point for: netbsd-1-5
Changes since 1.3: +10 -8 lines
Diff to previous 1.3 (colored)

- Fix an error in clearing entire screen.
- Add 3 byte long mouse event parsing.
- Fix errors in comments.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 8 04:40:25 2000 UTC (24 years, 1 month ago) by nisimura
Branch: MAIN
Changes since 1.2: +7 -2 lines
Diff to previous 1.2 (colored)

Kludge to avoid a panic in badaddr() when no framebuffer is installed.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 6 00:19:10 2000 UTC (24 years, 1 month ago) by nisimura
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Fix a typo of screen size; pointed by tsubai.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 5 08:48:56 2000 UTC (24 years, 1 month ago) by nisimura
Branch: MAIN

Introduce NetBSD/luna68k port into CVS repository.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>