2001-09-15 16:47:04 +04:00
|
|
|
/* $NetBSD: plumicureg.h,v 1.3 2001/09/15 12:47:06 uch Exp $ */
|
1999-11-21 09:50:26 +03:00
|
|
|
|
2001-09-15 16:47:04 +04:00
|
|
|
/*-
|
|
|
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
1999-11-21 09:50:26 +03:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
2001-09-15 16:47:04 +04:00
|
|
|
* This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
* by UCHIYAMA Yasushi.
|
|
|
|
*
|
1999-11-21 09:50:26 +03:00
|
|
|
* 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.
|
2001-09-15 16:47:04 +04:00
|
|
|
* 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.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by the NetBSD
|
|
|
|
* Foundation, Inc. and its contributors.
|
|
|
|
* 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
* contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
1999-11-21 09:50:26 +03:00
|
|
|
*
|
2001-09-15 16:47:04 +04:00
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
|
1999-11-21 09:50:26 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
1999-12-07 20:53:04 +03:00
|
|
|
* PLUM2 INTERRUPT CONTROLLER UNIT
|
1999-11-21 09:50:26 +03:00
|
|
|
*/
|
|
|
|
#define PLUM_INT_REGBASE 0x8000
|
|
|
|
#define PLUM_INT_REGSIZE 0x1000
|
|
|
|
|
1999-12-07 20:53:04 +03:00
|
|
|
/*
|
|
|
|
* Interrupt status register
|
|
|
|
*/
|
1999-11-21 09:50:26 +03:00
|
|
|
#define PLUM_INT_INTSTA_REG 0x000
|
|
|
|
#define PLUM_INT_INTSTA_EXTINT 0x00000080
|
|
|
|
#define PLUM_INT_INTSTA_SMINT 0x00000040
|
|
|
|
#define PLUM_INT_INTSTA_USBWAKE 0x00000020
|
|
|
|
#define PLUM_INT_INTSTA_USBINT 0x00000010
|
|
|
|
#define PLUM_INT_INTSTA_DISPINT 0x00000008
|
|
|
|
#define PLUM_INT_INTSTA_C2SCINT 0x00000004
|
|
|
|
#define PLUM_INT_INTSTA_C1SCINT 0x00000002
|
|
|
|
#define PLUM_INT_INTSTA_PCCINT 0x00000001
|
|
|
|
|
1999-12-07 20:53:04 +03:00
|
|
|
/*
|
|
|
|
* Interrupt enable register
|
|
|
|
*/
|
1999-11-21 09:50:26 +03:00
|
|
|
#define PLUM_INT_INTIEN_REG 0x010
|
|
|
|
#define PLUM_INT_INTIEN 0x00000001
|
|
|
|
|
1999-12-07 20:53:04 +03:00
|
|
|
/*
|
|
|
|
* External interrupts
|
|
|
|
*/
|
1999-11-21 09:50:26 +03:00
|
|
|
/* outside input interrupt status register */
|
|
|
|
#define PLUM_INT_EXTINTS_REG 0x100
|
|
|
|
|
1999-12-07 20:53:04 +03:00
|
|
|
#define PLUM_INT_EXTINTS_IO3INT1 0x00000020
|
|
|
|
#define PLUM_INT_EXTINTS_IO3INT0 0x00000010
|
|
|
|
#define PLUM_INT_EXTINTS_IO5INT3 0x00000008
|
|
|
|
#define PLUM_INT_EXTINTS_IO5INT2 0x00000004
|
|
|
|
#define PLUM_INT_EXTINTS_IO5INT1 0x00000002
|
|
|
|
#define PLUM_INT_EXTINTS_IO5INT0 0x00000001
|
|
|
|
|
|
|
|
/* outside input interrupt status register (after the mask) */
|
1999-11-21 09:50:26 +03:00
|
|
|
#define PLUM_INT_EXTINTM_REG 0x104
|
1999-12-07 20:53:04 +03:00
|
|
|
|
|
|
|
/* interrupt enable register from the outside input */
|
1999-11-21 09:50:26 +03:00
|
|
|
#define PLUM_INT_EXTIEN_REG 0x110
|
|
|
|
|
1999-12-07 20:53:04 +03:00
|
|
|
#define PLUM_INT_EXTIEN_IENIO3INT1 0x00000020
|
|
|
|
#define PLUM_INT_EXTIEN_IENIO3INT0 0x00000010
|
|
|
|
#define PLUM_INT_EXTIEN_IENIO5INT3 0x00000008
|
|
|
|
#define PLUM_INT_EXTIEN_IENIO5INT2 0x00000004
|
|
|
|
#define PLUM_INT_EXTIEN_IENIO5INT1 0x00000002
|
|
|
|
#define PLUM_INT_EXTIEN_IENIO5INT0 0x00000001
|
1999-11-21 09:50:26 +03:00
|
|
|
|
1999-12-07 20:53:04 +03:00
|
|
|
#define PLUM_INT_EXTIEN_SENIO3INT1 0x00002000
|
|
|
|
#define PLUM_INT_EXTIEN_SENIO3INT0 0x00001000
|
|
|
|
#define PLUM_INT_EXTIEN_SENIO5INT3 0x00000800
|
|
|
|
#define PLUM_INT_EXTIEN_SENIO5INT2 0x00000400
|
|
|
|
#define PLUM_INT_EXTIEN_SENIO5INT1 0x00000200
|
|
|
|
#define PLUM_INT_EXTIEN_SENIO5INT0 0x00000100
|
1999-11-21 09:50:26 +03:00
|
|
|
|
1999-12-07 20:53:04 +03:00
|
|
|
/*
|
|
|
|
* PC-card interrupts
|
|
|
|
*/
|
1999-11-21 09:50:26 +03:00
|
|
|
/* PC-card interrupt status register */
|
|
|
|
#define PLUM_INT_PCCINTS_REG 0x200
|
1999-12-07 20:53:04 +03:00
|
|
|
|
1999-11-21 09:50:26 +03:00
|
|
|
#define PLUM_INT_PCCINTS_C2RI 0x00000008
|
|
|
|
#define PLUM_INT_PCCINTS_C2IO 0x00000004
|
|
|
|
#define PLUM_INT_PCCINTS_C1RI 0x00000002
|
|
|
|
#define PLUM_INT_PCCINTS_C1IO 0x00000001
|
|
|
|
|
|
|
|
/* PC-card interrupt status register (masked) */
|
|
|
|
#define PLUM_INT_PCCINTM_REG 0x204
|
|
|
|
/* PC-card interrupt enable register */
|
|
|
|
#define PLUM_INT_PCCIEN_REG 0x210
|
|
|
|
|
|
|
|
#define PLUM_INT_PCCIEN_SENC2RI 0x00000800
|
|
|
|
#define PLUM_INT_PCCIEN_SENC2IO 0x00000400
|
|
|
|
#define PLUM_INT_PCCIEN_SENC1RI 0x00000200
|
|
|
|
#define PLUM_INT_PCCIEN_SENC1IO 0x00000100
|
1999-12-07 20:53:04 +03:00
|
|
|
#define PLUM_INT_PCCIEN_IENC2RI 0x00000008
|
|
|
|
#define PLUM_INT_PCCIEN_IENC2IO 0x00000004
|
|
|
|
#define PLUM_INT_PCCIEN_IENC1RI 0x00000002
|
|
|
|
#define PLUM_INT_PCCIEN_IENC1IO 0x00000001
|
1999-11-21 09:50:26 +03:00
|
|
|
|
|
|
|
/* PC-card interrupt detection register */
|
|
|
|
#define PLUM_INT_PCCLKSL_REG 0x220
|
|
|
|
#define PLUM_INT_PCCLKSL_RTC 0x00000001 /*(for suspend mode)*/
|
|
|
|
|
1999-12-07 20:53:04 +03:00
|
|
|
/*
|
|
|
|
* USB interrupts
|
|
|
|
*/
|
1999-11-21 09:50:26 +03:00
|
|
|
/* USB interrupt enable register */
|
|
|
|
#define PLUM_INT_USBINTEN_REG 0x310
|
|
|
|
|
1999-12-07 20:53:04 +03:00
|
|
|
/* master-enables the USB interrupts */
|
|
|
|
#define PLUM_INT_USBINTEN_IEN 0x00000002
|
|
|
|
/* enbales the clock restart request interrupts */
|
|
|
|
#define PLUM_INT_USBINTEN_WIEN 0x00000001
|
1999-11-21 09:50:26 +03:00
|
|
|
|
1999-12-07 20:53:04 +03:00
|
|
|
/*
|
|
|
|
* SmartMedia interrupts
|
|
|
|
*/
|
1999-11-21 09:50:26 +03:00
|
|
|
/* SmartMedia interrupt enable register */
|
|
|
|
#define PLUM_INT_SMIEN_REG 0x410
|
|
|
|
|
|
|
|
#define PLUM_INT_SMIEN 0x00000001
|