summaryrefslogtreecommitdiffstats
path: root/tools/cpu/nios2/devices.h
blob: 9355b253ad45e4f57d71913671608984390d8c8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 *  Copyright (c) 2006 Kolja Waschk rtemsdev/ixo.de
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.com/license/LICENSE.
 */

#ifndef __NIOS2GEN_DEVICES_H
#define __NIOS2GEN_DEVICES_H 1

#include "ptf.h"
#include "bridges.h"

typedef struct dev_descr
{
  int slaves;
  char *cfgname;
  struct ptf *ptf;
  struct dev_descr *next;
}
device_desc;

device_desc *find_devices(
  struct ptf *ptf,
  struct ptf *cfg,
  struct ptf *cpu,
  bus_bridge_pair *bridges);

#endif