source: trunk/libs/newlib/src/libgloss/bfin/include/cplbtab.h @ 546

Last change on this file since 546 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.9 KB
Line 
1/*
2 * The authors hereby grant permission to use, copy, modify, distribute,
3 * and license this software and its documentation for any purpose, provided
4 * that existing copyright notices are retained in all copies and that this
5 * notice is included verbatim in any distributions. No written agreement,
6 * license, or royalty fee is required for any of the authorized uses.
7 * Modifications to this software may be copyrighted by their authors
8 * and need not follow the licensing terms described here, provided that
9 * the new terms are clearly indicated on the first page of each file where
10 * they apply.
11 */
12
13#pragma once
14#ifndef __NO_BUILTIN
15#pragma system_header /* cplbtab.h */
16#endif
17/************************************************************************
18 *
19 * cplbtab.h
20 *
21 * (c) Copyright 2002-2007 Analog Devices, Inc.  All rights reserved.
22 *
23 ************************************************************************/
24
25/* Define structures for the CPLB tables. */
26
27#ifndef _CPLBTAB_H
28#define _CPLBTAB_H
29
30#include <cplb.h>
31
32#ifdef _MISRA_RULES
33#pragma diag(push)
34#pragma diag(suppress:misra_rule_6_3)
35#pragma diag(suppress:misra_rule_8_12)
36#endif /* _MISRA_RULES */
37
38typedef struct {
39  unsigned long addr;
40  unsigned long flags;
41} cplb_entry;
42
43extern cplb_entry dcplbs_table[];
44extern cplb_entry icplbs_table[];
45extern int __cplb_ctrl;
46
47#ifdef __cplusplus
48 extern "C" {
49#endif
50
51void cplb_init(int _enable_cpls_caches);
52int cplb_mgr(int _is_data_miss, int _enable_cache);
53void cplb_hdr(void);
54void cache_invalidate(int _caches);
55void icache_invalidate(void);
56void dcache_invalidate(int _caches);
57void dcache_invalidate_both(void);
58void flush_data_cache(void);
59void flush_data_buffer(void *_start, void *_end, int _invalidate);
60void disable_data_cache(void);
61void enable_data_cache(int _cplb_ctrl);
62
63#ifdef __cplusplus
64 }
65#endif
66
67#ifdef _MISRA_RULES
68#pragma diag(pop)
69#endif /* _MISRA_RULES */
70
71#endif /* _CPLBTAB_H */
72
Note: See TracBrowser for help on using the repository browser.