Home | History | Annotate | Line # | Download | only in include
      1  1.3  nonaka /*	$NetBSD: pcicreg.h,v 1.3 2012/01/21 19:44:30 nonaka Exp $	*/
      2  1.1  nonaka 
      3  1.1  nonaka /*-
      4  1.3  nonaka  * Copyright (C) 2005 NONAKA Kimihiro <nonaka (at) netbsd.org>
      5  1.1  nonaka  * All rights reserved.
      6  1.1  nonaka  *
      7  1.1  nonaka  * Redistribution and use in source and binary forms, with or without
      8  1.1  nonaka  * modification, are permitted provided that the following conditions
      9  1.1  nonaka  * are met:
     10  1.1  nonaka  * 1. Redistributions of source code must retain the above copyright
     11  1.1  nonaka  *    notice, this list of conditions and the following disclaimer.
     12  1.1  nonaka  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1  nonaka  *    notice, this list of conditions and the following disclaimer in the
     14  1.1  nonaka  *    documentation and/or other materials provided with the distribution.
     15  1.1  nonaka  *
     16  1.3  nonaka  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     17  1.3  nonaka  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     18  1.3  nonaka  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     19  1.3  nonaka  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     20  1.3  nonaka  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     21  1.3  nonaka  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     22  1.3  nonaka  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     23  1.3  nonaka  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     24  1.3  nonaka  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     25  1.3  nonaka  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     26  1.1  nonaka  */
     27  1.1  nonaka 
     28  1.1  nonaka #ifndef	_SH3_PCICREG_H__
     29  1.1  nonaka #define	_SH3_PCICREG_H__
     30  1.1  nonaka 
     31  1.1  nonaka #include <sh3/devreg.h>
     32  1.1  nonaka 
     33  1.1  nonaka /*
     34  1.1  nonaka  * PCI Controller
     35  1.1  nonaka  */
     36  1.1  nonaka 
     37  1.1  nonaka #define	SH4_PCIC		0xfe200000
     38  1.1  nonaka 
     39  1.1  nonaka #define	SH4_PCIC_IO		0xfe240000
     40  1.1  nonaka #define	SH4_PCIC_IO_SIZE	0x00040000
     41  1.1  nonaka #define	SH4_PCIC_IO_MASK	(SH4_PCIC_IO_SIZE-1)
     42  1.1  nonaka #define	SH4_PCIC_MEM		0xfd000000
     43  1.1  nonaka #define	SH4_PCIC_MEM_SIZE	0x01000000
     44  1.1  nonaka #define	SH4_PCIC_MEM_MASK	(SH4_PCIC_MEM_SIZE-1)
     45  1.1  nonaka 
     46  1.1  nonaka #define	SH4_PCICONF	(SH4_PCIC+0x000)	/* 32bit */
     47  1.1  nonaka #define	SH4_PCICONF0	(SH4_PCICONF+0x00)	/* 32bit */
     48  1.1  nonaka #define	SH4_PCICONF1	(SH4_PCICONF+0x04)	/* 32bit */
     49  1.1  nonaka #define	SH4_PCICONF2	(SH4_PCICONF+0x08)	/* 32bit */
     50  1.1  nonaka #define	SH4_PCICONF3	(SH4_PCICONF+0x0c)	/* 32bit */
     51  1.1  nonaka #define	SH4_PCICONF4	(SH4_PCICONF+0x10)	/* 32bit */
     52  1.1  nonaka #define	SH4_PCICONF5	(SH4_PCICONF+0x14)	/* 32bit */
     53  1.1  nonaka #define	SH4_PCICONF6	(SH4_PCICONF+0x18)	/* 32bit */
     54  1.1  nonaka #define	SH4_PCICONF7	(SH4_PCICONF+0x1c)	/* 32bit */
     55  1.1  nonaka #define	SH4_PCICONF8	(SH4_PCICONF+0x20)	/* 32bit */
     56  1.1  nonaka #define	SH4_PCICONF9	(SH4_PCICONF+0x24)	/* 32bit */
     57  1.1  nonaka #define	SH4_PCICONF10	(SH4_PCICONF+0x28)	/* 32bit */
     58  1.1  nonaka #define	SH4_PCICONF11	(SH4_PCICONF+0x2c)	/* 32bit */
     59  1.1  nonaka #define	SH4_PCICONF12	(SH4_PCICONF+0x30)	/* 32bit */
     60  1.1  nonaka #define	SH4_PCICONF13	(SH4_PCICONF+0x34)	/* 32bit */
     61  1.1  nonaka #define	SH4_PCICONF14	(SH4_PCICONF+0x38)	/* 32bit */
     62  1.1  nonaka #define	SH4_PCICONF15	(SH4_PCICONF+0x3c)	/* 32bit */
     63  1.1  nonaka #define	SH4_PCICONF16	(SH4_PCICONF+0x40)	/* 32bit */
     64  1.1  nonaka #define	SH4_PCICONF17	(SH4_PCICONF+0x44)	/* 32bit */
     65  1.1  nonaka #define	SH4_PCICR	(SH4_PCIC+0x100)	/* 32bit */
     66  1.1  nonaka #define	SH4_PCILSR0	(SH4_PCIC+0x104)	/* 32bit */
     67  1.1  nonaka #define	SH4_PCILSR1	(SH4_PCIC+0x108)	/* 32bit */
     68  1.1  nonaka #define	SH4_PCILAR0	(SH4_PCIC+0x10c)	/* 32bit */
     69  1.1  nonaka #define	SH4_PCILAR1	(SH4_PCIC+0x110)	/* 32bit */
     70  1.1  nonaka #define	SH4_PCIINT	(SH4_PCIC+0x114)	/* 32bit */
     71  1.1  nonaka #define	SH4_PCIINTM	(SH4_PCIC+0x118)	/* 32bit */
     72  1.1  nonaka #define	SH4_PCIALR	(SH4_PCIC+0x11c)	/* 32bit */
     73  1.1  nonaka #define	SH4_PCICLR	(SH4_PCIC+0x120)	/* 32bit */
     74  1.1  nonaka #define	SH4_PCIAINT	(SH4_PCIC+0x130)	/* 32bit */
     75  1.1  nonaka #define	SH4_PCIAINTM	(SH4_PCIC+0x134)	/* 32bit */
     76  1.1  nonaka #define	SH4_PCIDMABT	(SH4_PCIC+0x140)	/* 32bit */
     77  1.1  nonaka #define	SH4_PCIDPA0	(SH4_PCIC+0x180)	/* 32bit */
     78  1.1  nonaka #define	SH4_PCIDLA0	(SH4_PCIC+0x184)	/* 32bit */
     79  1.1  nonaka #define	SH4_PCIDTC0	(SH4_PCIC+0x188)	/* 32bit */
     80  1.1  nonaka #define	SH4_PCIDCR0	(SH4_PCIC+0x18c)	/* 32bit */
     81  1.1  nonaka #define	SH4_PCIDPA1	(SH4_PCIC+0x190)	/* 32bit */
     82  1.1  nonaka #define	SH4_PCIDLA1	(SH4_PCIC+0x194)	/* 32bit */
     83  1.1  nonaka #define	SH4_PCIDTC1	(SH4_PCIC+0x198)	/* 32bit */
     84  1.1  nonaka #define	SH4_PCIDCR1	(SH4_PCIC+0x19c)	/* 32bit */
     85  1.1  nonaka #define	SH4_PCIDPA2	(SH4_PCIC+0x1a0)	/* 32bit */
     86  1.1  nonaka #define	SH4_PCIDLA2	(SH4_PCIC+0x1a4)	/* 32bit */
     87  1.1  nonaka #define	SH4_PCIDTC2	(SH4_PCIC+0x1a8)	/* 32bit */
     88  1.1  nonaka #define	SH4_PCIDCR2	(SH4_PCIC+0x1ac)	/* 32bit */
     89  1.1  nonaka #define	SH4_PCIDPA3	(SH4_PCIC+0x1b0)	/* 32bit */
     90  1.1  nonaka #define	SH4_PCIDLA3	(SH4_PCIC+0x1b4)	/* 32bit */
     91  1.1  nonaka #define	SH4_PCIDTC3	(SH4_PCIC+0x1b8)	/* 32bit */
     92  1.1  nonaka #define	SH4_PCIDCR3	(SH4_PCIC+0x1bc)	/* 32bit */
     93  1.1  nonaka #define	SH4_PCIPAR	(SH4_PCIC+0x1c0)	/* 32bit */
     94  1.1  nonaka #define	SH4_PCIMBR	(SH4_PCIC+0x1c4)	/* 32bit */
     95  1.1  nonaka #define	SH4_PCIIOBR	(SH4_PCIC+0x1c8)	/* 32bit */
     96  1.1  nonaka #define	SH4_PCIPINT	(SH4_PCIC+0x1cc)	/* 32bit */
     97  1.1  nonaka #define	SH4_PCIPINTM	(SH4_PCIC+0x1d0)	/* 32bit */
     98  1.1  nonaka #define	SH4_PCICLKR	(SH4_PCIC+0x1d4)	/* 32bit */
     99  1.1  nonaka #define	SH4_PCIBCR1	(SH4_PCIC+0x1e0)	/* 32bit */
    100  1.1  nonaka #define	SH4_PCIBCR2	(SH4_PCIC+0x1e4)	/* 32bit */
    101  1.1  nonaka #define	SH4_PCIWCR1	(SH4_PCIC+0x1e8)	/* 32bit */
    102  1.1  nonaka #define	SH4_PCIWCR2	(SH4_PCIC+0x1ec)	/* 32bit */
    103  1.1  nonaka #define	SH4_PCIWCR3	(SH4_PCIC+0x1f0)	/* 32bit */
    104  1.1  nonaka #define	SH4_PCIMCR	(SH4_PCIC+0x1f4)	/* 32bit */
    105  1.1  nonaka #define	SH4_PCIBCR3	(SH4_PCIC+0x1f8)	/* 32bit: SH7751R */
    106  1.1  nonaka #define	SH4_PCIPCTR	(SH4_PCIC+0x200)	/* 32bit */
    107  1.1  nonaka #define	SH4_PCIPDTR	(SH4_PCIC+0x204)	/* 32bit */
    108  1.1  nonaka #define	SH4_PCIPDR	(SH4_PCIC+0x220)	/* 32bit */
    109  1.1  nonaka 
    110  1.1  nonaka #define	PCICR_BASE		0xa5000000
    111  1.1  nonaka #define	PCICR_TRDSGL		0x00000200
    112  1.1  nonaka #define	PCICR_BYTESWAP		0x00000100
    113  1.1  nonaka #define	PCICR_PCIPUP		0x00000080
    114  1.1  nonaka #define	PCICR_BMABT		0x00000040
    115  1.1  nonaka #define	PCICR_MD10		0x00000020
    116  1.1  nonaka #define	PCICR_MD9		0x00000010
    117  1.1  nonaka #define	PCICR_SERR		0x00000008
    118  1.1  nonaka #define	PCICR_INTA		0x00000004
    119  1.1  nonaka #define	PCICR_RSTCTL		0x00000002
    120  1.1  nonaka #define	PCICR_CFINIT		0x00000001
    121  1.1  nonaka 
    122  1.1  nonaka #define	PCIINT_M_LOCKON		0x00008000
    123  1.1  nonaka #define	PCIINT_T_TGT_ABORT	0x00004000
    124  1.1  nonaka #define	PCIINT_TGT_RETRY	0x00000200
    125  1.1  nonaka #define	PCIINT_MST_DIS		0x00000100
    126  1.1  nonaka #define	PCIINT_ADRPERR		0x00000080
    127  1.1  nonaka #define	PCIINT_SERR_DET		0x00000040
    128  1.1  nonaka #define	PCIINT_T_DPERR_WT	0x00000020
    129  1.1  nonaka #define	PCIINT_T_PERR_DET	0x00000010
    130  1.1  nonaka #define	PCIINT_M_TGT_ABORT	0x00000008
    131  1.1  nonaka #define	PCIINT_M_MST_ABORT	0x00000004
    132  1.1  nonaka #define	PCIINT_M_DPERR_WT	0x00000002
    133  1.1  nonaka #define	PCIINT_M_DPERR_RD	0x00000001
    134  1.1  nonaka #define	PCIINT_ALL		0x0000c3ff
    135  1.1  nonaka #define	PCIINT_CLEAR_ALL	PCIINT_ALL
    136  1.1  nonaka 
    137  1.1  nonaka #define	PCIINTM_MASK_ALL	0x00000000
    138  1.1  nonaka #define	PCIINTM_UNMASK_ALL	PCIINT_ALL
    139  1.1  nonaka 
    140  1.1  nonaka #define	PCIMBR_MASK		0xff000000
    141  1.1  nonaka 
    142  1.1  nonaka #define	PCIIOBR_MASK		0xffc00000
    143  1.1  nonaka 
    144  1.1  nonaka #endif	/* _SH3_PCICREG_H__ */
    145