annotate packages/hal/powerpc/csb281/current/include/plf_cache.h @ 472:3bad6dc606d2

Add new board port for Cogent CSB281
author gthomas
date Tue, 24 Dec 2002 16:00:44 +0000
parents
children 74dbf4c3f2e1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
472
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
1 #ifndef CYGONCE_PLF_CACHE_H
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
2 #define CYGONCE_PLF_CACHE_H
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
3
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
4 //=============================================================================
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
5 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
6 // plf_cache.h
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
7 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
8 // Platform HAL cache details
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
9 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
10 //=============================================================================
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
11 //####ECOSGPLCOPYRIGHTBEGIN####
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
12 // -------------------------------------------
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
13 // This file is part of eCos, the Embedded Configurable Operating System.
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
14 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
15 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
16 // eCos is free software; you can redistribute it and/or modify it under
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
17 // the terms of the GNU General Public License as published by the Free
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
18 // Software Foundation; either version 2 or (at your option) any later version.
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
19 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
20 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
21 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
22 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
23 // for more details.
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
24 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
25 // You should have received a copy of the GNU General Public License along
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
26 // with eCos; if not, write to the Free Software Foundation, Inc.,
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
27 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
28 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
29 // As a special exception, if other files instantiate templates or use macros
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
30 // or inline functions from this file, or you compile this file and link it
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
31 // with other works to produce a work based on this file, this file does not
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
32 // by itself cause the resulting work to be covered by the GNU General Public
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
33 // License. However the source code for this file must still be made available
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
34 // in accordance with section (3) of the GNU General Public License.
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
35 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
36 // This exception does not invalidate any other reasons why a work based on
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
37 // this file might be covered by the GNU General Public License.
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
38 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
39 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
40 // at http://sources.redhat.com/ecos/ecos-license/
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
41 // -------------------------------------------
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
42 //####ECOSGPLCOPYRIGHTEND####
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
43 //=============================================================================
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
44 //#####DESCRIPTIONBEGIN####
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
45 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
46 // Author(s): jskov
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
47 // Contributors:jskov
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
48 // Date: 2000-01-26
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
49 // Purpose: Platform cache control API
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
50 // Description: The macros defined here provide the platform specific
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
51 // cache control operations / behavior.
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
52 // Usage: Is included via the architecture cache header:
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
53 // #include <cyg/hal/hal_cache.h>
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
54 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
55 //####DESCRIPTIONEND####
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
56 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
57 //=============================================================================
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
58
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
59 //---------------------------------------------------------------------------
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
60 // Initial cache enabling - controlled by common CDL
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
61
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
62 //-----------------------------------------------------------------------------
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
63 // FIXME: This definition forces the IO flash driver to use a
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
64 // known-good procedure for fiddling flash before calling flash device
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
65 // driver functions. The procedure breaks on other platform/driver
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
66 // combinations though so is depricated. Hence this definition.
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
67 //
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
68 // If you work on this target, please try to remove this definition
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
69 // and verify that the flash driver still works (both from RAM and
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
70 // flash). If it does, remove the definition and this comment for good
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
71 // [and the old macro definition if this happens to be the last client
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
72 // of that code].
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
73 #define HAL_FLASH_CACHES_OLD_MACROS
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
74
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
75 //-----------------------------------------------------------------------------
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
76 #endif // ifndef CYGONCE_PLF_CACHE_H
3bad6dc606d2 Add new board port for Cogent CSB281
gthomas
parents:
diff changeset
77 // End of plf_cache.h