summaryrefslogtreecommitdiff
path: root/static/netbsd/man4/man4.prep
diff options
context:
space:
mode:
Diffstat (limited to 'static/netbsd/man4/man4.prep')
-rw-r--r--static/netbsd/man4/man4.prep/Makefile4
-rw-r--r--static/netbsd/man4/man4.prep/intro.4140
-rw-r--r--static/netbsd/man4/man4.prep/nvram.4121
3 files changed, 265 insertions, 0 deletions
diff --git a/static/netbsd/man4/man4.prep/Makefile b/static/netbsd/man4/man4.prep/Makefile
new file mode 100644
index 00000000..67434962
--- /dev/null
+++ b/static/netbsd/man4/man4.prep/Makefile
@@ -0,0 +1,4 @@
+MAN = $(wildcard *.4)
+
+include ../../../mandoc.mk
+
diff --git a/static/netbsd/man4/man4.prep/intro.4 b/static/netbsd/man4/man4.prep/intro.4
new file mode 100644
index 00000000..364f193b
--- /dev/null
+++ b/static/netbsd/man4/man4.prep/intro.4
@@ -0,0 +1,140 @@
+.\" $NetBSD: intro.4,v 1.7 2017/02/18 22:39:01 wiz Exp $
+.\"
+.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Tim Rightnour
+.\"
+.\" 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 February 17, 2017
+.Dt INTRO 4 prep
+.Os
+.Sh NAME
+.Nm intro
+.Nd introduction to prep special files and hardware support
+.Sh DESCRIPTION
+This section describes the special files, related driver functions,
+and networking support available in the system.
+In this part of the manual, the
+.Tn SYNOPSIS
+section of each configurable device gives a sample specification
+for use in constructing a system description for the
+.Xr config 1
+program.
+The
+.Tn DIAGNOSTICS
+section lists messages which may appear on the console
+and/or in the system error log
+.Pa /var/log/messages
+due to errors in device operation;
+see
+.Xr syslogd 8
+for more information.
+.Pp
+This section contains both devices
+which may be configured into the system
+and network related information.
+The networking support is introduced in
+.Xr netintro 4 .
+.Sh PMPPC DEVICE SUPPORT
+This section describes the hardware supported on the
+.Tn PowerPC Reference Platform
+machines.
+Software support for these devices comes in two forms.
+A hardware device may be supported with a character or block
+.Em device driver ,
+or it may be used within the networking subsystem and have a
+.Em network interface driver .
+Block and character devices are accessed through files in the file
+system of a special type; see
+.Xr mknod 8 .
+Network interfaces are indirectly accessed through the interprocess
+communication facilities provided by the system; see
+.Xr socket 2 .
+.Pp
+A hardware device is identified to the system at configuration time
+and the appropriate device or network interface driver is then compiled
+into the system.
+When the resultant system is booted, the
+autoconfiguration facilities in the system probe for the device
+and, if found, enable the software support for it.
+If a device does not respond at autoconfiguration
+time it is not accessible at any time afterwards.
+To enable a device which did not autoconfigure,
+the system will have to be rebooted.
+.Pp
+The autoconfiguration system is described in
+.Xr autoconf 4 .
+A list of the supported devices is given below.
+.Sh SEE ALSO
+.Xr config 1 ,
+.Xr autoconf 4 ,
+.Xr pnpbus 4 ,
+.Xr prep/nvram 4
+.Sh HISTORY
+The
+.Tn prep
+.Nm intro
+man page first appeared in
+.Nx 4.0 .
+.Sh LIST OF DEVICES
+The devices listed below are supported in this incarnation of
+the system.
+Devices are indicated by their functional interface.
+Not all supported devices are listed.
+.Pp
+The pnpbus is a pseudo-bus which is a configuration interface for certain
+devices on PReP machines.
+These devices are defined in the PReP
+residual data with configuration information, similar to
+.Xr isapnp 4 .
+The underlying bus is generally ISA.
+.Pp
+ISA devices are supported through the
+.Xr isa 4
+bus and associated devices.
+.Pp
+PCI devices are supported through the
+.Xr pci 4
+bus and associated devices.
+.Pp
+USB devices are supported through the
+.Xr usb 4
+bus and associated devices.
+.Pp
+Additionally, the following specific devices are supported:
+.Bl -tag -width "xxxxxxxx" -compact -offset indent
+.It Em com
+serial ports
+.It Em nvram
+NVRAM chip
+.It Em wdc
+ISA IDE controller
+.It Em we
+Western Digital/SMC WD80x3 ethernet driver
+.It Em mcclock
+mc146818 compatible time-of-day clock
+.It Em mkclock
+Mostek MK48T18 time-of-day chip
+.El
diff --git a/static/netbsd/man4/man4.prep/nvram.4 b/static/netbsd/man4/man4.prep/nvram.4
new file mode 100644
index 00000000..0de73a3e
--- /dev/null
+++ b/static/netbsd/man4/man4.prep/nvram.4
@@ -0,0 +1,121 @@
+.\" $NetBSD: nvram.4,v 1.5 2009/05/27 19:28:42 wiz Exp $
+.\"
+.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Tim Rightnour
+.\"
+.\" 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 March 1, 2007
+.Dt NVRAM 4 prep
+.Os
+.Sh NAME
+.Nm nvram
+.Nd PReP nvram interface
+.Sh SYNOPSIS
+.In machine/nvram.h
+.Sh DESCRIPTION
+The file
+.Nm /dev/nvram
+is an interface to the PReP NVRAM, including the Global Environment Area.
+This interface is highly stylized;
+ioctls are used for all operations.
+These ioctls refer to individual variables in the
+Global Environment Area and their values.
+.Pp
+The calls that take and/or return a variable
+use a pointer to an
+.Li int
+variable for this purpose;
+others use a pointer to an
+.Li struct pnviocdesc
+descriptor,
+which contains a variable and two counted strings.
+The first string comprises the fields
+.Li pnv_namelen
+(an
+.Li int )
+and
+.Li pnv_name
+(a
+.Li "char *" ) ,
+giving the name of a field.
+The second string comprises the fields
+.Li pnv_buflen
+and
+.Li pnv_buf ,
+used analogously.
+These two counted strings work in a
+.Dq value-result
+fashion.
+At entry to the ioctl,
+the counts are expected to reflect the buffer size;
+on return,
+the counts are updated to reflect the buffer contents.
+.Pp
+The following ioctls are supported:
+.Bl -tag -width PNVIOCGETNEXTNAME
+.It PNVIOCGETNEXTNAME
+Takes a variable name and returns the name of the following variable.
+If a
+.Dv NULL
+is passed as the variable name, the first variable name
+will be returned.
+If the last variable is given as an argument, the ioctl will return
+.Er EINVAL .
+.It Dv PNVIOCGET
+Fills in the value of the named property for the given variable.
+If no such property is associated with that variable,
+the value length is set to \-1.
+If the named property exists but has no value,
+the value length is set to 0.
+.It Dv PNVIOCSET
+Writes the given value under the given name.
+.It Dv PNVIOCGETNUMGE
+Returns the number of variables in the Global Environment Area.
+.El
+.Sh FILES
+.Pa /dev/nvram
+.Sh ERRORS
+The following may result in rejection of an operation:
+.Bl -tag -width Er
+.It Bq Er EINVAL
+The given variable name does not exist; or
+the buffer set up to retrieve values from the nvram was not large enough
+to hold the result.
+.El
+.Sh SEE ALSO
+.Xr ioctl 2
+.Pp
+.Pa PowerPC Reference Platform Specification Version 1.1, Section 5.5
+.Sh BUGS
+Due to limitations within the
+.Nm
+itself, these functions run at elevated priority
+and may adversely affect system performance.
+.Pp
+.Dv PNVIOCSET
+is not currently supported, making the
+.Nm
+driver read-only at this time.