ecppreg.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 1992-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_ECPPREG_H
#define _SYS_ECPPREG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Register definitions for the National Semiconductor PC87332VLJ
* SuperI/O chip.
*/
/*
* configuration registers
*/
struct config_reg {
};
/* index values for the configuration registers */
#define SIO_LITE 0x40
#define SIO_LITE_B 0x90
#define SIO_REVA 0x1a
#define SIO_REVB 0x1b
/* bit definitions for the FCR register */
#define PC87332_FCR_MSD_SEL 0x01
#define PC87332_FCR_RESERVED 0x02
#define PC87332_FCR_PPM_EN 0x04
#define PC87332_FCR_PPM_FLOAT_CTL 0x08
#define PC87332_FCR_LDX 0x10
#define PC87332_FCR_ZWS_EN 0x20
#define PC87332_FCR_ZWS_SEL 0x40
#define PC87332_FCR_IOCHRDY_SEL 0x80
/* bit definitions for the PCR register */
#define PC87332_PCR_EPP_EN 0x01
#define PC87332_PCR_EPP_VER 0x02
#define PC87332_PCR_ECP_EN 0x04
#define PC87332_PCR_ECP_CLK_FZ 0x08
#define PC87332_PCR_INTR_LEVL 0x10
#define PC87332_PCR_INTR_POL 0x20
#define PC87332_PCR_INTR_DRAIN 0x40
#define PC87332_PCR_RESERVED 0x80
/* bit definitions for the PMC register */
#define PC87332_PMC_IDE_TRISTATE 0x01
#define PC87332_PMC_FDC_TRISTATE 0x02
#define PC87332_PMC_UART_TRISTATE 0x04
#define PC87332_PMC_ECP_DMA_CONFIG 0x08
#define PC87332_PMC_FDC_PD 0x10
#define PC87332_PMC_SLB 0x20
#define PC87332_PMC_PP_TRISTATE 0x40
#define PC87332_PMC_RESERVED 0x80
/*
* National 97317 superio registers
*/
#define PC97317_CONFIG_DEV_NO 0x07
#define PC97317_CONFIG_ACTIVATE 0x30
#define PC97317_CONFIG_IO_RANGE 0x31
#define PC97317_CONFIG_BASE_ADDR_MSB 0x60
#define PC97317_CONFIG_BASE_ADDR_LSB 0x61
#define PC97317_CONFIG_INTR_SEL 0x70
#define PC97317_CONFIG_INTR_TYPE 0x71
#define PC97317_CONFIG_DMA0_CHAN 0x74
#define PC97317_CONFIG_DMA1_CHAN 0x75
#define PC97317_CONFIG_PP_CONFIG 0xF0
/*
* Plug N Play configuration superio registers
* used in PC97317 & M1553
*/
#define PnP_CONFIG_DEV_NO 0x07
#define PnP_CONFIG_ACTIVATE 0x30
#define PnP_CONFIG_IO_RANGE 0x31
#define PnP_CONFIG_BASE_ADDR_MSB 0x60
#define PnP_CONFIG_BASE_ADDR_LSB 0x61
#define PnP_CONFIG_INTR_SEL 0x70
#define PnP_CONFIG_INTR_TYPE 0x71
#define PnP_CONFIG_DMA0_CHAN 0x74
#define PnP_CONFIG_DMA1_CHAN 0x75
#define PnP_CONFIG_PP_CONFIG0 0xF0
#define PnP_CONFIG_PP_CONFIG1 0xF1
/*
* parallel port interface registers - same for all 1284 modes.
*/
struct info_reg {
union {
} ir;
};
/*
* additional ECP mode registers.
*/
struct fifo_reg {
union {
} fr;
};
/*
* Values for the ECR field
*
* While writing to this register (ECPPIOC_SETREGS), bits 0,1,2 must be 0.
* If not, ECPPIOC_SETREGS will return EINVAL.
*/
#define ECPP_INTR_SRV 0x04
/*
* When bit is 0, bit will be set to 1
* and interrupt will be generated if
* any of the three events occur:
* (a) TC is reached while DMA enabled
* (b) If DMA disabled & DCR5 = 0, 8 or more bytes free in FIFO,
* (c) IF DMA disable & DCR5 = 1, 8 or more bytes to be read in FIFO.
*
* When this bit is 1, DMA & (a), (b), (c)
* interrupts are disabled.
*/
/*
* 97317 second level configuration registers
*/
struct config2_reg {
};
/*
* Second level offset
*/
#define PC97317_CONFIG2_CONTROL0 0x00
#define PC97317_CONFIG2_CONTROL2 0x02
#define PC97317_CONFIG2_CONTROL4 0x04
#define PC97317_CONFIG2_PPCONFG0 0x05
/* Cheerio Ebus DMAC */
struct cheerio_dma_reg {
};
/*
* DMA Control and Status Register(DCSR) definitions. See Cheerio spec
* for more details
*/
/* Southbridge support */
struct isaspace {
};
#ifdef __cplusplus
}
#endif
#endif /* _SYS_ECPPREG_H */