summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2007-01-29 19:17:21 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2007-01-29 19:17:21 +0000
commitf95ff62e5a5a7b24845eedbde843903084e1933a (patch)
tree0a6df96130273e16016dff6591faafe4bfe4bc49
parent09b7c7029351c31b8569423f8cd98e47b7280f68 (diff)
add manpages for physical and kernel virtual memory, plus onboard I/O
ok jmc@
-rw-r--r--share/man/man4/man4.landisk/Makefile6
-rw-r--r--share/man/man4/man4.landisk/mem.475
-rw-r--r--share/man/man4/man4.landisk/obio.470
3 files changed, 148 insertions, 3 deletions
diff --git a/share/man/man4/man4.landisk/Makefile b/share/man/man4/man4.landisk/Makefile
index 17b731440ac..21c8be6213f 100644
--- a/share/man/man4/man4.landisk/Makefile
+++ b/share/man/man4/man4.landisk/Makefile
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile,v 1.1 2007/01/15 22:37:47 martin Exp $
+# $OpenBSD: Makefile,v 1.2 2007/01/29 19:17:20 martin Exp $
-# TODO: intro obio autoconf mem
-MAN= power.4
+# TODO: autoconf intro mainbus scif shb rsclock shpcic
+MAN= obio.4 power.4 mem.4
MANSUBDIR=landisk
#MLINKS+= mem.4 kmem.4
diff --git a/share/man/man4/man4.landisk/mem.4 b/share/man/man4/man4.landisk/mem.4
new file mode 100644
index 00000000000..8f06482a39d
--- /dev/null
+++ b/share/man/man4/man4.landisk/mem.4
@@ -0,0 +1,75 @@
+.\" $OpenBSD: mem.4,v 1.1 2007/01/29 19:17:20 martin Exp $
+.\"
+.\" Copyright (c) 1991 The Regents of the University of California.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. Neither the name of the University nor the names of its contributors
+.\" may be used to endorse or promote products derived from this software
+.\" without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" from: @(#)mem.4 5.3 (Berkeley) 5/2/91
+.\"
+.Dd January 16, 2007
+.Dt MEM 4 landisk
+.Os
+.Sh NAME
+.Nm mem ,
+.Nm kmem
+.Nd memory files
+.Sh DESCRIPTION
+The special file
+.Pa /dev/mem
+is an interface to the physical memory of the computer.
+Byte offsets in this file are interpreted as physical memory addresses.
+Reading and writing this file is equivalent to reading and writing
+memory itself.
+Only offsets within the bounds of
+.Pa /dev/mem
+are allowed.
+.Pp
+Kernel virtual memory is accessed through the interface
+.Pa /dev/kmem
+in the same manner as
+.Pa /dev/mem .
+Only kernel virtual addresses that are currently mapped to memory are allowed.
+.Pp
+On landisk, physical memory is contiguous.
+The kernel virtual memory begins at address
+.Li 0xc0000000 .
+.Pp
+Writeability of these devices is controlled by the system
+.Xr securelevel 7 .
+.Sh FILES
+.Bl -tag -width Pa -compact
+.It Pa /dev/mem
+.It Pa /dev/kmem
+.El
+.Sh SEE ALSO
+.Xr securelevel 7
+.Sh HISTORY
+The
+.Pa /dev/mem
+and
+.Pa /dev/kmem
+files appeared in
+.At v6 .
diff --git a/share/man/man4/man4.landisk/obio.4 b/share/man/man4/man4.landisk/obio.4
new file mode 100644
index 00000000000..322ea22689b
--- /dev/null
+++ b/share/man/man4/man4.landisk/obio.4
@@ -0,0 +1,70 @@
+.\"
+.\" Copyright (c) 1997 Colin Wood
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\" must display the following acknowledgement:
+.\" This product includes software developed by Colin Wood
+.\" for the NetBSD Project.
+.\" 4. The name of the author may not be used to endorse or promote products
+.\" derived from this software without specific prior written permission
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\" $OpenBSD: obio.4,v 1.1 2007/01/29 19:17:20 martin Exp $
+.\" $NetBSD: obio.4,v 1.1 1997/07/18 02:13:40 ender Exp $
+.\"
+.Dd January 16, 2007
+.Dt OBIO 4 landisk
+.Os
+.Sh NAME
+.Nm obio
+.Nd landisk onboard I/O bus device
+.Sh SYNOPSIS
+.Cd "obio0 at mainbus?"
+.Sh DESCRIPTION
+The
+.Nm
+interface serves as an abstraction used by the autoconfiguration
+system to help find and attach devices
+.Pq e.g. the disk controllers
+connected to the
+.Tn landisk
+onboard I/O bus.
+.Pp
+.Ox
+provides support for the following devices:
+.Pp
+.Bl -tag -width 12n -offset indent -compact
+.It Xr power 4
+power switch
+.It Xr wdc 4
+WD100x compatible hard disk controller driver
+.El
+.Sh SEE ALSO
+.\".Xr intro 4 ,
+.\".Xr mainbus 4 ,
+.Xr power 4 ,
+.Xr wdc 4
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Ox 4.1 .