xref: /freebsd/sys/dev/ppbus/ppi.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1ed381522SMike Smith /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3718cf2ccSPedro F. Giffuni  *
4ed381522SMike Smith  * Copyright (c) 1997 Nicolas Souchu
5ed381522SMike Smith  * All rights reserved.
6ed381522SMike Smith  *
7ed381522SMike Smith  * Redistribution and use in source and binary forms, with or without
8ed381522SMike Smith  * modification, are permitted provided that the following conditions
9ed381522SMike Smith  * are met:
10ed381522SMike Smith  * 1. Redistributions of source code must retain the above copyright
11ed381522SMike Smith  *    notice, this list of conditions and the following disclaimer.
12ed381522SMike Smith  * 2. Redistributions in binary form must reproduce the above copyright
13ed381522SMike Smith  *    notice, this list of conditions and the following disclaimer in the
14ed381522SMike Smith  *    documentation and/or other materials provided with the distribution.
15ed381522SMike Smith  *
16ed381522SMike Smith  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17ed381522SMike Smith  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18ed381522SMike Smith  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19ed381522SMike Smith  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20ed381522SMike Smith  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21ed381522SMike Smith  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22ed381522SMike Smith  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23ed381522SMike Smith  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24ed381522SMike Smith  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25ed381522SMike Smith  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26ed381522SMike Smith  * SUCH DAMAGE.
27ed381522SMike Smith  *
28ed381522SMike Smith  */
29ed381522SMike Smith #ifndef __PPI_H
30ed381522SMike Smith #define	__PPI_H
31ed381522SMike Smith 
32664a31e4SPeter Wemm #ifndef _KERNEL
336f34dba9SMike Smith # include <sys/types.h>
346f34dba9SMike Smith #endif
356f34dba9SMike Smith #include <sys/ioccom.h>
36ed381522SMike Smith 
376f34dba9SMike Smith #define	PPIGDATA	_IOR('P', 10, u_int8_t)
386f34dba9SMike Smith #define	PPIGSTATUS	_IOR('P', 11, u_int8_t)
396f34dba9SMike Smith #define	PPIGCTRL	_IOR('P', 12, u_int8_t)
4020240fa3SNicolas Souchu #define	PPIGEPPD	_IOR('P', 13, u_int8_t)
416f34dba9SMike Smith #define	PPIGECR		_IOR('P', 14, u_int8_t)
426f34dba9SMike Smith #define	PPIGFIFO	_IOR('P', 15, u_int8_t)
43ed381522SMike Smith 
446f34dba9SMike Smith #define	PPISDATA	_IOW('P', 16, u_int8_t)
456f34dba9SMike Smith #define	PPISSTATUS	_IOW('P', 17, u_int8_t)
466f34dba9SMike Smith #define	PPISCTRL	_IOW('P', 18, u_int8_t)
4720240fa3SNicolas Souchu #define	PPISEPPD	_IOW('P', 19, u_int8_t)
486f34dba9SMike Smith #define	PPISECR		_IOW('P', 20, u_int8_t)
496f34dba9SMike Smith #define	PPISFIFO	_IOW('P', 21, u_int8_t)
50ed381522SMike Smith 
5120240fa3SNicolas Souchu #define	PPIGEPPA	_IOR('P', 22, u_int8_t)
52a45d9056SMark Johnston #define	PPISEPPA	_IOW('P', 23, u_int8_t)
5320240fa3SNicolas Souchu 
54ed381522SMike Smith #endif
55