1 1.2 msaitoh /* $NetBSD: pcicreg.h,v 1.2 2023/06/24 05:31:05 msaitoh Exp $ */ 2 1.1 simonb 3 1.1 simonb /* 4 1.1 simonb * Copyright 2001 Wasabi Systems, Inc. 5 1.1 simonb * All rights reserved. 6 1.1 simonb * 7 1.1 simonb * Written by Simon Burge and Eduardo Horvath for Wasabi Systems, Inc. 8 1.1 simonb * 9 1.1 simonb * Redistribution and use in source and binary forms, with or without 10 1.1 simonb * modification, are permitted provided that the following conditions 11 1.1 simonb * are met: 12 1.1 simonb * 1. Redistributions of source code must retain the above copyright 13 1.1 simonb * notice, this list of conditions and the following disclaimer. 14 1.1 simonb * 2. Redistributions in binary form must reproduce the above copyright 15 1.1 simonb * notice, this list of conditions and the following disclaimer in the 16 1.1 simonb * documentation and/or other materials provided with the distribution. 17 1.1 simonb * 3. All advertising materials mentioning features or use of this software 18 1.1 simonb * must display the following acknowledgement: 19 1.1 simonb * This product includes software developed for the NetBSD Project by 20 1.1 simonb * Wasabi Systems, Inc. 21 1.1 simonb * 4. The name of Wasabi Systems, Inc. may not be used to endorse 22 1.1 simonb * or promote products derived from this software without specific prior 23 1.1 simonb * written permission. 24 1.1 simonb * 25 1.1 simonb * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND 26 1.1 simonb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27 1.1 simonb * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28 1.1 simonb * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC 29 1.1 simonb * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30 1.1 simonb * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31 1.1 simonb * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32 1.1 simonb * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33 1.1 simonb * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 1.1 simonb * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35 1.1 simonb * POSSIBILITY OF SUCH DAMAGE. 36 1.1 simonb */ 37 1.1 simonb 38 1.1 simonb #ifndef _IBM4XX_PCICREG_H_ 39 1.1 simonb #define _IBM4XX_PCICREG_H_ 40 1.1 simonb 41 1.2 msaitoh /* PCI Configuration Registers */ 42 1.1 simonb #define PCIC_CFGADDR 0x00 43 1.1 simonb #define PCIC_CFGDATA 0x04 44 1.1 simonb 45 1.1 simonb #define PCIC_VENDID 0x00 46 1.1 simonb #define PCIC_DEVID 0x02 47 1.1 simonb #define PCIC_CMD 0x04 48 1.1 simonb #define PCIC_STATUS 0x06 49 1.1 simonb #define PCIC_REVID 0x08 50 1.1 simonb #define PCIC_CLS 0x09 51 1.1 simonb #define PCIC_CACHELS 0x0c 52 1.1 simonb #define PCIC_LATTIM 0x0d 53 1.1 simonb #define PCIC_HDTYPE 0x0e 54 1.1 simonb #define PCIC_BIST 0x0f 55 1.1 simonb #define PCIC_BAR0 0x10 56 1.1 simonb #define PCIC_BAR1 0x14 /* PCI name */ 57 1.1 simonb #define PCIC_PTM1BAR PCIC_BAR1 /* 405GP name */ 58 1.1 simonb #define PCIC_BAR2 0x18 /* PCI name */ 59 1.1 simonb #define PCIC_PTM2BAR PCIC_BAR2 /* 405GP name */ 60 1.1 simonb #define PCIC_BAR3 0x1C 61 1.1 simonb #define PCIC_BAR4 0x20 62 1.1 simonb #define PCIC_BAR5 0x24 63 1.1 simonb #define PCIC_SBSYSVID 0x2c 64 1.1 simonb #define PCIC_SBSYSID 0x2e 65 1.1 simonb #define PCIC_CAP 0x34 66 1.1 simonb #define PCIC_INTLN 0x3c 67 1.1 simonb #define PCIC_INTPN 0x3d 68 1.1 simonb #define PCIC_MINGNT 0x3e 69 1.1 simonb #define PCIC_MAXLTNCY 0x3f 70 1.1 simonb 71 1.1 simonb #define PCIC_ICS 0x44 /* 405GP specific parameters */ 72 1.1 simonb #define PCIC_ERREN 0x48 73 1.1 simonb #define PCIC_ERRSTS 0x49 74 1.1 simonb #define PCIC_BRDGOPT1 0x4a 75 1.1 simonb #define PCIC_PLBBESR0 0x4c 76 1.1 simonb #define PCIC_PLBBESR1 0x50 77 1.1 simonb #define PCIC_PLBBEAR 0x54 78 1.1 simonb #define PCIC_CAPID 0x58 79 1.1 simonb #define PCIC_NEXTIPTR 0x59 80 1.1 simonb #define PCIC_PMC 0x5a 81 1.1 simonb #define PCIC_PMCSR 0x5c 82 1.1 simonb #define PCIC_PMCSRBSE 0x5e 83 1.1 simonb #define PCIC_DATA 0x5f 84 1.1 simonb #define PCIC_BRDGOPT2 0x60 85 1.1 simonb #define PCIC_PMSCRR 0x64 86 1.1 simonb 87 1.1 simonb 88 1.2 msaitoh /* PCI Bridge Local Configuration Registers (0xef400000 0xef40003f - 64 bytes) */ 89 1.1 simonb #define PCIL_PMM0LA 0x00 /* PCI Master Map 0: Local Address */ 90 1.1 simonb #define PCIL_PMM0MA 0x04 /* Mask/Attribute */ 91 1.1 simonb #define PCIL_PMM0PCILA 0x08 /* PCI Low Address */ 92 1.1 simonb #define PCIL_PMM0PCIHA 0x0c /* PCI High Address */ 93 1.1 simonb #define PCIL_PMM1LA 0x10 94 1.1 simonb #define PCIL_PMM1MA 0x14 95 1.1 simonb #define PCIL_PMM1PCILA 0x18 96 1.1 simonb #define PCIL_PMM1PCIHA 0x1c 97 1.1 simonb #define PCIL_PMM2LA 0x20 98 1.1 simonb #define PCIL_PMM2MA 0x24 99 1.1 simonb #define PCIL_PMM2PCILA 0x28 100 1.1 simonb #define PCIL_PMM2PCIHA 0x2c 101 1.1 simonb #define PCIL_PTM1MS 0x30 102 1.1 simonb #define PCIL_PTM1LA 0x34 103 1.1 simonb #define PCIL_PTM2MS 0x38 104 1.1 simonb #define PCIL_PTM2LA 0x3c 105 1.1 simonb #endif /* _IBM4XX_PCICREG_H_ */ 106