Changeset 05ce8bd5 in rtems


Ignore:
Timestamp:
Feb 10, 2015, 7:32:42 AM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
b787bead
Parents:
e3c9937
git-author:
Daniel Hellstrom <daniel@…> (02/10/15 07:32:42)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:22)
Message:

AT697PCI: fix build warnings

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

Legend:

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

    re3c9937 r05ce8bd5  
    102102include_HEADERS += ../../sparc/shared/include/grpci2.h
    103103include_HEADERS += ../../sparc/shared/include/pcif.h
     104include_HEADERS += include/at697_pci.h
    104105libbsp_a_SOURCES += ../../sparc/shared/pci/grpci2.c
    105106libbsp_a_SOURCES += ../../sparc/shared/pci/grpci.c
  • c/src/lib/libbsp/sparc/leon2/pci/at697_pci.c

    re3c9937 r05ce8bd5  
    4444#include <drvmgr/leon2_amba_bus.h>
    4545
     46#include <at697_pci.h>
    4647#include <leon.h>
    4748
     
    218219 */
    219220
    220 int at697pci_cfg_r32(pci_dev_t dev, int offset, uint32_t *val)
     221static int at697pci_cfg_r32(pci_dev_t dev, int offset, uint32_t *val)
    221222{
    222223        struct at697pci_regs *regs;
     
    269270}
    270271
    271 int at697pci_cfg_r16(pci_dev_t dev, int ofs, uint16_t *val)
     272static int at697pci_cfg_r16(pci_dev_t dev, int ofs, uint16_t *val)
    272273{
    273274        uint32_t v;
     
    283284}
    284285
    285 int at697pci_cfg_r8(pci_dev_t dev, int ofs, uint8_t *val)
     286static int at697pci_cfg_r8(pci_dev_t dev, int ofs, uint8_t *val)
    286287{
    287288        uint32_t v;
     
    295296}
    296297
    297 int at697pci_cfg_w32(pci_dev_t dev, int offset, uint32_t val)
     298static int at697pci_cfg_w32(pci_dev_t dev, int offset, uint32_t val)
    298299{
    299300        struct at697pci_regs *regs;
     
    341342}
    342343
    343 int at697pci_cfg_w16(pci_dev_t dev, int ofs, uint16_t val)
     344static int at697pci_cfg_w16(pci_dev_t dev, int ofs, uint16_t val)
    344345{
    345346        uint32_t v;
     
    358359}
    359360
    360 int at697pci_cfg_w8(pci_dev_t dev, int ofs, uint8_t val)
     361static int at697pci_cfg_w8(pci_dev_t dev, int ofs, uint8_t val)
    361362{
    362363        uint32_t v;
     
    378379 * 0xff if not assigned.
    379380 */
    380 uint8_t at697pci_bus0_irq_map(pci_dev_t dev, int irq_pin)
     381static uint8_t at697pci_bus0_irq_map(pci_dev_t dev, int irq_pin)
    381382{
    382383        uint8_t sysIrqNr = 0; /* not assigned */
     
    393394}
    394395
    395 int at697pci_translate(uint32_t *address, int type, int dir)
     396static int at697pci_translate(uint32_t *address, int type, int dir)
    396397{
    397398        /* No address translation implmented at this point */
     
    402403
    403404/* AT697 Big-Endian PCI access routines */
    404 struct pci_access_drv at697pci_access_drv = {
     405static struct pci_access_drv at697pci_access_drv = {
    405406        .cfg =
    406407        {
     
    429430 *
    430431 */
    431 int at697pci_hw_init(struct at697pci_priv *priv)
     432static int at697pci_hw_init(struct at697pci_priv *priv)
    432433{
    433434        struct at697pci_regs *regs = priv->regs;
    434435        unsigned short vendor = regs->pciid1 >> 16;
    435         pci_dev_t host = PCI_DEV(0, 0, 0);
    436436
    437437        /* Must match ATMEL or ESA ID */
     
    478478 *  -1            Error during initialization.
    479479 */
    480 int at697pci_init(struct at697pci_priv *priv)
     480static int at697pci_init(struct at697pci_priv *priv)
    481481{
    482482        int pin;
  • c/src/lib/libbsp/sparc/leon2/preinstall.am

    re3c9937 r05ce8bd5  
    134134PREINSTALL_FILES += $(PROJECT_INCLUDE)/pcif.h
    135135
     136$(PROJECT_INCLUDE)/at697_pci.h: include/at697_pci.h $(PROJECT_INCLUDE)/$(dirstamp)
     137        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/at697_pci.h
     138PREINSTALL_FILES += $(PROJECT_INCLUDE)/at697_pci.h
     139
    136140$(PROJECT_INCLUDE)/gr_701.h: ../../sparc/shared/include/gr_701.h $(PROJECT_INCLUDE)/$(dirstamp)
    137141        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gr_701.h
Note: See TracChangeset for help on using the changeset viewer.