1182835Snyan/*-
2182835Snyan * Copyright (c) 2008 TAKAHASHI Yoshihiro
3182835Snyan * All rights reserved.
4182835Snyan *
5182835Snyan * Redistribution and use in source and binary forms, with or without
6182835Snyan * modification, are permitted provided that the following conditions
7182835Snyan * are met:
8182835Snyan * 1. Redistributions of source code must retain the above copyright
9182835Snyan *    notice, this list of conditions and the following disclaimer.
10182835Snyan * 2. Redistributions in binary form must reproduce the above copyright
11182835Snyan *    notice, this list of conditions and the following disclaimer in the
12182835Snyan *    documentation and/or other materials provided with the distribution.
13182835Snyan *
14182835Snyan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15182835Snyan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16182835Snyan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17182835Snyan * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18182835Snyan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19182835Snyan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20182835Snyan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21182835Snyan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22182835Snyan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23182835Snyan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24182835Snyan * SUCH DAMAGE.
25182835Snyan *
26182835Snyan * $FreeBSD$
27182835Snyan */
28182835Snyan
29182835Snyan#ifndef	_DEV_IC_I8255_H_
30182835Snyan#define	_DEV_IC_I8255_H_
31182835Snyan
32182835Snyan/*
33182835Snyan * modem status via SYSTM_PORTB
34182835Snyan */
35182835Snyan#define	CICSCD_CD	0x20	/* CD */
36182835Snyan#define	CICSCD_CS	0x40	/* CS */
37182835Snyan#define	CICSCD_CI	0x80	/* CI */
38182835Snyan
39182835Snyan/*
40182835Snyan * control intrline via SYSTM_PORTC
41182835Snyan */
42182835Snyan#define	IEN_Rx		0x01
43182835Snyan#define	IEN_TxEMP	0x02
44182835Snyan#define	IEN_Tx		0x04
45182835Snyan
46182835Snyan#endif	/* _DEV_IC_I8255_H_ */
47