Commit Graph

2953 Commits

Author SHA1 Message Date
martin 5370387bc5 Pull up following revision(s) (requested by riastradh in ticket #1007):
share/man/man9/rnd.9: revision 1.26
	share/man/man9/rnd.9: revision 1.27

Update rnd(9) man page to reflect reality since netbsd-7.
- Note rndsource_setcb, RND_FLAG_HASCB, and rnd_add_data_sync.
- Note user's obligation to serialize access to each rndsource.

Simplify macro usage.
2020-07-15 13:47:40 +00:00
martin d3789dd7fd Pull up following revision(s) (requested by skrll in ticket #805):
share/man/man9/cprng.9: revision 1.11

Fix cprng_fast64 return type to match code
2020-03-30 18:31:03 +00:00
martin 09dac0d30e Pull up following revision(s) (requested by sevan in ticket #621):
share/man/man9/callout.9: revision 1.29

Update callout_halt() to match src/sys/sys/callout.h
2020-01-21 11:21:52 +00:00
martin a36acae13c Pull up following revision(s) (requested by riastradh in ticket #508):
distrib/sets/lists/comp/mi: revision 1.2294
	share/man/man9/Makefile: revision 1.443
	sys/sys/atomic.h: revision 1.18
	share/man/man9/atomic_loadstore.9: revision 1.1
	share/man/man9/atomic_loadstore.9: revision 1.2

New atomic load/store operations for the kernel.

Guarantee no fusing and no tearing, and can optionally impose
ordering relative to other memory operations.

Unordered:
- atomic_load_relaxed
- atomic_store_relaxed

Ordered:
- atomic_load_acquire
- atomic_load_consume
- atomic_store_release

These are intended to match C11 semantics, and can be defined in
terms of the C11 atomic API when ready.

Document relation to atomic_ops(3) and membar_ops(3).
2019-12-08 14:26:38 +00:00
martin 53237ac71f Pull up following revision(s) (requested by sevan in ticket #174):
lib/libc/sys/chmod.2: revision 1.48
	lib/libc/sys/stat.2: revision 1.59
	lib/libc/sys/unlink.2: revision 1.30
	lib/libc/sys/lseek.2: revision 1.25
	lib/libc/sys/getuid.2: revision 1.18
	lib/libc/sys/chown.2: revision 1.37
	lib/libm/man/exp.3: revision 1.32
	lib/libm/man/log.3: revision 1.7
	lib/libc/sys/open.2: revision 1.60
	lib/libc/stdio/fopen.3: revision 1.36
	lib/libc/stdio/putc.3: revision 1.14
	lib/libc/sys/mount.2: revision 1.51
	share/man/man9/copy.9: revision 1.22
	share/man/man9/uiomove.9: revision 1.20
	lib/libc/sys/setuid.2: revision 1.23
	lib/libc/sys/close.2: revision 1.18
	sbin/init/init.8: revision 1.61
	lib/libc/sys/write.2: revision 1.36
	lib/libc/sys/read.2: revision 1.39
	sbin/init/init.8: revision 1.62
	lib/libc/sys/wait.2: revision 1.40
	usr.bin/tty/tty.1: revision 1.10
	lib/libc/sys/link.2: revision 1.33
	usr.bin/du/du.1: revision 1.24
	lib/libc/stdlib/exit.3: revision 1.17
	usr.bin/su/su.1: revision 1.53
	usr.bin/mail/mail.1: revision 1.66
	lib/libc/sys/fork.2: revision 1.25
	usr.bin/su/su.1: revision 1.54
	usr.bin/mail/mail.1: revision 1.67
	lib/libm/man/sin.3: revision 1.15
	share/man/man9/intro.9: revision 1.26
	share/man/man5/utmp.5: revision 1.17
	lib/libc/compat-43/creat.3: revision 1.17
	lib/libc/time/ctime.3: revision 1.61
	lib/libcompat/4.1/stty.3: revision 1.10
	usr.bin/dc/dc.1: revision 1.3
	lib/libm/man/cos.3: revision 1.17
	lib/libc/sys/chdir.2: revision 1.23
	lib/libc/gen/exec.3: revision 1.30
	lib/libc/gen/exec.3: revision 1.31
	games/bcd/bcd.6: revision 1.18
	games/bcd/bcd.6: revision 1.19
	usr.bin/write/write.1: revision 1.7
	usr.bin/wc/wc.1: revision 1.18
	usr.bin/pr/pr.1: revision 1.24
	usr.bin/who/who.1: revision 1.25
	lib/libc/sys/mkdir.2: revision 1.30
	lib/libc/stdio/getc.3: revision 1.13
	usr.bin/sort/sort.1: revision 1.40
	usr.bin/mesg/mesg.1: revision 1.11
	share/man/man5/passwd.5: revision 1.34
sort was there since v1
https://www.bell-labs.com/usr/dmr/www/man61.pdf

dc was in v1
https://www.bell-labs.com/usr/dmr/www/man12.pdf

du was in v1
https://www.bell-labs.com/usr/dmr/www/man12.pdf

mail was in v1
https://www.bell-labs.com/usr/dmr/www/man12.pdf

mesg was in v1
https://www.bell-labs.com/usr/dmr/www/man12.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man13.pdf

su was in v1
https://www.bell-labs.com/usr/dmr/www/man13.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man13.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man14.pdf
Update URL

write was in v1
https://www.bell-labs.com/usr/dmr/www/man14.pdf
grammar

passwd(5) was in v1
https://www.bell-labs.com/usr/dmr/www/man51.pdf

utmp(5) was present in v1
https://www.bell-labs.com/usr/dmr/www/man51.pdf

Earliest version of wtmp I could find was in v3
https://minnie.tuhs.org/cgi-bin/utree.pl?file=V3/man/man5/wtmp.5

Document history of chdir(2)
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history of chmod(2)
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history of chown(2)
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man21.pdf

create was present in v1
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history of exec()
Move statement on execlpe() & execvpe() to HISTORY section.

Document history
https://www.bell-labs.com/usr/dmr/www/man21.pdf

fork was present in v1
https://www.bell-labs.com/usr/dmr/www/man21.pdf
stat() was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

document history of fstat()
https://www.bell-labs.com/usr/dmr/www/man21.pdf

getuid was present in v1
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man21.pdf

stty & gtty were around since v1
https://www.bell-labs.com/usr/dmr/www/man21.pdf
https://www.bell-labs.com/usr/dmr/www/man22.pdf

mount & umount were present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

Open was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

read was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

seek was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

setuid was in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

unlink was presen in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

wait was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

write was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

start documenting history
exp was present in v1
https://www.bell-labs.com/usr/dmr/www/man31.pdf

Start documenting history
https://www.bell-labs.com/usr/dmr/www/man31.pdf

Start documenting history
https://www.bell-labs.com/usr/dmr/www/man31.pdf

log appeared in v1
https://www.bell-labs.com/usr/dmr/www/man31.pdf

putc & putw were in v1
https://www.bell-labs.com/usr/dmr/www/man31.pdf

putchar was in v4
https://minie.tuhs.org/cgi-bin/utree.pl?file=V4/man/man3/putchr.3

Start documenting history
https://www.bell-labs.com/usr/dmr/www/man31.pdf

Document history.
https://www.bell-labs.com/usr/dmr/www/man11.pdf
Between v1 & v6 UNIX, bcd was rewritten in C, but I don't know if which
version,
hence I've skipped mentioning it.
End sentence with a dot.
Remove superfluous Pp.
Remove superfluous Pp.
Remove superfluous Ns.
Remove superfluous Pp.
fetch(9) -> ufetch(9)
fetch(9) -> ufetch(9). Remove superfluous Pp.
fetch(9) -> ufetch(9). Remove reference to unimplemented ppi(9).
2019-09-05 08:19:40 +00:00
martin 46204e207a Pull up following revision(s) (requested by sevan in tickets
#154 - #164):

	share/man/man1/man1.x68k/tvctrl.1: revision 1.6
	share/man/man1/man1.x68k/aout2hux.1: revision 1.6
	share/man/man1/man1.x68k/palette.1: revision 1.7
	share/man/man9/arp.9: revision 1.27
	share/man/man1/man1.atari/edahdi.1: revision 1.12
	share/man/man1/man1.x68k/loadkmap.1: revision 1.7
	share/man/man1/man1.atari/msconfig.1: revision 1.9
	share/man/man1/man1.x68k/bellctrl.1: revision 1.16
	share/man/man1/man1.x68k/bellctrl.1: revision 1.17
	share/man/man4/null.4: revision 1.5
	share/man/man4/null.4: revision 1.6
	share/man/man1/man1.x68k/loadfont.1: revision 1.10
	share/man/man8/man8.next68k/boot.8: revision 1.5

Provide history.
Improve grammar and readability. Minor cosmetics.
Update arpresolve arguments
2019-09-02 17:17:11 +00:00
martin 76ab88f43d Pull up following revision(s) (requested by oster in ticket #167):
share/man/man9/copy.9: revision 1.21
	share/man/man9/intro.9: revision 1.25
	share/man/man9/uiomove.9: revision 1.19

s/Xr store/Xr ustore/ to fix cross-references in these man-pages.
2019-09-01 19:34:16 +00:00
martin ec60d080fb Pull up following revision(s) (requested by oster in ticket #166):
share/man/man9/Makefile: revision 1.439

oops. i must have deleted the 'u' in 'ustore.9' when partially
fixing the alphabeta ordering here.  fixes build.
2019-09-01 19:31:43 +00:00
martin b2d83b4f97 Pull up following revision(s) (requested by mrg in ticket #135):
distrib/sets/lists/comp/mi			1.2279
	distrib/sets/lists/modules/mi			1.123
	share/man/man9/Makefile				1.438
	share/man/man9/usbnet.9				1.1-1.9
	sys/dev/ic/rndisreg.h				1.3
	sys/dev/usb/TODO				1.47-1.52
	sys/dev/usb/TODO.usbmp				1.15,1.16
	sys/dev/usb/files.usb				1.157-1.167
	sys/dev/usb/if_aue.c				1.155-1.161
	sys/dev/usb/if_auereg.h				1.30-1.32
	sys/dev/usb/if_axe.c				1.103-1.119
	sys/dev/usb/if_axen.c				1.51-1.53,1.55-1.67
	sys/dev/usb/if_axenreg.h			1.15
	sys/dev/usb/if_cdce.c				1.54-1.67
	sys/dev/usb/if_cue.c				1.85,1.86
	sys/dev/usb/if_cuereg.h				1.23
	sys/dev/usb/if_kue.c				1.97-1.100
	sys/dev/usb/if_kuereg.h				1.23,1.24
	sys/dev/usb/if_mue.c				1.51-1.55
	sys/dev/usb/if_muereg.h				1.6
	sys/dev/usb/if_muevar.h				1.9
	sys/dev/usb/if_smsc.c				1.46-1.61
	sys/dev/usb/if_smscreg.h			1.6
	sys/dev/usb/if_smscvar.h			delete
	sys/dev/usb/if_udav.c				1.60-1.71
	sys/dev/usb/if_udavreg.h			1.14,1.15
	sys/dev/usb/if_upl.c				1.65,1.66
	sys/dev/usb/if_ure.c				1.15-1.31
	sys/dev/usb/if_urevar.h				1.4,1.5
	sys/dev/usb/if_url.c				1.67-1.70
	sys/dev/usb/if_urlreg.h				1.14
	sys/dev/usb/if_urndis.c				1.22-1.33
	sys/dev/usb/if_urtwn.c				1.72
	sys/dev/usb/ohci.c				1.290
	sys/dev/usb/uhub.c				1.143
	sys/dev/usb/usb.c				1.180
	sys/dev/usb/usb.h				1.118
	sys/dev/usb/usb_mem.c				1.71
	sys/dev/usb/usb_subr.c				1.238,1.239
	sys/dev/usb/usbdevs				1.772
	sys/dev/usb/usbdi.c				1.183,1.186
	sys/dev/usb/usbdi.h				1.97
	sys/dev/usb/usbdi_util.c			1.75
	sys/dev/usb/usbhist.h				1.5,1.6
	sys/dev/usb/usbnet.c				1.1-1.24
	sys/dev/usb/usbnet.h				1.1-1.14
	sys/dev/usb/usbroothub.c			1.9
	sys/dev/usb/xhci.c				1.109,1.110
	sys/modules/Makefile				1.223
	sys/modules/usbnet/Makefile			1.1

usbnet(9): Add common framework for USB network devices.
This bring various safety fixes to all updated drivers,
and includes locking clean up, detach safety when being
used or not, separate rx/tx locks to improve performance,
porting to NET_MPSAFE, many edge/error case bugs in
drivers fixed, as well as resovling PRs 54303 and 54308.
These drivers are converted: axe(4), axen(4), aue(4),
cdce(4), cue(4), kue(4), mue(4), smsc(4), udav(4),
upl(4), ure(4), url(4), and urndis(4).
2019-09-01 13:00:36 +00:00
martin f4bace0572 Pull up following revision(s) (requested by rin in ticket #56):
sys/dev/rasops/rasops.c: revision 1.120
	sys/dev/rasops/rasops.h: revision 1.40
	sys/dev/rasops/rasops.c: revision 1.121
	sys/dev/rasops/rasops.h: revision 1.41
	sys/dev/rasops/rasops.c: revision 1.122
	sys/dev/rasops/rasops.h: revision 1.42
	sys/dev/rasops/rasops.h: revision 1.43
	sys/dev/rasops/rasops.h: revision 1.44
	sys/dev/rasops/rasops.h: revision 1.45
	sys/dev/rasops/rasops.h: revision 1.46
	sys/dev/rasops/rasops.h: revision 1.47
	sys/dev/rasops/rasops.h: revision 1.48
	sys/dev/rasops/rasops32.c: revision 1.40
	sys/dev/rasops/rasops32.c: revision 1.41
	sys/dev/rasops/rasops32.c: revision 1.42
	sys/dev/rasops/rasops32.c: revision 1.43
	sys/dev/rasops/rasops32.c: revision 1.44
	sys/dev/rasops/rasops32.c: revision 1.45
	sys/dev/rasops/rasops32.c: revision 1.46
	sys/dev/rasops/rasops1-4_putchar.h: revision 1.1
	sys/dev/rasops/rasops1-4_putchar.h: revision 1.2
	sys/dev/rasops/rasops1-4_putchar.h: revision 1.3
	sys/dev/rasops/rasops1_putchar_width.h: revision 1.3
	sys/dev/rasops/rasops1_putchar_width.h: revision 1.4
	sys/dev/rasops/rasops1_putchar_width.h: revision 1.5
	sys/dev/rasops/rasops1_putchar_width.h: revision 1.6
	sys/dev/rasops/README: revision 1.7
	sys/dev/rasops/rasops_putchar_aa.h: revision 1.5
	sys/dev/rasops/rasops_putchar_aa.h: revision 1.6
	sys/dev/rasops/rasops8.c: revision 1.45
	sys/dev/rasops/rasops8.c: revision 1.46
	sys/dev/rasops/rasops8.c: revision 1.47
	sys/dev/rasops/rasops24.c: revision 1.40
	sys/dev/rasops/rasops8.c: revision 1.48
	sys/dev/rasops/rasops24.c: revision 1.41
	sys/dev/rasops/rasops8.c: revision 1.49
	sys/dev/rasops/rasops24.c: revision 1.42
	sys/dev/rasops/rasops24.c: revision 1.43
	sys/dev/rasops/rasops24.c: revision 1.44
	sys/dev/rasops/rasops_masks.c: revision 1.10
	doc/CHANGES: revision 1.2566
	sys/dev/rasops/rasops24.c: revision 1.45
	doc/CHANGES: revision 1.2567
	sys/dev/rasops/rasops24.c: revision 1.46
	sys/dev/rasops/rasops24.c: revision 1.47
	sys/dev/rasops/rasops24.c: revision 1.48
	sys/dev/rasops/rasops24.c: revision 1.49
	sys/dev/rasops/rasops_bitops.h: revision 1.19
	sys/dev/rasops/rasops_putchar_aa.h: file removal
	sys/dev/wscons/wsdisplay_vcons.c: revision 1.40
	sys/dev/rasops/rasops8.c: revision 1.50
	sys/dev/rasops/rasops8.c: revision 1.51
	sys/dev/rasops/rasops24.c: revision 1.50
	sys/arch/luna68k/dev/omrasops.c: revision 1.21
	sys/dev/rasops/rasops_bitops.h: revision 1.20
	sys/dev/wsfb/genfb.c: revision 1.68
	sys/dev/rasops/rasops_bitops.h: revision 1.21
	sys/dev/wsfb/genfb.c: revision 1.69
	sys/dev/rasops/rasops_putchar_width.h: revision 1.10
	sys/dev/rasops/rasops_bitops.h: revision 1.22
	sys/dev/rasops/rasops_putchar_width.h: revision 1.11
	sys/dev/rasops/rasops_bitops.h: revision 1.23
	sys/dev/rasops/rasops_putchar_width.h: revision 1.12
	sys/dev/rasops/rasops_bitops.h: revision 1.24
	sys/dev/rasops/rasops_putchar_width.h: revision 1.13
	sys/dev/rasops/rasops_bitops.h: revision 1.25
	sys/dev/rasops/rasops_putchar_width.h: revision 1.14
	sys/dev/rasops/rasops_putchar_width.h: revision 1.15
	sys/dev/rasops/rasops1.c: revision 1.32
	sys/dev/rasops/rasops1.c: revision 1.33
	sys/dev/rasops/rasops1.c: revision 1.34
	sys/dev/rasops/rasops1.c: revision 1.35
	sys/dev/rasops/rasops1.c: revision 1.36
	sys/dev/rasops/rasops1.c: revision 1.37
	sys/dev/rasops/rasops4.c: revision 1.21
	sys/dev/rasops/rasops4.c: revision 1.22
	sys/dev/rasops/rasops4.c: revision 1.23
	sys/dev/rasops/rasops4.c: revision 1.24
	sys/dev/rasops/rasops4.c: revision 1.25
	sys/dev/rasops/rasops4.c: revision 1.26
	sys/dev/rasops/rasops4.c: revision 1.27
	sys/dev/rasops/rasops4.c: revision 1.28
	sys/dev/wsfb/genfb.c: revision 1.70
	sys/dev/rasops/rasops2.c: revision 1.27
	sys/dev/rasops/rasops2.c: revision 1.28
	share/man/man9/rasops.9: revision 1.18
	sys/dev/rasops/rasops.c: revision 1.102
	sys/dev/rasops/rasops2.c: revision 1.29
	share/man/man9/rasops.9: revision 1.19
	sys/dev/rasops/rasops.c: revision 1.103
	sys/dev/rasops/rasops.c: revision 1.104
	sys/dev/rasops/rasops.c: revision 1.105
	sys/dev/rasops/rasops.c: revision 1.106
	sys/dev/rasops/rasops.c: revision 1.107
	sys/dev/rasops/rasops_putchar.h: revision 1.6
	sys/dev/rasops/rasops.c: revision 1.108
	sys/dev/rasops/rasops_putchar.h: revision 1.7
	sys/dev/rasops/rasops.c: revision 1.109
	sys/dev/rasops/rasops_putchar.h: revision 1.8
	sys/dev/rasops/rasops2.c: revision 1.30
	sys/dev/rasops/rasops2.c: revision 1.31
	sys/dev/rasops/rasops15.c: revision 1.32
	sys/dev/rasops/rasops2.c: revision 1.32
	sys/dev/rasops/rasops15.c: revision 1.33
	sys/dev/rasops/rasops2.c: revision 1.33
	sys/dev/rasops/rasops15.c: revision 1.34
	sys/dev/rasops/rasops15.c: revision 1.35
	sys/dev/rasops/rasops15.c: revision 1.36
	sys/dev/rasops/rasops.c: revision 1.110
	sys/dev/rasops/rasops15.c: revision 1.37
	sys/dev/rasops/rasops.c: revision 1.111
	sys/dev/rasops/rasops15.c: revision 1.38
	sys/dev/rasops/rasops.c: revision 1.112
	sys/dev/rasops/rasops15.c: revision 1.39
	sys/dev/rasops/rasops.c: revision 1.113
	sys/dev/rasops/rasops.c: revision 1.114
	sys/dev/rasops/rasops.c: revision 1.115
	sys/dev/rasops/rasops_masks.h: revision 1.9
	sys/dev/rasops/rasops.c: revision 1.116
	sys/dev/rasops/rasops.c: revision 1.117
	sys/dev/rasops/rasops.c: revision 1.118
	sys/dev/rasops/rasops.c: revision 1.119
	sys/dev/rasops/rasops.h: revision 1.39

Misc clean-up's:
- protect private stuff in rasops.h by _RASOPS_PRIVATE
- staticify rasops_copycols() and rasops_isgray[]
- G/C unused extern int cold
Switch to per-device stamp, and retire stamp_mutex.

Provide buffer capable of single-row pixels in order to make things simpler.

Factor out copy-paste. No functional changes.
When font is switched, not only putchar, but also other ri_ops can be
changed by backend driver, e.g., see rasops1.c:
https://nxr.netbsd.org/xref/src/sys/dev/rasops/rasops1.c#58
4 is 1 << 2, not 1 << 3...

Fix erasecols and do_cursor for font width >= 32 bits.
Also, some cosmetic clean-up's.

Oops, for rasops_copycols(), we cannot use memmove even if src == dst.
On the other hand, memmove is safe for rasops_copyrows().
Fix unaligned writes to buffer, that are introduced in 1.105:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/rasops/rasops.c#rev1.105

Support font width 32 on monochrome screen.

Remove duplicate substitution. Style. No functional changes.

Correct copy count. This affects ``left-to-right'' copy for region
including word boundary.

Fix a bug in shadow fb support for copycols on 1, 2, and 4bpp screen,
which was introduced in 1.18:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/rasops/rasops_bitops.h#rev1.18

Add general putchar functions for 2 and 4bpp.
Note that 1bpp continues to use its local version in rasops1.c,
which is much faster and simpler.

Cosmetic changes. No functional changes.

Reflect reality.

Notify size of shadow framebuffer if enabled.

Fix unaligned word write's to buffer, introduced in rev 1.42:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/rasops/rasops24.c#rev1.42

Real fix for 24-bpp color:
- When centering screen, locate effective base address of framebuffer to
  both word and 24-bit color boundary.
- Consistently convert ri_devcmap to ``big endian'' if not RI_BSWAP.

Also, fix possible bug for 15/16-bpp with RI_BSWAP (not tested).

Protect rasops_copy{rows,cols}() by _RASOPS_PRIVATE.

Use _KERNEL_OPT.

Simplify calculation for 12-byte alignment.
No functional changes.

Fix black color-attribution for depths 2 and 4.

Depth 2 is monochrome.
IMO, it is impossible to support ANSI colors on 2-bpp display; fore-
and background can be same value even if they are different colors
logically.

Fix a critical bug for rasops_copyrows() introduced in rev. 1.90:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/rasops/rasops.c#rev1.90
When src < dst, we have to copy backward.

Simplify rasops_do_cursor():
- Use static masks similar to that used in rasops_bitops.h,
  rather than generating them on the fly.
- Use pointer for proper type to avoid unnecessary casts.

Use "hp" instead of "hrp" consistently with other files.
No functional changes.

Stop allocating ri_buf and ri_stamp dynamically. As commented in
rasops.h, it is not safe to use kmem_alloc(9) in rasops_init();
rasops routines can be used for early putchar, which means that
UVM is not fully initialized.

Should fix a problem reported by macallan:
http://mail-index.netbsd.org/tech-kern/2019/08/02/msg025327.html

Instead of using ri_buf, inline function rasops_memcpy32() is
introduced to fill 32bit data efficiently.

Instead of using ri_stamp (per device stamp), stamp_ri is
introduced to distinguish for which device stamp is calculated.

Oops, revert an unintentional change for now.

If RI_CLEAR is set, do not forget to clear real framebuffer.

Modify struct rasops_info again (ride 9.99.4 bump).
- remove ri_buf and friends.
- remove ri_stamp and frieds.
- introduce ri_ul, which will be used for scaling underline with font.

Also add hack for ri_ul; adjust its size to obsoleted member, ri_delta,
which was only used rasops routines internally. Now, size and offsets of
all members of struct rasops_info become same with netbsd-9, -8, and -7,
again. So we can safelly pull up fixes to any release branches!

Scaling dimensions of underline by font height.

Currently,
- offset of underline is fixed to 1-row from bottom of characters, and
- height of underline is fixed to 1.
Both are good for standard 8x16 fonts. However, it is too thin for
larger fonts, especially when used on display of high resolution.
Also, 1-row offset of underline is ugly for small fonts, e.g.,
spleen5x8.
Therefore, adjust offset and height as,
- no changes for standard 16-height fonts.
- scaling by font height for larger fonts.
- set offset to zero for fonts of height smaller than 16.

Merge rasops_putchar_aa.h into rasops_putchar.h.

Support scaling underline dimensions by font height.

Separate general putchar for 1-4bpp from rasops_bitops:
- Support anti-aliasing for 2bpp, which works perfectly!
- Support scaling underline dimensions with font height.

We support anti-aliasing for depth 2.
Use switch appropriately.
- Stop showing struct rasops_info; readers can read the header itself.
- Correct description for optimized font widths.
- Remove strange blank line.

Try to improve formatting and naration.

Make rasops_erase{rows,cols}() public again; hp300/diofb uses them.
Pointed out by martin.

When legacy Apple 4-bpp color palette is used, make green dark so that
kernel messages are printed nicely on white background.

Fix color range overflow; we cannot make bright colors more brighter.

Correctly check whether character is in font in rasops_mapchar().
Also, make sure that in putchar functions for completeness.

Fix bug introduced in rev. 1.69:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/wsfb/genfb.c#rev1.69
is_bgr should be initialized to false. Otherwise, color becomes strange
for depths 24 and 32 unless backend explicitly set "is_bgr" property.

Set 4-bpp devcmap in a similar manner to non-RGB case of 8-bpp.
No functional changes since this is not in use (4-bpp is monochrome).

Misc style clean up's.
- Introduce and use proper macros.
- Use not ambiguous variable names.
- Unify similar functions as possible as I can.
- G/C unused headers.
- Use #include <dev/rasops/foo.h> instead of "foo.h"

No particular functional changes intended.

My work for rasops(9) was finished (hopefully).

I will send pull-up request for netbsd-9, if there are no new failures
reported within few days.

Fix format in order not to confuse changes2html script.
Minor improvements of wording for my entry.

When using stamp, drop attributions other than back and foreground
colors so that stamp is not updated unnecessarily.
2019-08-15 12:21:27 +00:00
gutteridge 94ef24d019 cnmagic.9: add xref to ddb(4), and minor grammatical fixes 2019-07-07 21:24:20 +00:00
wiz 999ac309ae Remove superfluous Pp. 2019-06-12 13:53:24 +00:00
isaki da8ee8f6d2 Describe about get_props() properties. 2019-06-12 13:14:31 +00:00
wiz 4fcb205f89 Fix some typos and remove cargo-cult quoting. 2019-05-21 09:24:21 +00:00
christos 120c6c97f3 document vasprintf 2019-05-20 20:25:09 +00:00
alnsn 4c664ba03b Don't mention SVS because it can't be changed anymore. 2019-05-18 10:21:03 +00:00
wiz d2dc8d6bf5 Bump date. 2019-05-09 09:35:18 +00:00
wiz 2d27efa0f1 Improve wording, add more formatting. 2019-05-09 09:32:26 +00:00
isaki b040836639 Update manpages respond to isaki-audio2 branch. 2019-05-08 14:25:38 +00:00
christos 1371fc4088 sync with reality 2019-05-05 20:10:57 +00:00
abhinav 250b46e12d Split the examples into two separate literal sections
ok wiz@
2019-04-12 11:02:22 +00:00
sevan 75e05bff3f Add instructions on how to determine the scheduler in use. 2019-04-09 13:53:52 +00:00
wiz 482a367e19 Remove superfluous comma. Try improving a sentence. Remove duplicate sentence. 2019-04-08 13:30:46 +00:00
maya 059f51c313 Update to reference the newer (committed long ago) API.
With comments from Rocky Hotas on netbsd-docs, thanks.
2019-04-08 13:04:54 +00:00
pgoyette f1af096dd8 Make explicit note that MODULE_CLASS_ANY should note be used as the
class of a MODULE().  MODULE_CLASS_ANY is intended only to indicate
a "wildcard" match when (auto)loading modules.
2019-04-07 22:32:10 +00:00
wiz 6dd0eaa656 Remove superfluous Pp. 2019-04-06 07:57:04 +00:00
wiz 86980933f2 Sort sections. Fix typo. Remove superfluous Pp. 2019-04-06 07:56:49 +00:00
wiz 5772cf82d8 Fix short description. 2019-04-06 07:56:19 +00:00
thorpej 91bfaeb675 Overhaul the API used to fetch and store individual memory cells in
userspace.  The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms.  The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.
2019-04-06 03:06:23 +00:00
wiz a5e84fe723 New sentence, new line. Fix Dd argument. 2019-03-19 10:17:35 +00:00
ryo 88f5c690f5 add INIT_ONCE(9), FINI_ONCE(9) with changing once_t.
Welcome to 8.99.36
2019-03-19 08:16:51 +00:00
pgoyette 4561b064b3 Add explicit cross-references to pserialize(9) for the sections about
ensuring that a localcount doesn't disappear while in the process of
being referenced, in the same manner as psref(9).
2019-02-25 21:43:00 +00:00
rin 35582ab2a7 Install spi.9 and friends. 2019-02-24 02:29:56 +00:00
wiz e38ac3b5cb New sentence, new line. Add missing Nd. Remove superfluous Rs. 2019-02-23 17:37:10 +00:00
mlelstv 975ce0ba8d Add userland driver to spi framework.
Previously spi would configure the controller to use the lowest speed of
all connected devices since the kernel started and to fail attempted mode
changes. This is now improved to keep individual modes and speeds for each
slave and to reconfigure the controller as necessary for each transfer.

Added man page for spi(9).
2019-02-23 10:43:25 +00:00
wiz 75d36790ae Mark up NULL with Dv. 2019-02-16 07:00:56 +00:00
isaki aef27bc2ab Two minor fixes.
- 0 -> NULL.
- avoid K&R and sync with reality.
2019-02-16 06:51:04 +00:00
christos 4ccd0e4c6d document PR_ZERO 2019-02-10 17:15:45 +00:00
wiz f43feba001 Grammar fix. 2019-01-27 17:44:02 +00:00
maxv 65d06f3f0e Remove the satlink driver. It was disabled everywhere, had no man page and
no use either. Spotted by thorpej in PR/21345, ok christos.
2019-01-27 08:53:28 +00:00
pgoyette d91f98a871 Merge the [pgoyette-compat] branch 2019-01-27 02:08:33 +00:00
wiz 2426c51b97 Remove Pp before It, where it has no effect. 2019-01-14 15:56:06 +00:00
mrg 94ad063926 add a note about pmap_activate() and pmap_deactivate() not being allow to block. 2019-01-13 06:59:15 +00:00
wiz 9707c22b84 More markup. Add missing El. Fix typo. 2019-01-09 09:48:44 +00:00
mrg 1caac07df9 document crashme(9) functionality.
XXX: install me
2019-01-09 04:02:26 +00:00
hannken b689ec0f78 Add "void *extra" argument to vcache_new() so a file system may
pass more information about the file to create.

Welcome to 8.99.30
2019-01-01 10:06:54 +00:00
thorpej 7a41d85ec9 Document the threadpool_job_fn_t type and its use. 2018-12-26 21:48:55 +00:00
thorpej fd47102229 - De-opaque'ify struct threadpool_job.
- De-_t'ify all of the structure types.

No functional chage, no ABI change (verified with old rump unit test
before and after new librump.so).

Per Taylor's request.
2018-12-26 18:54:19 +00:00
thorpej 2834fa0ab4 Add threadpool(9), an abstraction that provides shared pools of kernel
threads running at specific priorities, with support for unbound pools
and per-cpu pools.

Written by riastradh@, and based on the May 2014 draft, with a few changes
by me:
- Working on the assumption that a relative few priorities will actually
  be used, reduce the memory footprint by using linked lists, rather than
  2 large (and mostly empty) tables.  The performance impact is essentially
  nil, since these lists are consulted only when pools are created (and
  destroyed, for DIAGNOSTIC checks), and the lists will have at most 225
  entries.
- Make threadpool job object, which the caller must allocate storage for,
  really opaque.
- Use typedefs for the threadpool types, to reduce the verbosity of the
  API somewhat.
- Fix a bunch of pool / worker thread / job object lifecycle bugs.

Also include an ATF unit test, written by me, that exercises the basics
of the API by loading a kernel module that exposes several sysctls that
allow the ATF test script to create and destroy threadpools, schedule a
basic job, and verify that it ran.

And thus NetBSD 8.99.29 has arrived.
2018-12-24 16:58:53 +00:00
maxv a4c7369382 Update the man page, we don't want M_COPY_PKTHDR, M_MOVE_PKTHDR, MH_ALIGN
and M_ALIGN.
2018-12-22 14:39:46 +00:00