RTEMS 7.0-rc1
Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 *
13 * Copyright (c) 2015 University of York.
14 * Hesham Almatary <hesham@alumni.york.ac.uk>
15 *
16 * COPYRIGHT (c) 1989-1999.
17 * On-Line Applications Research Corporation (OAR).
18 *
19 * Redistribution and use in source and binary forms, with or without
20 * modification, are permitted provided that the following conditions
21 * are met:
22 * 1. Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer.
24 * 2. Redistributions in binary form must reproduce the above copyright
25 * notice, this list of conditions and the following disclaimer in the
26 * documentation and/or other materials provided with the distribution.
27 *
28 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
29 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
32 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * SUCH DAMAGE.
39 */
40
41#ifndef LIBBSP_RISCV_GRISCV_H
42#define LIBBSP_RISCV_GRISCV_H
43
55#include <rtems.h>
56#include <rtems/clockdrv.h>
57#include <rtems/console.h>
58#include <rtems/irq-extension.h>
59
60#include <bspopts.h>
62
63#include <rtems/devnull.h>
64
65#ifdef __cplusplus
66extern "C" {
67#endif
68
69#define BSP_FEATURE_IRQ_EXTENSION
70
71/* Maximum supported APBUARTs by BSP */
72#define BSP_NUMBER_OF_TERMIOS_PORTS 8
73
74/*
75 * Network driver configuration for greth
76 */
77struct rtems_bsdnet_ifconfig;
78extern int rtems_griscv_greth_driver_attach(
79 struct rtems_bsdnet_ifconfig *config,
80 int attach
81);
82
83#define RTEMS_BSP_NETWORK_DRIVER_NAME "gr_eth1"
84#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_griscv_greth_driver_attach
85#define GRETH_SUPPORTED
86#define CPU_U32_FIX
87
88#ifdef __cplusplus
89}
90#endif
91
94#endif /* LIBBSP_RISCV_GRISCV_H */
This header file defines the Clock Driver API.
Console Driver for all Boards.
This header file provides the default definition of BSP_INITIAL_EXTENSION.
RTEMS /dev/null Device Driver.
This header file is provided for backward compatiblility.
This header file defines the RTEMS Classic API.