5
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 | |
---|
14 | int 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 | |
---|
22 | void ambapp_free_dev(struct ambapp_dev *dev) |
---|
23 | { |
---|
24 | dev->owner = 0; |
---|
25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.