Module Name:    src
Committed By:   jruoho
Date:           Fri Sep 23 14:45:07 UTC 2011

Modified Files:
        src/distrib/sets/lists/man: mi
        src/share/man/man4/man4.i386: Makefile
        src/share/man/man4/man4.x86: Makefile
Added Files:
        src/share/man/man4/man4.x86: fdc.4 lpt.4 mem.4
Removed Files:
        src/share/man/man4/man4.i386: fdc.4 lpt.4 mem.4

Log Message:
Move i386/fdc(4), i386/lpt(4), and i386/mem(4) to man4.x86.

Part of PR port-amd64/36350.


To generate a diff of this commit:
cvs rdiff -u -r1.1341 -r1.1342 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.75 -r1.76 src/share/man/man4/man4.i386/Makefile
cvs rdiff -u -r1.15 -r0 src/share/man/man4/man4.i386/fdc.4
cvs rdiff -u -r1.21 -r0 src/share/man/man4/man4.i386/lpt.4
cvs rdiff -u -r1.5 -r0 src/share/man/man4/man4.i386/mem.4
cvs rdiff -u -r1.10 -r1.11 src/share/man/man4/man4.x86/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man4/man4.x86/fdc.4 \
    src/share/man/man4/man4.x86/lpt.4 src/share/man/man4/man4.x86/mem.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/lists/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1341 src/distrib/sets/lists/man/mi:1.1342
--- src/distrib/sets/lists/man/mi:1.1341	Sat Sep 17 17:06:47 2011
+++ src/distrib/sets/lists/man/mi	Fri Sep 23 14:45:06 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1341 2011/09/17 17:06:47 rkujawa Exp $
+# $NetBSD: mi,v 1.1342 2011/09/23 14:45:06 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -1109,7 +1109,7 @@
 ./usr/share/man/cat4/i386/elanpar.0		man-sys-catman		.cat
 ./usr/share/man/cat4/i386/elanpex.0		man-sys-catman		.cat
 ./usr/share/man/cat4/i386/elansc.0		man-sys-catman		.cat
-./usr/share/man/cat4/i386/fdc.0			man-sys-catman		.cat
+./usr/share/man/cat4/i386/fdc.0			man-obsolete		obsolete
 ./usr/share/man/cat4/i386/gcscide.0		man-sys-catman		.cat
 ./usr/share/man/cat4/i386/gcscpcib.0		man-sys-catman		.cat
 ./usr/share/man/cat4/i386/geodecntr.0		man-sys-catman		.cat
@@ -1120,12 +1120,12 @@
 ./usr/share/man/cat4/i386/intro.0		man-sys-catman		.cat
 ./usr/share/man/cat4/i386/io.0			man-sys-catman		.cat
 ./usr/share/man/cat4/i386/joy.0			man-obsolete		obsolete
-./usr/share/man/cat4/i386/kmem.0		man-sys-catman		.cat
+./usr/share/man/cat4/i386/kmem.0		man-obsolete		obsolete
 ./usr/share/man/cat4/i386/le.0			man-obsolete		obsolete
 ./usr/share/man/cat4/i386/lms.0			man-sys-catman		.cat
-./usr/share/man/cat4/i386/lpa.0			man-sys-catman		.cat
-./usr/share/man/cat4/i386/lpt.0			man-sys-catman		.cat
-./usr/share/man/cat4/i386/mem.0			man-sys-catman		.cat
+./usr/share/man/cat4/i386/lpa.0			man-obsolete		obsolete
+./usr/share/man/cat4/i386/lpt.0			man-obsolete		obsolete
+./usr/share/man/cat4/i386/mem.0			man-obsolete		obsolete
 ./usr/share/man/cat4/i386/mms.0			man-sys-catman		.cat
 ./usr/share/man/cat4/i386/ndis.0		man-sys-catman		.cat
 ./usr/share/man/cat4/i386/npx.0			man-sys-catman		.cat
@@ -1822,11 +1822,16 @@
 ./usr/share/man/cat4/x86/balloon.0		man-sys-catman		.cat
 ./usr/share/man/cat4/x86/coretemp.0		man-sys-catman		.cat
 ./usr/share/man/cat4/x86/est.0			man-sys-catman		.cat
+./usr/share/man/cat4/x86/fdc.0			man-sys-catman		.cat
 ./usr/share/man/cat4/x86/fwhrng.0		man-sys-catman		.cat
 ./usr/share/man/cat4/x86/hpet.0			man-sys-catman		.cat
 ./usr/share/man/cat4/x86/ichlpcib.0		man-sys-catman		.cat
 ./usr/share/man/cat4/x86/ioapic.0		man-sys-catman		.cat
