diff options
author | msmith <msmith@FreeBSD.org> | 1998-01-02 09:30:39 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-01-02 09:30:39 +0000 |
commit | 8acca4f67741a3c3184d51b61c006cbc02068393 (patch) | |
tree | fec1364af06ac8a29802303b9076018889d95b92 /sys/dev/ppbus/ppi.h | |
parent | 721b8ddd8c999db0c27807161d66c3859bff41d7 (diff) | |
download | FreeBSD-src-8acca4f67741a3c3184d51b61c006cbc02068393.zip FreeBSD-src-8acca4f67741a3c3184d51b61c006cbc02068393.tar.gz |
Actually implement the internals of the 'ppi' device.
It is now possible to control the various parallel port signals from
user-space programs without having to resort to opening /dev/io
directly.
Diffstat (limited to 'sys/dev/ppbus/ppi.h')
-rw-r--r-- | sys/dev/ppbus/ppi.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/sys/dev/ppbus/ppi.h b/sys/dev/ppbus/ppi.h index d1a2e1d..f20416f 100644 --- a/sys/dev/ppbus/ppi.h +++ b/sys/dev/ppbus/ppi.h @@ -23,17 +23,29 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: ppi.h,v 1.1 1997/08/14 13:57:43 msmith Exp $ * */ #ifndef __PPI_H #define __PPI_H -struct ppi_data { +#ifndef KERNEL +# include <sys/types.h> +#endif +#include <sys/ioccom.h> - int ppi_unit; +#define PPIGDATA _IOR('P', 10, u_int8_t) +#define PPIGSTATUS _IOR('P', 11, u_int8_t) +#define PPIGCTRL _IOR('P', 12, u_int8_t) +#define PPIGEPP _IOR('P', 13, u_int8_t) +#define PPIGECR _IOR('P', 14, u_int8_t) +#define PPIGFIFO _IOR('P', 15, u_int8_t) - struct ppb_device ppi_dev; -}; +#define PPISDATA _IOW('P', 16, u_int8_t) +#define PPISSTATUS _IOW('P', 17, u_int8_t) +#define PPISCTRL _IOW('P', 18, u_int8_t) +#define PPISEPP _IOW('P', 19, u_int8_t) +#define PPISECR _IOW('P', 20, u_int8_t) +#define PPISFIFO _IOW('P', 21, u_int8_t) #endif |