/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_ECPPVAR_H
#define _SYS_ECPPVAR_H
#include <sys/sysmacros.h>
#ifdef __cplusplus
extern "C" {
#endif
struct ecppunit;
/*
* Hardware-abstraction structure
*/
struct ecpp_hw {
};
/* NSC 87332/97317 and EBus DMAC */
struct ecpp_ebus {
};
/* Southbridge SuperIO and 8237 DMAC */
struct ecpp_m1553 {
};
#if defined(__x86)
struct ecpp_x86 {
};
#endif
/*
* Hardware binding structure
*/
struct ecpp_hw_bind {
};
/* ecpp e_busy states */
typedef enum {
} ecpp_busy_t;
/*
* ecpp soft state structure
*/
struct ecppunit {
/*
* common SuperIO registers
*/
/*
* DMA support
*/
/*
* hardware-dependent stuff
*/
union { /* hw-dependent data */
#if defined(__x86)
#endif
} uh;
/*
*/
/*
* Modes of operation
*/
/*
* Ioctls support
*/
/*
* ecpp.conf parameters
*/
/*
* Timeouts
*/
/*
* Softintr data
*/
/*
* Misc stuff
*/
/*
* Spurious interrupt detection
*/
/*
* Statistics
*/
/*
* number of bytes, transferred in and out in each mode
*/
/*
* other stats
*/
/*
* interrupt stats
*/
/*
* identify second register set for ecp mode on Sx86
*/
int noecpregs;
};
/*
* current_phase values
*/
/* ecpp return values */
#define FALSE 0
/* message type */
/* transfer modes */
/* tuneable timing defaults */
/* Centronics hanshaking defaults */
/* 1284 Extensibility Request values */
/* softintr flags */
/* Stream defaults */
/* Loop timers */
/* misc constants */
/* ECP mode constants */
/* spurious interrupt detection */
/*
*/
#define ECPP_STRUCTIN 0
/*
* As other ioctls require the same structure, put inner struct's into union
*/
struct ecpp_copystate {
union {
} un;
};
/*
* The structure is dynamically created for each M_IOCTL and is bound to mblk
*/
/* kstat structure */
struct ecppkstat {
/*
* number of bytes, transferred in and out in each mode
*/
/*
* number of transitions to particular mode
*/
/*
* other stats
*/
/* isr has looped */
};
/* Macros for superio programming */
/*
* Macros to manipulate register bits
*/
{ \
}
{ \
}
{ \
}
{ \
}
{ \
}
/*
*/
/*
* Macros to distinguish between PIO and DMA Compatibility mode
*/
/*
* Other useful macros
*/
#define NELEM(a) (sizeof (a) / sizeof (*(a)))
#ifdef __cplusplus
}
#endif
#endif /* _SYS_ECPPVAR_H */