2011-01-07 Michael Snyder <msnyder@vmware.com>
[deliverable/binutils-gdb.git] / gdb / dcache.h
CommitLineData
c906108c
SS
1/* Declarations for caching. Typically used by remote back ends for
2 caching remote memory.
3
7b6bb8da
JB
4 Copyright (C) 1992, 1993, 1995, 1999, 2000, 2001, 2007, 2008, 2009, 2010,
5 2011 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
25typedef struct dcache_struct DCACHE;
26
0963b4bd 27/* Invalidate DCACHE. */
4930751a 28void dcache_invalidate (DCACHE *dcache);
c906108c 29
0963b4bd 30/* Initialize DCACHE. */
4930751a 31DCACHE *dcache_init (void);
c906108c 32
0963b4bd 33/* Free a DCACHE. */
e99586d5
C
34void dcache_free (DCACHE *);
35
0963b4bd 36/* Simple to call from <remote>_xfer_memory. */
c906108c 37
25f122dc
DE
38int dcache_xfer_memory (struct target_ops *ops, DCACHE *cache, CORE_ADDR mem,
39 gdb_byte *my, int len, int should_write);
c906108c 40
4e5d721f
DE
41void dcache_update (DCACHE *dcache, CORE_ADDR memaddr, gdb_byte *myaddr,
42 int len);
43
c906108c 44#endif /* DCACHE_H */
This page took 0.727721 seconds and 4 git commands to generate.