~ubuntu-branches/ubuntu/lucid/skyeye/lucid

« back to all changes in this revision

Viewing changes to arch/arm/common/mmu/sa_mmu.h

  • Committer: Bazaar Package Importer
  • Author(s): Yu Guanghui
  • Date: 2006-08-09 16:30:44 UTC
  • Revision ID: james.westby@ubuntu.com-20060809163044-6efqjm0t2stau23w
Tags: upstream-1.2.0rc8
ImportĀ upstreamĀ versionĀ 1.2.0rc8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    sa_mmu.h - StrongARM Memory Management Unit emulation.
 
3
    ARMulator extensions for SkyEye.
 
4
        <lyhost@263.net>
 
5
 
 
6
    This program is free software; you can redistribute it and/or modify
 
7
    it under the terms of the GNU General Public License as published by
 
8
    the Free Software Foundation; either version 2 of the License, or
 
9
    (at your option) any later version.
 
10
 
 
11
    This program is distributed in the hope that it will be useful,
 
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
    GNU General Public License for more details.
 
15
 
 
16
    You should have received a copy of the GNU General Public License
 
17
    along with this program; if not, write to the Free Software
 
18
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
19
*/
 
20
 
 
21
#ifndef _SA_MMU_H_
 
22
#define _SA_MMU_H_
 
23
 
 
24
typedef struct sa_mmu_s
 
25
{
 
26
        tlb_t i_tlb;
 
27
        cache_t i_cache;
 
28
 
 
29
        tlb_t d_tlb;
 
30
        cache_t main_d_cache;
 
31
        cache_t mini_d_cache;
 
32
        rb_t rb_t;
 
33
        wb_t wb_t;
 
34
} sa_mmu_t;
 
35
 
 
36
#define I_TLB() (&state->mmu.u.sa_mmu.i_tlb)
 
37
#define I_CACHE() (&state->mmu.u.sa_mmu.i_cache)
 
38
 
 
39
#define D_TLB() (&state->mmu.u.sa_mmu.d_tlb)
 
40
#define MAIN_D_CACHE() (&state->mmu.u.sa_mmu.main_d_cache)
 
41
#define MINI_D_CACHE() (&state->mmu.u.sa_mmu.mini_d_cache)
 
42
#define WB() (&state->mmu.u.sa_mmu.wb_t)
 
43
#define RB() (&state->mmu.u.sa_mmu.rb_t)
 
44
 
 
45
extern mmu_ops_t sa_mmu_ops;
 
46
#endif /*_SA_MMU_H_*/