1274656Sbr/*-
2274656Sbr * Copyright (c) 2014 Ruslan Bukin <br@bsdpad.com>
3274656Sbr * All rights reserved.
4274656Sbr *
5274656Sbr * This software was developed by SRI International and the University of
6274656Sbr * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
7274656Sbr * ("CTSRD"), as part of the DARPA CRASH research programme.
8274656Sbr *
9274656Sbr * Redistribution and use in source and binary forms, with or without
10274656Sbr * modification, are permitted provided that the following conditions
11274656Sbr * are met:
12274656Sbr * 1. Redistributions of source code must retain the above copyright
13274656Sbr *    notice, this list of conditions and the following disclaimer.
14274656Sbr * 2. Redistributions in binary form must reproduce the above copyright
15274656Sbr *    notice, this list of conditions and the following disclaimer in the
16274656Sbr *    documentation and/or other materials provided with the distribution.
17274656Sbr *
18274656Sbr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19274656Sbr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20274656Sbr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21274656Sbr * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22274656Sbr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23274656Sbr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24274656Sbr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25274656Sbr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26274656Sbr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27274656Sbr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28274656Sbr * SUCH DAMAGE.
29274656Sbr *
30274656Sbr * $FreeBSD: releng/11.0/sys/dev/altera/pio/pio.h 274656 2014-11-18 14:12:19Z br $
31274656Sbr */
32274656Sbr
33274656Sbr#define	PIO_DATA	0x00
34274656Sbr#define	PIO_DIR		0x04
35274656Sbr#define	 PIO_OUT(n)	(1 << n)
36274656Sbr#define	 PIO_OUT_ALL	0xffffffff
37274656Sbr#define	PIO_INT_MASK	0x08
38274656Sbr#define	 PIO_UNMASK(n)	(1 << n)
39274656Sbr#define	 PIO_UNMASK_ALL	0xffffffff
40274656Sbr#define	PIO_EDGECAPT	0x0c
41274656Sbr#define	PIO_OUTSET	0x10
42274656Sbr#define	PIO_OUTCLR	0x14
43274656Sbr
44