/*-
* Copyright (c) 1997, 1998, 1999 Nicolas Souchu
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD: src/sys/dev/ppbus/ppbconf.h,v 1.17.2.1 2000/05/24 00:20:57 n_hibma Exp $
*
*/
#ifndef __PPBUS_CONF_H
#define __PPBUS_CONF_H
/* ppbus capabilities (see ppbus_var.h) */
u_int16_t sc_capabilities;
/* PnP device type defined in ppbus_var.h */
int sc_class_id; /* not a PnP device if class_id < 0 */
/* Defined in pbus_1284.h: error and host side state. */
u_int32_t sc_1284_state; /* current IEEE1284 state */
u_int32_t sc_1284_error; /* last IEEE1284 error */
/* Use IEEE 1284 negotiations in mode changes and direction changes */
u_int32_t sc_use_ieee;
/* PPBUS mode masks defined in ppbus_var.h. */
u_int32_t sc_mode; /* IEEE 1284-1994 mode */
/* ppbus_device which owns the bus */
device_t ppbus_owner;
/* Head of list of child devices */
SLIST_HEAD(childlist, ppbus_device_softc) sc_childlist_head;