RTEMS
6.1-rc4
Loading...
Searching...
No Matches
bsps
powerpc
tqm8xx
include
bsp
tqm.h
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
3
/*
4
* RTEMS BSP support for TQ modules
5
*
6
* This file contains definitions to interact with TQC's
7
* processor modules.
8
*/
9
10
/*
11
* Copyright (c) 2007 embedded brains GmbH & Co. KG
12
*
13
* Redistribution and use in source and binary forms, with or without
14
* modification, are permitted provided that the following conditions
15
* are met:
16
* 1. Redistributions of source code must retain the above copyright
17
* notice, this list of conditions and the following disclaimer.
18
* 2. Redistributions in binary form must reproduce the above copyright
19
* notice, this list of conditions and the following disclaimer in the
20
* documentation and/or other materials provided with the distribution.
21
*
22
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
* POSSIBILITY OF SUCH DAMAGE.
33
*/
34
35
#ifndef __TQM_H__
36
#define __TQM_H__
37
#include <
rtems.h
>
38
39
typedef
struct
{
40
uint32_t sdram_size;
/* existing SDRAM size */
41
uint32_t flash_base;
/* start address flash */
42
uint32_t flash_size;
/* existing Flash size */
43
uint32_t flash_offset;
44
uint32_t sram_base;
/* start address sram */
45
uint32_t sram_size;
/* existing sram size */
46
uint32_t immr_base;
/* start address internal memory map */
47
uint32_t reboot;
/* reboot flag */
48
uint8_t ip_addr[4];
/* IP address */
49
uint8_t eth_addr[6];
/* ethernet (MAC) address */
50
uint8_t gap_42[2];
/* gap for alignment */
51
void (*put_char)(
int
c);
/* function to output characters */
52
}
tqm_bd_info_t
;
53
54
#define TQM_BD_INFO_ADDR 0x3400
55
#define TQM_BD_INFO (*(tqm_bd_info_t *)TQM_BD_INFO_ADDR)
56
57
#define TQM_CONF_INFO_BLOCK_ADDR 0x4001fe00
58
59
#define IMAP_ADDR ((unsigned int)0xfa200000)
60
#define IMAP_SIZE ((unsigned int)(64 * 1024))
61
62
#endif
/* __TQM_H__ */
rtems.h
This header file defines the RTEMS Classic API.
tqm_bd_info_t
Definition:
tqm.h:39
Generated by
1.9.6