Files
rtems/bsps/sparc/shared/amba/ambapp_alloc.c
Sebastian Huber d60d303cf1 bsps/sparc: Move shared files to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-20 14:10:03 +02:00

26 lines
465 B
C

/*
* 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>
int ambapp_alloc_dev(struct ambapp_dev *dev, void *owner)
{
if (dev->owner)
return -1;
dev->owner = owner;
return 0;
}
void ambapp_free_dev(struct ambapp_dev *dev)
{
dev->owner = 0;
}