source: rtems/bsps/sparc/shared/amba/ambapp_parent.c @ 95c1921

5
Last change on this file since 95c1921 was d60d303c, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 11:33:24

bsps/sparc: Move shared files to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 476 bytes
Line 
1/*
2 *  AMBA Plug & Play routines
3 *
4 *  COPYRIGHT (c) 2011
5 *  Aeroflex Gaisler
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.org/license/LICENSE.
10 */
11
12#include <stdlib.h>
13#include <ambapp.h>
14
15struct ambapp_dev *ambapp_find_parent(struct ambapp_dev *dev)
16{
17  while (dev->prev) {
18    if (dev == dev->prev->children)
19      return dev->prev;
20    dev = dev->prev;
21  }
22  return NULL;
23}
Note: See TracBrowser for help on using the repository browser.