119370Spst/* Declarations for caching.  Typically used by remote back ends for
219370Spst   caching remote memory.
319370Spst
498944Sobrien   Copyright 1992, 1993, 1995, 1999, 2000, 2001
598944Sobrien   Free Software Foundation, Inc.
619370Spst
798944Sobrien   This file is part of GDB.
819370Spst
998944Sobrien   This program is free software; you can redistribute it and/or modify
1098944Sobrien   it under the terms of the GNU General Public License as published by
1198944Sobrien   the Free Software Foundation; either version 2 of the License, or
1298944Sobrien   (at your option) any later version.
1319370Spst
1498944Sobrien   This program is distributed in the hope that it will be useful,
1598944Sobrien   but WITHOUT ANY WARRANTY; without even the implied warranty of
1698944Sobrien   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1798944Sobrien   GNU General Public License for more details.
1819370Spst
1998944Sobrien   You should have received a copy of the GNU General Public License
2098944Sobrien   along with this program; if not, write to the Free Software
2198944Sobrien   Foundation, Inc., 59 Temple Place - Suite 330,
2298944Sobrien   Boston, MA 02111-1307, USA.  */
2319370Spst
2419370Spst#ifndef DCACHE_H
2519370Spst#define DCACHE_H
2619370Spst
2719370Spsttypedef struct dcache_struct DCACHE;
2819370Spst
2998944Sobrien/* Invalidate DCACHE. */
3098944Sobrienvoid dcache_invalidate (DCACHE *dcache);
3119370Spst
3219370Spst/* Initialize DCACHE. */
3398944SobrienDCACHE *dcache_init (void);
3419370Spst
3598944Sobrien/* Free a DCACHE */
3698944Sobrienvoid dcache_free (DCACHE *);
3719370Spst
3819370Spst/* Simple to call from <remote>_xfer_memory */
3919370Spst
4098944Sobrienint dcache_xfer_memory (DCACHE *cache, CORE_ADDR mem, char *my, int len,
4198944Sobrien			int should_write);
4219370Spst
4319370Spst#endif /* DCACHE_H */
44