source: rtems/c/src/lib/libbsp/powerpc/qoriq/include/bsp.h @ a052181

4.115
Last change on this file since a052181 was a052181, checked in by Sebastian Huber <sebastian.huber@…>, on 11/14/12 at 08:59:10

score: Add RTEMS_FATAL_SOURCE_EXIT

Include <bsp/default-initial-extension.h> in all BSPs. Call
rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit()
status code as fatal code in every bsp_cleanup(). Move previous
bsp_cleanup() code into bsp_fatal_extension().

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup QorIQ
5 *
6 * @brief BSP API.
7 */
8
9/*
10 * Copyright (c) 2010 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.com/license/LICENSE.
21 */
22
23#ifndef LIBBSP_POWERPC_QORIQ_BSP_H
24#define LIBBSP_POWERPC_QORIQ_BSP_H
25
26#include <bspopts.h>
27
28#ifndef ASM
29
30#include <rtems.h>
31
32#include <bsp/default-initial-extension.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif /* __cplusplus */
37
38#define BSP_FEATURE_IRQ_EXTENSION
39
40extern unsigned BSP_bus_frequency;
41
42struct rtems_bsdnet_ifconfig;
43
44int BSP_tsec_attach(
45  struct rtems_bsdnet_ifconfig *config,
46  int attaching
47);
48
49int qoriq_if_intercom_attach_detach(
50  struct rtems_bsdnet_ifconfig *config,
51  int attaching
52);
53
54#define RTEMS_BSP_NETWORK_DRIVER_ATTACH BSP_tsec_attach
55#define RTEMS_BSP_NETWORK_DRIVER_ATTACH4 qoriq_if_intercom_attach_detach
56
57#define RTEMS_BSP_NETWORK_DRIVER_NAME "tsec1"
58#define RTEMS_BSP_NETWORK_DRIVER_NAME2 "tsec2"
59#define RTEMS_BSP_NETWORK_DRIVER_NAME3 "tsec3"
60#define RTEMS_BSP_NETWORK_DRIVER_NAME4 "intercom1"
61
62#ifdef __cplusplus
63}
64#endif /* __cplusplus */
65
66#endif /* ASM */
67
68#endif /* LIBBSP_POWERPC_QORIQ_BSP_H */
Note: See TracBrowser for help on using the repository browser.