source: rtems/c/src/lib/libbsp/sparc/shared/pci/pci_memreg_sparc_le.c @ 46e41c98

4.11
Last change on this file since 46e41c98 was 46e41c98, checked in by Daniel Hellstrom <daniel@…>, on Dec 16, 2011 at 1:10:57 PM

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: 611 bytes
Line 
1/*  Registers-over-Memory Space - SPARC Little 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
12#include <pci.h>
13#include <libcpu/access.h>
14
15struct pci_memreg_ops pci_memreg_sparc_le_ops = {
16        .ld8    = _ld8,
17        .st8    = _st8,
18
19        .ld_le16 = _ld_le16,
20        .st_le16 = _st_le16,
21        .ld_be16 = _ld_be16,
22        .st_be16 = _st_be16,
23
24        .ld_le32 = _ld_le32,
25        .st_le32 = _st_le32,
26        .ld_be32 = _ld_be32,
27        .st_be32 = _st_be32,
28};
Note: See TracBrowser for help on using the repository browser.