source: rtems/cpukit/libpci/pci_access_mem_be.c @ e53daed

4.11
Last change on this file since e53daed was e53daed, checked in by Daniel Hellstrom <daniel@…>, on Apr 9, 2015 at 2:09:42 PM

LIBPCI: updated license to rtems.org

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*  PCI Access Library
2 *  Registers-over-Memory Space - Generic Big endian PCI bus definitions
3 *
4 *  COPYRIGHT (c) 2010 Cobham Gaisler AB.
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *  http://www.rtems.org/license/LICENSE.
9 */
10
11#include <pci.h>
12
13uint16_t pci_mem_be_ld_le16(uint16_t *adr)
14{
15        return ld_be16(adr);
16}
17
18uint16_t pci_mem_be_ld_be16(uint16_t *adr)
19{
20        return ld_le16(adr);
21}
22
23uint32_t pci_mem_be_ld_le32(uint32_t *adr)
24{
25        return ld_be32(adr);
26}
27
28uint32_t pci_mem_be_ld_be32(uint32_t *adr)
29{
30        return ld_le32(adr);
31}
32
33void pci_mem_be_st_le16(uint16_t *adr, uint16_t data)
34{
35        st_be16(adr, data);
36}
37
38void pci_mem_be_st_be16(uint16_t *adr, uint16_t data)
39{
40        st_le16(adr, data);
41}
42
43void pci_mem_be_st_le32(uint32_t *adr, uint32_t data)
44{
45        st_be32(adr, data);
46}
47
48void pci_mem_be_st_be32(uint32_t *adr, uint32_t data)
49{
50        st_le32(adr, data);
51}
52
53struct pci_memreg_ops pci_mem_be_ops = {
54        .ld8    = pci_mem_ld8,
55        .st8    = pci_mem_st8,
56
57        .ld_le16 = pci_mem_be_ld_le16,
58        .st_le16 = pci_mem_be_st_le16,
59        .ld_be16 = pci_mem_be_ld_be16,
60        .st_be16 = pci_mem_be_st_be16,
61
62        .ld_le32 = pci_mem_be_ld_le32,
63        .st_le32 = pci_mem_be_st_le32,
64        .ld_be32 = pci_mem_be_ld_be32,
65        .st_be32 = pci_mem_be_st_be32,
66};
Note: See TracBrowser for help on using the repository browser.