summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenji Aoyama <aoyama@cvs.openbsd.org>2017-02-11 09:04:46 +0000
committerKenji Aoyama <aoyama@cvs.openbsd.org>2017-02-11 09:04:46 +0000
commite6852f521ce86c34e228901e29c3426f2829a851 (patch)
treec5748bff4373e21a41748d16c94589abeab70c4e
parent9dd203bae1d130c364da9baeb7aa27540865a1b9 (diff)
Add xp(4/luna88k) man page.
ok guenther@ dlg@
-rw-r--r--share/man/man4/man4.luna88k/Makefile4
-rw-r--r--share/man/man4/man4.luna88k/xp.473
2 files changed, 75 insertions, 2 deletions
diff --git a/share/man/man4/man4.luna88k/Makefile b/share/man/man4/man4.luna88k/Makefile
index 7f2f7c58178..f347bc75165 100644
--- a/share/man/man4/man4.luna88k/Makefile
+++ b/share/man/man4/man4.luna88k/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.7 2016/03/30 06:38:44 jmc Exp $
+# $OpenBSD: Makefile,v 1.8 2017/02/11 09:04:45 aoyama Exp $
# TODO: clock fb sio/siotty ws
MAN= autoconf.4 cbus.4 intro.4 lcd.4 le.4 mem.4 necsb.4 pcexmem.4 \
- spc.4
+ spc.4 xp.4
MANSUBDIR=luna88k
.include <bsd.prog.mk>
diff --git a/share/man/man4/man4.luna88k/xp.4 b/share/man/man4/man4.luna88k/xp.4
new file mode 100644
index 00000000000..427ed1592fc
--- /dev/null
+++ b/share/man/man4/man4.luna88k/xp.4
@@ -0,0 +1,73 @@
+.\" $OpenBSD: xp.4,v 1.1 2017/02/11 09:04:45 aoyama Exp $
+.\"
+.\" Copyright (c) 2017 Kenji Aoyama.
+.\"
+.\" Permission to use, copy, modify, and distribute this software for any
+.\" purpose with or without fee is hereby granted, provided that the above
+.\" copyright notice and this permission notice appear in all copies.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+.Dd $Mdocdate: February 11 2017 $
+.Dt XP 4 luna88k
+.Os
+.Sh NAME
+.Nm xp
+.Nd HD647180X I/O processor
+.Sh SYNOPSIS
+.Cd "xp0 at mainbus0"
+.Sh DESCRIPTION
+The file
+.Pa /dev/xp
+is an
+.Xr mmap 2
+capable interface to the memory area of the HD647180X I/O processor
+(so-called "XP") on LUNA-88K and LUNA-88K2.
+Byte offsets in this file are interpreted as relative memory addresses
+of the I/O processor.
+The range should be between 0x0 and 0xffff.
+.Pp
+The following
+.Xr ioctl 2
+call applies to
+.Pa /dev/xp .
+.Bl -tag -width 4n
+.It Dv XPIOCDOWNLD Fa "struct xp_download"
+Load binary and reset I/O processor.
+.Bd -literal -offset indent
+struct xp_download {
+ u_int size;
+ u_char *data;
+};
+.Ed
+.Pp
+The
+.Va size
+member specifies the loading binary size in bytes.
+The
+.Va data
+member points the binary image.
+.El
+.Sh FILES
+.Bl -tag -width /dev/xp -compact
+.It Pa /dev/xp
+.El
+.Sh ERRORS
+.Bl -tag -width Er
+.It Bq Er EINVAL
+The specified size is 0 or more than I/O processor's memory size.
+.It Bq Er ENOMEM
+Memory could not be allocated for loading.
+.El
+.Sh SEE ALSO
+.Xr ioctl 2
+.Sh HISTORY
+The
+.Pa /dev/xp
+file first appeared in
+.Ox 6.1 .