OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [bfin/] [include/] [cplbtab.h] - Blame information for rev 231

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/*
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
 * Copyright (C) 2008 Analog Devices, Inc.
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
 
38
typedef struct {
39
  unsigned long addr;
40
  unsigned long flags;
41
} cplb_entry;
42
 
43
extern cplb_entry dcplbs_table[];
44
extern cplb_entry icplbs_table[];
45
extern int __cplb_ctrl;
46
 
47
#ifdef __cplusplus
48
 extern "C" {
49
#endif
50
 
51
void cplb_init(int _enable_cpls_caches);
52
int cplb_mgr(int _is_data_miss, int _enable_cache);
53
void cplb_hdr(void);
54
void cache_invalidate(int _caches);
55
void icache_invalidate(void);
56
void dcache_invalidate(int _caches);
57
void dcache_invalidate_both(void);
58
void flush_data_cache(void);
59
void flush_data_buffer(void *_start, void *_end, int _invalidate);
60
void disable_data_cache(void);
61
void 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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.