+./usr/share/man/cat4/x86/kmem.0			man-sys-catman		.cat
 ./usr/share/man/cat4/x86/lapic.0		man-sys-catman		.cat
+./usr/share/man/cat4/x86/lpa.0			man-sys-catman		.cat
+./usr/share/man/cat4/x86/lpt.0			man-sys-catman		.cat
+./usr/share/man/cat4/x86/mem.0			man-sys-catman		.cat
 ./usr/share/man/cat4/x86/odcm.0			man-sys-catman		.cat
 ./usr/share/man/cat4/x86/powernow.0		man-sys-catman		.cat
 ./usr/share/man/cat4/xbd.0			man-sys-catman		.cat
@@ -3922,7 +3927,7 @@
 ./usr/share/man/html4/i386/elanpar.html		man-sys-htmlman		html
 ./usr/share/man/html4/i386/elanpex.html		man-sys-htmlman		html
 ./usr/share/man/html4/i386/elansc.html		man-sys-htmlman		html
-./usr/share/man/html4/i386/fdc.html		man-sys-htmlman		html
+./usr/share/man/html4/i386/fdc.html		man-obsolete		obsolete
 ./usr/share/man/html4/i386/gcscide.html		man-sys-htmlman		html
 ./usr/share/man/html4/i386/gcscpcib.html	man-sys-htmlman		html
 ./usr/share/man/html4/i386/geodecntr.html	man-sys-htmlman		html
@@ -3931,11 +3936,11 @@
 ./usr/share/man/html4/i386/gscpcib.html		man-sys-htmlman		html
 ./usr/share/man/html4/i386/intro.html		man-sys-htmlman		html
 ./usr/share/man/html4/i386/io.html		man-sys-htmlman		html
-./usr/share/man/html4/i386/kmem.html		man-sys-htmlman		html
+./usr/share/man/html4/i386/kmem.html		man-obsolete		obsolete
 ./usr/share/man/html4/i386/lms.html		man-sys-htmlman		html
-./usr/share/man/html4/i386/lpa.html		man-sys-htmlman		html
-./usr/share/man/html4/i386/lpt.html		man-sys-htmlman		html
-./usr/share/man/html4/i386/mem.html		man-sys-htmlman		html
+./usr/share/man/html4/i386/lpa.html		man-obsolete		obsolete
+./usr/share/man/html4/i386/lpt.html		man-obsolete		obsolete
+./usr/share/man/html4/i386/mem.html		man-obsolete		obsolete
 ./usr/share/man/html4/i386/mms.html		man-sys-htmlman		html
 ./usr/share/man/html4/i386/ndis.html		man-sys-htmlman		html
 ./usr/share/man/html4/i386/npx.html		man-sys-htmlman		html
@@ -4567,11 +4572,16 @@
 ./usr/share/man/html4/x86/balloon.html		man-sys-htmlman		html
 ./usr/share/man/html4/x86/coretemp.html		man-sys-htmlman		html
 ./usr/share/man/html4/x86/est.html		man-sys-htmlman		html
+./usr/share/man/html4/x86/fdc.html		man-sys-htmlman		html
 ./usr/share/man/html4/x86/fwhrng.html		man-sys-htmlman		html
 ./usr/share/man/html4/x86/hpet.html		man-sys-htmlman		html
 ./usr/share/man/html4/x86/ichlpcib.html		man-sys-htmlman		html
 ./usr/share/man/html4/x86/ioapic.html		man-sys-htmlman		html
+./usr/share/man/html4/x86/kmem.html		man-sys-htmlman		html
 ./usr/share/man/html4/x86/lapic.html		man-sys-htmlman		html
+./usr/share/man/html4/x86/lpa.html		man-sys-htmlman		html
+./usr/share/man/html4/x86/lpt.html		man-sys-htmlman		html
+./usr/share/man/html4/x86/mem.html		man-sys-htmlman		html
 ./usr/share/man/html4/x86/odcm.html		man-sys-htmlman		html
 ./usr/share/man/html4/x86/powernow.html		man-sys-htmlman		html
 ./usr/share/man/html4/xbd.html			man-sys-htmlman		html
@@ -6534,7 +6544,7 @@
 ./usr/share/man/man4/i386/elanpar.4		man-sys-man		.man
 ./usr/share/man/man4/i386/elanpex.4		man-sys-man		.man
 ./usr/share/man/man4/i386/elansc.4		man-sys-man		.man
