185365Simp/*-
285365Simp * Copyright (c) 1991 The Regents of the University of California.
385365Simp * All rights reserved.
485365Simp *
585365Simp * Redistribution and use in source and binary forms, with or without
685365Simp * modification, are permitted provided that the following conditions
785365Simp * are met:
885365Simp * 1. Redistributions of source code must retain the above copyright
985365Simp *    notice, this list of conditions and the following disclaimer.
1085365Simp * 2. Redistributions in binary form must reproduce the above copyright
1185365Simp *    notice, this list of conditions and the following disclaimer in the
1285365Simp *    documentation and/or other materials provided with the distribution.
1385365Simp * 4. Neither the name of the University nor the names of its contributors
1485365Simp *    may be used to endorse or promote products derived from this software
1585365Simp *    without specific prior written permission.
1685365Simp *
1785365Simp * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1885365Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1985365Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2085365Simp * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2185365Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2285365Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2385365Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2485365Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2585365Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2685365Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2785365Simp * SUCH DAMAGE.
2885365Simp *
2985365Simp * $FreeBSD$
3085365Simp */
3185365Simp
3286912Snyan#ifdef PC98
3386912Snyan#define COM_IF_INTERNAL		0x00
3486912Snyan#define COM_IF_PC9861K_1	0x01
3586912Snyan#define COM_IF_PC9861K_2	0x02
3686912Snyan#define COM_IF_IND_SS_1		0x03
3786912Snyan#define COM_IF_IND_SS_2		0x04
3886912Snyan#define COM_IF_PIO9032B_1	0x05
3986912Snyan#define COM_IF_PIO9032B_2	0x06
4086912Snyan#define COM_IF_B98_01_1		0x07
4186912Snyan#define COM_IF_B98_01_2		0x08
4286912Snyan#define COM_IF_END1		COM_IF_B98_01_2
4386912Snyan#define COM_IF_RSA98		0x10	/* same as COM_IF_NS16550 */
4486912Snyan#define COM_IF_NS16550		0x11
4586912Snyan#define COM_IF_SECOND_CCU	0x12	/* same as COM_IF_NS16550 */
4686912Snyan#define COM_IF_MC16550II	0x13
4786912Snyan#define COM_IF_MCRS98		0x14	/* same as COM_IF_MC16550II */
4886912Snyan#define COM_IF_RSB3000		0x15
4986912Snyan#define COM_IF_RSB384		0x16
5086912Snyan#define COM_IF_MODEM_CARD	0x17
5186912Snyan#define COM_IF_RSA98III		0x18
5286912Snyan#define COM_IF_ESP98		0x19
5386912Snyan#define COM_IF_END2		COM_IF_ESP98
5486912Snyan
5586912Snyan#define GET_IFTYPE(type)	(((type) >> 24) & 0x1f)
5686912Snyan#define SET_IFTYPE(type)	((type) << 24)
5786912Snyan
5886912Snyan#define SET_FLAG(dev, bit) device_set_flags(dev, device_get_flags(dev) | (bit))
5986912Snyan#define CLR_FLAG(dev, bit) device_set_flags(dev, device_get_flags(dev) & ~(bit))
6086912Snyan#endif /* PC98 */
6186912Snyan
6292739Salfredint	sioattach(device_t dev, int xrid, u_long rclk);
6392739Salfredint	siodetach(device_t dev);
6492739Salfredint	sioprobe(device_t dev, int xrid, u_long rclk, int noprobe);
6585365Simp
6685365Simpextern	devclass_t	sio_devclass;
6785365Simpextern	char		sio_driver_name[];
68