1*11a6dbe7Smartin.\" $NetBSD: memswitch.8,v 1.4 2008/04/30 13:11:02 martin Exp $ 212769637Sminoura.\" 312769637Sminoura.\" Copyright (c) 1999 The NetBSD Foundation, Inc. 412769637Sminoura.\" All rights reserved. 512769637Sminoura.\" 612769637Sminoura.\" This code is derived from software contributed to The NetBSD Foundation 712769637Sminoura.\" by Minoura Makoto. 812769637Sminoura.\" 912769637Sminoura.\" Redistribution and use in source and binary forms, with or without 1012769637Sminoura.\" modification, are permitted provided that the following conditions 1112769637Sminoura.\" are met: 1212769637Sminoura.\" 1. Redistributions of source code must retain the above copyright 1312769637Sminoura.\" notice, this list of conditions and the following disclaimer. 1412769637Sminoura.\" 2. Redistributions in binary form must reproduce the above copyright 1512769637Sminoura.\" notice, this list of conditions and the following disclaimer in the 1612769637Sminoura.\" documentation and/or other materials provided with the distribution. 1712769637Sminoura.\" 1812769637Sminoura.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1912769637Sminoura.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2012769637Sminoura.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2112769637Sminoura.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2212769637Sminoura.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2312769637Sminoura.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2412769637Sminoura.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2512769637Sminoura.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2612769637Sminoura.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2712769637Sminoura.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2812769637Sminoura.\" POSSIBILITY OF SUCH DAMAGE. 2912769637Sminoura.\"/ 30c87a3782Sminoura.Dd June 21, 1999 3112769637Sminoura.Dt MEMSWITCH 8 x68k 3212769637Sminoura.Os 3312769637Sminoura.Sh NAME 3412769637Sminoura.Nm memswitch 3512769637Sminoura.Nd get or set x68k memory switch 3612769637Sminoura.Sh SYNOPSIS 3712769637Sminoura.Nm 3812769637Sminoura.Fl a 39990562bfSwiz.Nm 4012769637Sminoura.Op Fl h 4112769637Sminoura.Op Fl n 4212769637Sminoura.Ar variable ... 43990562bfSwiz.Nm 4412769637Sminoura.Fl w Ar variable=value ... 45990562bfSwiz.Nm 4612769637Sminoura.Fl r Ar filename 47990562bfSwiz.Nm 4812769637Sminoura.Fl s Ar filename 4912769637Sminoura.Sh DESCRIPTION 5012769637SminouraThe 5112769637Sminoura.Nm 5212769637Sminouracommand gets or sets the x68k memory switch stored in the non-volatile 5312769637Sminourastatic ram. 5412769637Sminoura.Pp 5512769637SminouraThe first form shows the current values of all the variables of the memory 5612769637Sminouraswitch. 5712769637Sminoura.Pp 5812769637SminouraThe second form shows the current values of the specified variables. If the 5912769637Sminoura.Fl h 6012769637Sminouraflag is specified, a brief descriptions of the variables are displayed. 6112769637SminouraThe 6212769637Sminoura.Fl n 6312769637Sminouraflag suppresses printing of the variable name. 6412769637Sminoura.Pp 6512769637SminouraThe third form sets or modifies the specified variables to the given value. 6612769637Sminoura.Pp 6712769637SminouraIn the fourth and fifth form, the whole memory switch part of non-volatile 6812769637SminouraSRAM is saved to, or restored from the specified file, respectively. 6912769637Sminoura.Sh FILES 7012769637Sminoura.Bl -tag -width /dev/sram 7112769637Sminoura.It Pa /dev/sram 7212769637Sminouranon-volatile static memory control device 7312769637Sminoura.El 7412769637Sminoura.Sh HISTORY 7512769637SminouraThe 7612769637Sminoura.Nm 7712769637Sminouracommand first appeared in 7812769637Sminoura.Nx 1.5 . 79