-./usr/share/man/man4/i386/fdc.4			man-sys-man		.man
+./usr/share/man/man4/i386/fdc.4			man-obsolete		obsolete
 ./usr/share/man/man4/i386/gcscide.4		man-sys-man		.man
 ./usr/share/man/man4/i386/gcscpcib.4		man-sys-man		.man
 ./usr/share/man/man4/i386/geodecntr.4		man-sys-man		.man
@@ -6545,12 +6555,12 @@
 ./usr/share/man/man4/i386/intro.4		man-sys-man		.man
 ./usr/share/man/man4/i386/io.4			man-sys-man		.man
 ./usr/share/man/man4/i386/joy.4			man-obsolete		obsolete
-./usr/share/man/man4/i386/kmem.4		man-sys-man		.man
+./usr/share/man/man4/i386/kmem.4		man-obsolete		obsolete
 ./usr/share/man/man4/i386/le.4			man-obsolete		obsolete
 ./usr/share/man/man4/i386/lms.4			man-sys-man		.man
-./usr/share/man/man4/i386/lpa.4			man-sys-man		.man
-./usr/share/man/man4/i386/lpt.4			man-sys-man		.man
-./usr/share/man/man4/i386/mem.4			man-sys-man		.man
+./usr/share/man/man4/i386/lpa.4			man-obsolete		obsolete
+./usr/share/man/man4/i386/lpt.4			man-obsolete		obsolete
+./usr/share/man/man4/i386/mem.4			man-obsolete		obsolete
 ./usr/share/man/man4/i386/mms.4			man-sys-man		.man
 ./usr/share/man/man4/i386/ndis.4		man-sys-man		.man
 ./usr/share/man/man4/i386/npx.4			man-sys-man		.man
@@ -7247,11 +7257,16 @@
 ./usr/share/man/man4/x86/balloon.4		man-sys-man		.man
 ./usr/share/man/man4/x86/coretemp.4		man-sys-man		.man
 ./usr/share/man/man4/x86/est.4			man-sys-man		.man
+./usr/share/man/man4/x86/fdc.4			man-sys-man		.man
 ./usr/share/man/man4/x86/fwhrng.4		man-sys-man		.man
 ./usr/share/man/man4/x86/hpet.4			man-sys-man		.man
 ./usr/share/man/man4/x86/ichlpcib.4		man-sys-man		.man
 ./usr/share/man/man4/x86/ioapic.4		man-sys-man		.man
+./usr/share/man/man4/x86/kmem.4			man-sys-man		.man
 ./usr/share/man/man4/x86/lapic.4		man-sys-man		.man
+./usr/share/man/man4/x86/lpa.4			man-sys-man		.man
+./usr/share/man/man4/x86/lpt.4			man-sys-man		.man
+./usr/share/man/man4/x86/mem.4			man-sys-man		.man
 ./usr/share/man/man4/x86/odcm.4			man-sys-man		.man
 ./usr/share/man/man4/x86/powernow.4		man-sys-man		.man
 ./usr/share/man/man4/xbd.4			man-sys-man		.man

Index: src/share/man/man4/man4.i386/Makefile
diff -u src/share/man/man4/man4.i386/Makefile:1.75 src/share/man/man4/man4.i386/Makefile:1.76
--- src/share/man/man4/man4.i386/Makefile:1.75	Mon Apr  4 17:26:24 2011
+++ src/share/man/man4/man4.i386/Makefile	Fri Sep 23 14:45:06 2011
@@ -1,15 +1,12 @@
-#	$NetBSD: Makefile,v 1.75 2011/04/04 17:26:24 bouyer Exp $
+#	$NetBSD: Makefile,v 1.76 2011/09/23 14:45:06 jruoho Exp $
 #	from: @(#)Makefile	8.1 (Berkeley) 6/5/93
 
 MAN=	apm.4 autoconf.4 \
 	cmos.4 console.4 \
 	elanpar.4 elanpex.4 elansc.4 \
-	fdc.4 \
 	gcscide.4 gcscpcib.4 geodewdog.4 geodecntr.4 glxsb.4 gscpcib.4 \
-	intro.4 io.4 lms.4 lpt.4 mem.4 mms.4 npx.4 ndis.4 \
+	intro.4 io.4 lms.4 mms.4 npx.4 ndis.4 \
 	pcibios.4 pnpbios.4 rdcide.4 rdcpcib.4 spic.4 viac7temp.4
-MLINKS=	mem.4 kmem.4
-MLINKS+=lpt.4 lpa.4
 MLINKS+=pcibios.4 PCIBIOS.4
 MLINKS+=console.4 cons.4
 MANSUBDIR=/i386

