diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 15:32:58 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 15:32:58 -0400 |
| commit | 5cb84ec742fd33f78c8022863fadaa8d0d93e176 (patch) | |
| tree | 1a81ca3665e6153923e40db7b0d988f8573ab59c /static/netbsd/man4/man4.luna68k/xp.4 | |
| parent | a59214f344567c037d5776879bcfc5fcc1d4d5f6 (diff) | |
feat: Added NetBSD man pages
Diffstat (limited to 'static/netbsd/man4/man4.luna68k/xp.4')
| -rw-r--r-- | static/netbsd/man4/man4.luna68k/xp.4 | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/static/netbsd/man4/man4.luna68k/xp.4 b/static/netbsd/man4/man4.luna68k/xp.4 new file mode 100644 index 00000000..ba562063 --- /dev/null +++ b/static/netbsd/man4/man4.luna68k/xp.4 @@ -0,0 +1,75 @@ +.\" $NetBSD: xp.4,v 1.1 2022/06/12 03:51:13 tsutsui Exp $ +.\" $OpenBSD: xp.4,v 1.2 2017/02/11 23:08:43 jmc 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 June 12, 2022 +.Dt XP 4 luna68k +.Os +.Sh NAME +.Nm xp +.Nd HD647180X I/O processor +.Sh SYNOPSIS +.Cd "xpbus0 at mainbus0" +.Cd "xp0 at xpbus0" +.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-I and LUNA-II. +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_int8_t *data; +}; +.Ed +.Pp +The +.Va size +member specifies the loading binary size, in bytes. +The +.Va data +member points to 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 EACCES +The device is opened without write permission. +.It Bq Er EINVAL +The specified size is 0 or more than the I/O processor's memory size. +.El +.Sh SEE ALSO +.Xr ioctl 2 +.Sh HISTORY +The +.Pa /dev/xp +file first appeared in +.Nx 7.1 . |
