forked from Imagelibrary/rtems
bsps/sparc: Make local functions for amba plug&play static.
This commit is contained in:
committed by
Joel Sherrill
parent
52f6502876
commit
67a4842b59
@@ -21,7 +21,7 @@
|
|||||||
#define AMBA_APB_SLAVES 16
|
#define AMBA_APB_SLAVES 16
|
||||||
|
|
||||||
/* Allocate one AMBA device */
|
/* Allocate one AMBA device */
|
||||||
struct ambapp_dev *ambapp_alloc_dev_struct(int dev_type)
|
static struct ambapp_dev *ambapp_alloc_dev_struct(int dev_type)
|
||||||
{
|
{
|
||||||
int size = sizeof(struct ambapp_dev);
|
int size = sizeof(struct ambapp_dev);
|
||||||
struct ambapp_dev *dev;
|
struct ambapp_dev *dev;
|
||||||
@@ -38,7 +38,7 @@ struct ambapp_dev *ambapp_alloc_dev_struct(int dev_type)
|
|||||||
return dev;
|
return dev;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int
|
static unsigned int
|
||||||
ambapp_addr_from (struct ambapp_mmap *mmaps, unsigned int address)
|
ambapp_addr_from (struct ambapp_mmap *mmaps, unsigned int address)
|
||||||
{
|
{
|
||||||
/* no translation? */
|
/* no translation? */
|
||||||
@@ -55,7 +55,7 @@ ambapp_addr_from (struct ambapp_mmap *mmaps, unsigned int address)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ambapp_ahb_dev_init(
|
static void ambapp_ahb_dev_init(
|
||||||
unsigned int ioarea,
|
unsigned int ioarea,
|
||||||
struct ambapp_mmap *mmaps,
|
struct ambapp_mmap *mmaps,
|
||||||
struct ambapp_pnp_ahb *ahb,
|
struct ambapp_pnp_ahb *ahb,
|
||||||
@@ -102,7 +102,7 @@ void ambapp_ahb_dev_init(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ambapp_apb_dev_init(
|
static void ambapp_apb_dev_init(
|
||||||
unsigned int base,
|
unsigned int base,
|
||||||
struct ambapp_mmap *mmaps,
|
struct ambapp_mmap *mmaps,
|
||||||
struct ambapp_pnp_apb *apb,
|
struct ambapp_pnp_apb *apb,
|
||||||
@@ -123,7 +123,7 @@ void ambapp_apb_dev_init(
|
|||||||
apb_info->mask = ambapp_pnp_apb_mask(apb->iobar);
|
apb_info->mask = ambapp_pnp_apb_mask(apb->iobar);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ambapp_add_ahbbus(
|
static int ambapp_add_ahbbus(
|
||||||
struct ambapp_bus *abus,
|
struct ambapp_bus *abus,
|
||||||
unsigned int ioarea
|
unsigned int ioarea
|
||||||
)
|
)
|
||||||
@@ -298,7 +298,7 @@ int ambapp_scan(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Match search options againt device */
|
/* Match search options againt device */
|
||||||
int ambapp_dev_match_options(struct ambapp_dev *dev, unsigned int options, int vendor, int device)
|
static int ambapp_dev_match_options(struct ambapp_dev *dev, unsigned int options, int vendor, int device)
|
||||||
{
|
{
|
||||||
if ((((options & (OPTIONS_ALL_DEVS)) == OPTIONS_ALL_DEVS) || /* TYPE */
|
if ((((options & (OPTIONS_ALL_DEVS)) == OPTIONS_ALL_DEVS) || /* TYPE */
|
||||||
((options & OPTIONS_AHB_MSTS) && (dev->dev_type == DEV_AHB_MST)) ||
|
((options & OPTIONS_AHB_MSTS) && (dev->dev_type == DEV_AHB_MST)) ||
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
* If a unsupported bridge is found the invalid frequncy of 0Hz is
|
* If a unsupported bridge is found the invalid frequncy of 0Hz is
|
||||||
* returned.
|
* returned.
|
||||||
*/
|
*/
|
||||||
unsigned int ambapp_freq_calc(
|
static unsigned int ambapp_freq_calc(
|
||||||
struct ambapp_bus *abus,
|
struct ambapp_bus *abus,
|
||||||
int ahbidx,
|
int ahbidx,
|
||||||
unsigned int freq_hz,
|
unsigned int freq_hz,
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
* http://www.rtems.org/license/LICENSE.
|
* http://www.rtems.org/license/LICENSE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <ambapp.h>
|
||||||
#include <ambapp_ids.h>
|
#include <ambapp_ids.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ struct ambapp_dev_find_match_arg {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* AMBA PP find routines */
|
/* AMBA PP find routines */
|
||||||
int ambapp_dev_find_match(struct ambapp_dev *dev, int index, void *arg)
|
static int ambapp_dev_find_match(struct ambapp_dev *dev, int index, void *arg)
|
||||||
{
|
{
|
||||||
struct ambapp_dev_find_match_arg *p = arg;
|
struct ambapp_dev_find_match_arg *p = arg;
|
||||||
|
|
||||||
|
|||||||
@@ -12,16 +12,13 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ambapp.h>
|
#include <ambapp.h>
|
||||||
|
|
||||||
extern char *ambapp_device_id2str(int vendor, int id);
|
|
||||||
extern char *ambapp_vendor_id2str(int vendor);
|
|
||||||
|
|
||||||
struct ambapp_dev_print_arg {
|
struct ambapp_dev_print_arg {
|
||||||
int show_depth;
|
int show_depth;
|
||||||
};
|
};
|
||||||
|
|
||||||
static char *unknown = "unknown";
|
static char *unknown = "unknown";
|
||||||
|
|
||||||
int ambapp_dev_print(struct ambapp_dev *dev, int index, void *arg)
|
static int ambapp_dev_print(struct ambapp_dev *dev, int index, void *arg)
|
||||||
{
|
{
|
||||||
char *dev_str, *ven_str, *type_str;
|
char *dev_str, *ven_str, *type_str;
|
||||||
struct ambapp_dev_print_arg *p = arg;
|
struct ambapp_dev_print_arg *p = arg;
|
||||||
|
|||||||
Reference in New Issue
Block a user