Changeset f407c51 in rtems


Ignore:
Timestamp:
Feb 5, 2015, 1:31:42 PM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
28950f0b
Parents:
0d9bc25
git-author:
Daniel Hellstrom <daniel@…> (02/05/15 13:31:42)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:22)
Message:

GRPCI: fixed build warnings

Location:
c/src/lib/libbsp/sparc
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/Makefile.am

    r0d9bc25 rf407c51  
    4040
    4141# PCI bus
     42EXTRA_DIST += shared/include/grpci.h
    4243EXTRA_DIST += shared/include/grpci2.h
    4344EXTRA_DIST += shared/pci/grpci.c
  • c/src/lib/libbsp/sparc/leon2/Makefile.am

    r0d9bc25 rf407c51  
    9898
    9999# PCI
     100include_HEADERS += ../../sparc/shared/include/grpci.h
    100101include_HEADERS += ../../sparc/shared/include/grpci2.h
    101102libbsp_a_SOURCES += ../../sparc/shared/pci/grpci2.c
  • c/src/lib/libbsp/sparc/leon2/preinstall.am

    r0d9bc25 rf407c51  
    118118PREINSTALL_FILES += $(PROJECT_INCLUDE)/tlib.h
    119119
     120$(PROJECT_INCLUDE)/grpci.h: ../../sparc/shared/include/grpci.h $(PROJECT_INCLUDE)/$(dirstamp)
     121        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grpci.h
     122PREINSTALL_FILES += $(PROJECT_INCLUDE)/grpci.h
     123
    120124$(PROJECT_INCLUDE)/grpci2.h: ../../sparc/shared/include/grpci2.h $(PROJECT_INCLUDE)/$(dirstamp)
    121125        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grpci2.h
  • c/src/lib/libbsp/sparc/leon3/Makefile.am

    r0d9bc25 rf407c51  
    107107
    108108# PCI
     109include_HEADERS += ../../sparc/shared/include/grpci.h
    109110include_HEADERS += ../../sparc/shared/include/grpci2.h
    110111libbsp_a_SOURCES += ../../sparc/shared/pci/grpci.c
  • c/src/lib/libbsp/sparc/leon3/preinstall.am

    r0d9bc25 rf407c51  
    133133        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
    134134PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
     135
     136$(PROJECT_INCLUDE)/grpci.h: ../../sparc/shared/include/grpci.h $(PROJECT_INCLUDE)/$(dirstamp)
     137        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/grpci.h
     138PREINSTALL_FILES += $(PROJECT_INCLUDE)/grpci.h
    135139
    136140$(PROJECT_INCLUDE)/grpci2.h: ../../sparc/shared/include/grpci2.h $(PROJECT_INCLUDE)/$(dirstamp)
  • c/src/lib/libbsp/sparc/shared/pci/grpci.c

    r0d9bc25 rf407c51  
    3030#include <ambapp.h>
    3131#include <drvmgr/pci_bus.h>
     32#include <grpci.h>
    3233
    3334#define DMAPCI_ADDR 0x80000500
     
    167168}
    168169
    169 int grpci_cfg_r32(pci_dev_t dev, int ofs, uint32_t *val)
     170static int grpci_cfg_r32(pci_dev_t dev, int ofs, uint32_t *val)
    170171{
    171172        struct grpci_priv *priv = grpcipriv;
     
    217218
    218219
    219 int grpci_cfg_r16(pci_dev_t dev, int ofs, uint16_t *val)
     220static int grpci_cfg_r16(pci_dev_t dev, int ofs, uint16_t *val)
    220221{
    221222        uint32_t v;
     
    231232}
    232233
    233 int grpci_cfg_r8(pci_dev_t dev, int ofs, uint8_t *val)
     234static int grpci_cfg_r8(pci_dev_t dev, int ofs, uint8_t *val)
    234235{
    235236        uint32_t v;
     
    243244}
    244245
    245 int grpci_cfg_w32(pci_dev_t dev, int ofs, uint32_t val)
     246static int grpci_cfg_w32(pci_dev_t dev, int ofs, uint32_t val)
    246247{
    247248        struct grpci_priv *priv = grpcipriv;
     
    285286}
    286287
    287 int grpci_cfg_w16(pci_dev_t dev, int ofs, uint16_t val)
     288static int grpci_cfg_w16(pci_dev_t dev, int ofs, uint16_t val)
    288289{
    289290        uint32_t v;
     
    302303}
    303304
    304 int grpci_cfg_w8(pci_dev_t dev, int ofs, uint8_t val)
     305static int grpci_cfg_w8(pci_dev_t dev, int ofs, uint8_t val)
    305306{
    306307        uint32_t v;
     
    325326 * 0xff if not assigned.
    326327 */
    327 uint8_t grpci_bus0_irq_map(pci_dev_t dev, int irq_pin)
     328static uint8_t grpci_bus0_irq_map(pci_dev_t dev, int irq_pin)
    328329{
    329330        uint8_t sysIrqNr = 0; /* not assigned */
     
    340341}
    341342
    342 int grpci_translate(uint32_t *address, int type, int dir)
     343static int grpci_translate(uint32_t *address, int type, int dir)
    343344{
    344345        uint32_t adr;
     
    428429};
    429430
    430 int grpci_hw_init(struct grpci_priv *priv)
     431static int grpci_hw_init(struct grpci_priv *priv)
    431432{
    432433        volatile unsigned int *mbar0, *page0;
     
    502503 *  -4            Error registering driver to PCI layer
    503504 */
    504 int grpci_init(struct grpci_priv *priv)
     505static int grpci_init(struct grpci_priv *priv)
    505506{
    506507        struct ambapp_apb_info *apb;
     
    674675
    675676/* DMA functions which uses GRPCIs optional DMA controller (len in words) */
    676 int grpci_dma_to_pci(unsigned int ahb_addr, unsigned int pci_addr, unsigned int len) {
     677int grpci_dma_to_pci(
     678        unsigned int ahb_addr,
     679        unsigned int pci_addr,
     680        unsigned int len)
     681{
    677682    int ret = 0;
    678683
     
    695700}
    696701
    697 int grpci_dma_from_pci(unsigned int ahb_addr, unsigned int pci_addr, unsigned int len) {
     702int grpci_dma_from_pci(
     703        unsigned int ahb_addr,
     704        unsigned int pci_addr,
     705        unsigned int len)
     706{
    698707    int ret = 0;
    699708
Note: See TracChangeset for help on using the changeset viewer.