/*-
* Copyright (c) 2001 Alcove - 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/isa/ppcreg.h,v 1.10.2.4 2001/10/02 05:21:45 nsouch Exp
*
*/
/*
* Hardware capabilities flags: standard mode and nibble mode are
* assumed to always be available since if they aren't you don't
* HAVE a parallel port.
*/
#define ATPPC_HAS_INTR 0x01 /* Interrupt available */
#define ATPPC_HAS_DMA 0x02 /* DMA available */
#define ATPPC_HAS_FIFO 0x04 /* FIFO available */
#define ATPPC_HAS_PS2 0x08 /* PS2 mode capable */
#define ATPPC_HAS_ECP 0x10 /* ECP mode available */
#define ATPPC_HAS_EPP 0x20 /* EPP mode available */
u_int8_t sc_has; /* Chipset detected capabilities */
/* Flags specifying mode of chipset operation . */
#define ATPPC_MODE_STD 0x01 /* Use centronics-compatible mode */
#define ATPPC_MODE_PS2 0x02 /* Use PS2 mode */
#define ATPPC_MODE_EPP 0x04 /* Use EPP mode */
#define ATPPC_MODE_ECP 0x08 /* Use ECP mode */
#define ATPPC_MODE_NIBBLE 0x10 /* Use nibble mode */
#define ATPPC_MODE_FAST 0x20 /* Use Fast Centronics mode */
u_int8_t sc_mode; /* Current operational mode */
/* Flags which further define chipset operation */
#define ATPPC_USE_INTR 0x01 /* Use interrupts */
#define ATPPC_USE_DMA 0x02 /* Use DMA */
u_int8_t sc_use; /* Capabilities to use */