4.115
Last change
on this file since 46e41c98 was
46e41c98,
checked in by Daniel Hellstrom <daniel@…>, on 12/16/11 at 13:10:57
|
LEON: replaced old BSP PCI layer with new generic libpci PCI layer
The old code used a limited PCI configuration library, which was
duplicated into LEON2 and LEON3 BSP pci.c together with respective
Host controller PCI interface.
The LEON2 BSP had support for AT697 PCI, and LEON3 for GRPCI PCI
Host controller. With this update new PCI Host drivers are added,
and all support the new generic PCI Library:
- AT697 PCI (LEON2 only)
- GRPCI (LEON2-GRLIB and LEON3)
- GRPCI2 (LEON2-GRLIB and LEON3)
- Actel PCIF GRLIB Wrapper (LEON3 only)
The LEON2 BSP is defined as big-endian PCI in bsp.h, since the
AT697 supports only big-endian PCI.
|
-
Property mode set to
100644
|
File size:
607 bytes
|
Line | |
---|
1 | /* Registers-over-Memory Space - SPARC Big endian PCI bus definitions |
---|
2 | * |
---|
3 | * COPYRIGHT (c) 2011. |
---|
4 | * Cobham Gaisler AB. |
---|
5 | * |
---|
6 | * The license and distribution terms for this file may be |
---|
7 | * found in found in the file LICENSE in this distribution or at |
---|
8 | * http://www.rtems.com/license/LICENSE. |
---|
9 | */ |
---|
10 | |
---|
11 | #include <pci.h> |
---|
12 | #include <libcpu/access.h> |
---|
13 | |
---|
14 | struct pci_memreg_ops pci_memreg_sparc_be_ops = { |
---|
15 | .ld8 = _ld8, |
---|
16 | .st8 = _st8, |
---|
17 | |
---|
18 | .ld_le16 = _ld_be16, |
---|
19 | .st_le16 = _st_be16, |
---|
20 | .ld_be16 = _ld_le16, |
---|
21 | .st_be16 = _st_le16, |
---|
22 | |
---|
23 | .ld_le32 = _ld_be32, |
---|
24 | .st_le32 = _st_be32, |
---|
25 | .ld_be32 = _ld_le32, |
---|
26 | .st_be32 = _st_le32, |
---|
27 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.