summaryrefslogtreecommitdiff
path: root/share/man/man4/man4.luna88k/xp.4
blob: 427ed1592fc838d252ea6b5670fdbff4e6aafde9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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 .