source: rtems/bsps/shared/grlib/amba/ambapp_alloc.c @ 7eb606d3

5
Last change on this file since 7eb606d3 was 7eb606d3, checked in by Sebastian Huber <sebastian.huber@…>, on 12/22/18 at 17:31:04

grlib: Move source files

Update #3678.

  • Property mode set to 100644
File size: 471 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 <grlib/ambapp.h>
13
14int ambapp_alloc_dev(struct ambapp_dev *dev, void *owner)
15{
16  if (dev->owner)
17    return -1;
18  dev->owner = owner;
19  return 0;
20}
21
22void ambapp_free_dev(struct ambapp_dev *dev)
23{
24  dev->owner = 0;
25}
Note: See TracBrowser for help on using the repository browser.