Index: src/share/man/man4/man4.x86/Makefile
diff -u src/share/man/man4/man4.x86/Makefile:1.10 src/share/man/man4/man4.x86/Makefile:1.11
--- src/share/man/man4/man4.x86/Makefile:1.10	Mon Jun  6 16:52:16 2011
+++ src/share/man/man4/man4.x86/Makefile	Fri Sep 23 14:45:06 2011
@@ -1,10 +1,12 @@
-#	$NetBSD: Makefile,v 1.10 2011/06/06 16:52:16 jruoho Exp $
+#	$NetBSD: Makefile,v 1.11 2011/09/23 14:45:06 jruoho Exp $
 
-MAN=	amdpcib.4 apic.4 balloon.4 coretemp.4 est.4 \
-	fwhrng.4 hpet.4 ichlpcib.4 odcm.4 powernow.4
+MAN=	amdpcib.4 apic.4 balloon.4 coretemp.4 est.4 fdc.4 \
+	fwhrng.4 hpet.4 ichlpcib.4 lpt.4 mem.4 odcm.4 powernow.4
 
 MLINKS+=apic.4 ioapic.4 \
 	apic.4 lapic.4
+MLINKS+=lpt.4 lpa.4
+MLINKS+=mem.4 kmem.4
 
 MANSUBDIR=/x86
 

Added files:

