source: rtems/c/src/lib/libbsp/sparc/shared/amba/ambapp_count.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 547 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 <ambapp.h>
13
14/* Get number of devices matching search options */
15int ambapp_dev_count(struct ambapp_bus *abus, unsigned int options,
16      int vendor, int device)
17{
18  int count = 10000;
19
20  ambapp_for_each(abus, options, vendor, device, ambapp_find_by_idx, &count);
21
22  return 10000 - count;
23}
Note: See TracBrowser for help on using the repository browser.