Changeset 9b90342 in rtems


Ignore:
Timestamp:
Feb 11, 2015, 11:23:45 AM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
8c6c53d
Parents:
b6292a0b
git-author:
Daniel Hellstrom <daniel@…> (02/11/15 11:23:45)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:24)
Message:

GRSPW router: fix build warnings

Location:
c/src/lib/libbsp/sparc/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/include/grspw_router.h

    rb6292a0b r9b90342  
    102102#define GRSPWR_IOCTL_TC_GET     0x0c    /* OUT:    unsigned int */
    103103
     104/* Register GRSPW Router driver to Driver Manager */
     105void router_register_drv (void);
     106
    104107#endif
  • c/src/lib/libbsp/sparc/shared/spw/grspw_router.c

    rb6292a0b r9b90342  
    8989    router_control }
    9090
    91 void router_hwinfo(struct router_priv *priv, struct router_hw_info *hwinfo);
     91static void router_hwinfo(
     92        struct router_priv *priv,
     93        struct router_hw_info *hwinfo);
    9294
    9395static rtems_driver_address_table router_driver = ROUTER_DRIVER_TABLE_ENTRY;
     
    278280}
    279281
    280 void router_hwinfo(struct router_priv *priv, struct router_hw_info *hwinfo)
     282static void router_hwinfo(
     283        struct router_priv *priv,
     284        struct router_hw_info *hwinfo)
    281285{
    282286        unsigned int tmp;
     
    296300}
    297301
    298 int router_config_set(struct router_priv *priv, struct router_config *cfg)
     302static int router_config_set(
     303        struct router_priv *priv,
     304        struct router_config *cfg)
    299305{
    300306        int i;
     
    334340}
    335341
    336 int router_config_read(struct router_priv *priv, struct router_config *cfg)
     342static int router_config_read(
     343        struct router_priv *priv,
     344        struct router_config *cfg)
    337345{
    338346        int i;
     
    348356}
    349357
    350 int router_routes_set(struct router_priv *priv, struct router_routes *routes)
     358static int router_routes_set(
     359        struct router_priv *priv,
     360        struct router_routes *routes)
    351361{
    352362        int i;
     
    356366}
    357367
    358 int router_routes_read(struct router_priv *priv, struct router_routes *routes)
     368static int router_routes_read(
     369        struct router_priv *priv,
     370        struct router_routes *routes)
    359371{
    360372        int i;
     
    364376}
    365377
    366 int router_ps_set(struct router_priv *priv, struct router_ps *ps)
     378static int router_ps_set(struct router_priv *priv, struct router_ps *ps)
    367379{
    368380        int i;
     
    373385}
    374386
    375 int router_ps_read(struct router_priv *priv, struct router_ps *ps)
     387static int router_ps_read(struct router_priv *priv, struct router_ps *ps)
    376388{
    377389        int i;
     
    382394}
    383395
    384 int router_we_set(struct router_priv *priv, int we)
     396static int router_we_set(struct router_priv *priv, int we)
    385397{
    386398        REG_WRITE(&priv->regs->cfgwe, we & 0x1);
     
    388400}
    389401
    390 int router_port_ctrl(struct router_priv *priv, struct router_port *port)
     402static int router_port_ctrl(struct router_priv *priv, struct router_port *port)
    391403{
    392404        unsigned int ctrl, sts;
     
    416428}
    417429
    418 int router_cfgsts_set(struct router_priv *priv, unsigned int cfgsts)
     430static int router_cfgsts_set(struct router_priv *priv, unsigned int cfgsts)
    419431{
    420432        REG_WRITE(&priv->regs->cfgsts, cfgsts);
     
    422434}
    423435
    424 int router_cfgsts_read(struct router_priv *priv, unsigned int *cfgsts)
     436static int router_cfgsts_read(struct router_priv *priv, unsigned int *cfgsts)
    425437{
    426438        *cfgsts = REG_READ(&priv->regs->cfgsts);
     
    428440}
    429441
    430 int router_tc_read(struct router_priv *priv, unsigned int *tc)
     442static int router_tc_read(struct router_priv *priv, unsigned int *tc)
    431443{
    432444        *tc = REG_READ(&priv->regs->timecode);
Note: See TracChangeset for help on using the changeset viewer.