bsps/sparc: Move shared files to bsps

This patch is a part of the BSP source reorganization.

Update #3285.
This commit is contained in:
Sebastian Huber
2018-04-20 13:33:24 +02:00
parent c49896f1c0
commit d60d303cf1
74 changed files with 131 additions and 131 deletions

View File

@@ -0,0 +1,25 @@
/*
* AMBA Plug & Play routines
*
* COPYRIGHT (c) 2011
* Aeroflex Gaisler
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#include <ambapp.h>
/* Get bus depth a device is located at */
int ambapp_depth(struct ambapp_dev *dev)
{
int depth = 0;
do {
dev = ambapp_find_parent(dev);
depth++;
} while (dev);
return depth - 1;
}