Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* Declarations for caching. Typically used by remote back ends for |
2 | caching remote memory. | |
3 | ||
9b254dd1 | 4 | Copyright (C) 1992, 1993, 1995, 1999, 2000, 2001, 2007, 2008 |
b6ba6518 | 5 | Free Software Foundation, Inc. |
c906108c | 6 | |
c5aa993b | 7 | This file is part of GDB. |
c906108c | 8 | |
c5aa993b JM |
9 | This program is free software; you can redistribute it and/or modify |
10 | it under the terms of the GNU General Public License as published by | |
a9762ec7 | 11 | the Free Software Foundation; either version 3 of the License, or |
c5aa993b | 12 | (at your option) any later version. |
c906108c | 13 | |
c5aa993b JM |
14 | This program is distributed in the hope that it will be useful, |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
c906108c | 18 | |
c5aa993b | 19 | You should have received a copy of the GNU General Public License |
a9762ec7 | 20 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
c906108c SS |
21 | |
22 | #ifndef DCACHE_H | |
23 | #define DCACHE_H | |
24 | ||
c906108c SS |
25 | typedef struct dcache_struct DCACHE; |
26 | ||
e99586d5 | 27 | /* Invalidate DCACHE. */ |
4930751a | 28 | void dcache_invalidate (DCACHE *dcache); |
c906108c SS |
29 | |
30 | /* Initialize DCACHE. */ | |
4930751a | 31 | DCACHE *dcache_init (void); |
c906108c | 32 | |
e99586d5 C |
33 | /* Free a DCACHE */ |
34 | void dcache_free (DCACHE *); | |
35 | ||
c906108c SS |
36 | /* Simple to call from <remote>_xfer_memory */ |
37 | ||
1b0ba102 AC |
38 | int dcache_xfer_memory (DCACHE *cache, CORE_ADDR mem, gdb_byte *my, |
39 | int len, int should_write); | |
c906108c | 40 | |
c906108c | 41 | #endif /* DCACHE_H */ |