xref: /netbsd-src/sys/arch/x68k/dev/sramvar.h (revision 06cefe43457e8c17db747617189f23208ebd0b27)
1*06cefe43Sisaki /*	$NetBSD: sramvar.h,v 1.3 2008/12/21 09:01:19 isaki Exp $	*/
2320e7320Soki 
3320e7320Soki /*
4320e7320Soki  * Copyright (c) 1994 Kazuhisa Shimizu.
5320e7320Soki  * All rights reserved.
6320e7320Soki  *
7320e7320Soki  * Redistribution and use in source and binary forms, with or without
8320e7320Soki  * modification, are permitted provided that the following conditions
9320e7320Soki  * are met:
10320e7320Soki  * 1. Redistributions of source code must retain the above copyright
11320e7320Soki  *    notice, this list of conditions and the following disclaimer.
12320e7320Soki  * 2. Redistributions in binary form must reproduce the above copyright
13320e7320Soki  *    notice, this list of conditions and the following disclaimer in the
14320e7320Soki  *    documentation and/or other materials provided with the distribution.
15320e7320Soki  * 3. All advertising materials mentioning features or use of this software
16320e7320Soki  *    must display the following acknowledgement:
17320e7320Soki  *      This product includes software developed by Kazuhisa Shimizu.
18320e7320Soki  * 4. The name of the author may not be used to endorse or promote products
19320e7320Soki  *    derived from this software without specific prior written permission
20320e7320Soki  *
21320e7320Soki  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22320e7320Soki  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23320e7320Soki  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24320e7320Soki  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25320e7320Soki  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26320e7320Soki  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27320e7320Soki  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28320e7320Soki  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29320e7320Soki  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30320e7320Soki  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31320e7320Soki  */
32320e7320Soki 
33320e7320Soki struct sram_softc {
34*06cefe43Sisaki 	bus_space_tag_t		sc_iot;
35*06cefe43Sisaki 	bus_space_handle_t	sc_ioh;
36*06cefe43Sisaki 
37*06cefe43Sisaki 	int sc_flags;
38320e7320Soki };
39320e7320Soki 
40*06cefe43Sisaki #define SRF_OPEN	(0x0001)
41*06cefe43Sisaki #define SRF_READ	(0x0002)
42*06cefe43Sisaki #define SRF_WRITE	(0x0004)
43