Index: src/share/man/man4/man4.x86/fdc.4
diff -u /dev/null src/share/man/man4/man4.x86/fdc.4:1.1
--- /dev/null	Fri Sep 23 14:45:07 2011
+++ src/share/man/man4/man4.x86/fdc.4	Fri Sep 23 14:45:06 2011
@@ -0,0 +1,112 @@
+.\"   $NetBSD: fdc.4,v 1.1 2011/09/23 14:45:06 jruoho Exp $
+.\"
+.\" Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by John Kohl.
+.\"
+.\" 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.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
+.\"
+.Dd September 23, 2011
+.Dt FDC 4 x86
+.Os
+.Sh NAME
+.Nm fdc
+.Nd NEC 765 floppy disk controller driver
+.Sh SYNOPSIS
+.Cd "fdc0 at isa? port 0x3f0 irq 6 drq 2"
+.Cd "fdc* at acpi?"
+.Cd "fdc* at pnpbios? index ?"
+.Cd "fd*  at fdc? drive ?"
+.Sh DESCRIPTION
+The
+.Nm
+driver provides support for the NEC 765 floppy disk controller and
+floppy disk drives, commonly found on IBM-PC compatible systems.
+.Pp
+The driver supports the following floppy diskette formats by using
+particular partitions:
+.Bl -tag -width xxxx -offset indent -compact
+.It 1.44MB 3.5-inch (b)
+.It "1.2MB " 5.25-inch (c)
+.It "360KB " 5.25-inch (1.2MB drive) (d)
+.It "360KB " 5.25-inch (IBM-PC drive) (e)
+.It "720KB " 3.5-inch (f)
+.It "720KB " 5.25-inch (g)
+.It "360KB " 3.5-inch (h)
+.El
+Partition
+.Ar a
+selects the default format for the attached floppy drive, as determined
+by the BIOS configuration for the diskette drive.
+.Sh FORMATTING
+The driver supports floppy disk formatting using the interfaces in
+.In sys/fdio.h :
+.Bl -tag -width FDIOCFORMAT_TRACK -compact
+.It Dv FDIOCGETFORMAT Fa struct fdformat_parms
+Fetch current formatting parameters.
+This gets the default parameters
+for the open device if no parameters have been set during the session.
+.It Dv FDIOCSETFORMAT Fa struct fdformat_parms
+Set formatting parameters.
+The driver saves this state and it persists while the device is open.
+.It Dv FDIOCFORMAT_TRACK Fa struct fdformat_cmd
+Format a track on the medium.
+If this call returns
+.Er EINVAL ,
+the track formatting parameters were out of range for the medium.
+If it returns
+.Er EIO ,
+there was a medium error while formatting the track.
+.It Dv FDIOCSETOPTS Fa int
+Set driver options which persist until the device is closed.
+The options should be the logical OR of the desired values below:
+.Bl -tag -width FDOPT_NORETRY -compact
+.It Dv FDOPT_NORETRY
+Do not retry operations on failure
+.It Dv FDOPT_SILENT
+Do not print error messages to the console
+.El
+.It Dv FDIOCGETOPTS Fa int
+Fetch drive options.
+.El
+.Pp
+A typical use of the formatting facilities would be to open the device,
+call
+.Dv FDIOCGETFORMAT
+to fetch the current format parameters, perhaps
+change a parameter or two, display the formatting details to the user,
+and then call
+.Dv FDIOCSETFORMAT
+followed by a series of calls to
+.Dv FDIOCFORMAT_TRACK .
+.Sh SEE ALSO
+.Xr fdformat 1 ,
+.Xr acpi 4 ,
+.Xr isa 4 ,
+.Xr pnpbios 4
+.Sh HISTORY
+The
+.Nm
+formatting support appeared in
+.Nx 1.3 .
Index: src/share/man/man4/man4.x86/lpt.4
diff -u /dev/null src/share/man/man4/man4.x86/lpt.4:1.1
--- /dev/null	Fri Sep 23 14:45:07 2011
+++ src/share/man/man4/man4.x86/lpt.4	Fri Sep 23 14:45:06 2011
@@ -0,0 +1,74 @@
+.\" $NetBSD: lpt.4,v 1.1 2011/09/23 14:45:06 jruoho Exp $
+.\"
+.\" Copyright (c) 1993 Christopher G. Demetriou
+.\" 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 for the
+.\"          NetBSD Project.  See http://www.NetBSD.org/ for
+.\"          information about NetBSD.
+.\" 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.
+.\"
+.\" <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
+.\"
+.Dd September 23, 2011
+.Dt LPT 4 x86
+.Os
+.Sh NAME
+.Nm lpt
+.Nd
+Parallel port driver
+.Sh SYNOPSIS
+.\" XXX this is awful hackery to get it to work right... -- cgd
+.Cd "lpt0 at isa? port" \&"IO_LPT1\&" irq 7
+.Cd "lpt1 at isa? port" \&"IO_LPT2\&"
+.Cd "lpt* at acpi?"
+.Cd "lpt* at ofisa?"
+.Cd "lpt* at pnpbios? index ?"
+.Cd "lpt* at puc? port ?"
+.Sh DESCRIPTION
+This driver provides access to parallel ports.
+The bits in the minor number select various features of the driver.
+If no IRQ is
+specified in the kernel configuration, only the polling device may be used.
+.Pp
+.Bl -column "Minor Bit" "Functionxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -offset indent
+.It Sy "Minor Bit"	Function
+.It 128	Use the interruptless driver. (polling)
+.It  64	\&Do not initialize the device on the port.
+.It  32	Automatic LF on CR.
+.El
+.Sh FILES
+.Bl -tag -width "/dev/lpt0xx" -compact
+.It Pa /dev/lpt0
+first interrupt-driven parallel port device
+.It Pa /dev/lpa0
+first polled parallel port device
+.El
+.Sh SEE ALSO
+.Xr acpi 4 ,
+.Xr isa 4 ,
+.Xr ofisa 4 ,
+.Xr pnpbios 4 ,
+.Xr puc 4
Index: src/share/man/man4/man4.x86/mem.4
diff -u /dev/null src/share/man/man4/man4.x86/mem.4:1.1
--- /dev/null	Fri Sep 23 14:45:07 2011
+++ src/share/man/man4/man4.x86/mem.4	Fri Sep 23 14:45:06 2011
@@ -0,0 +1,80 @@
+.\"	$NetBSD: mem.4,v 1.1 2011/09/23 14:45:06 jruoho Exp $
+.\"
+.\" Copyright (c) 1991, 1993
+.\"	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	8.1 (Berkeley) 6/5/93
+.\"
+.Dd September 23, 2011
+.Dt MEM 4 x86
+.Os
+.Sh NAME
+.Nm mem ,
+.Nm kmem
+.Nd memory files
+.Sh DESCRIPTION
+The special file
+.Nm /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
+.Nm /dev/mem
+are allowed.
+.Pp
+Kernel virtual memory is accessed through the interface
+.Nm /dev/kmem
+in the same manner as
+.Nm /dev/mem .
+Only kernel virtual addresses that are currently mapped to memory are allowed.
+.Pp
+On
+.Tn ISA
+the
+.Tn I/O
+memory space begins at physical address 0x000a0000
+and runs to 0x00100000.
+The
+per-process data
+size
+for the current process
+is
+.Dv UPAGES
+long, and ends at virtual
+address 0xfe000000.
+.Sh FILES
+.Bl -tag -width Pa -compact
+.It Pa /dev/mem
+.It Pa /dev/kmem
+.El
+.Sh HISTORY
+The
+.Nm mem ,
+.Nm kmem
+files appeared in
+.At v6 .

Reply via email to