亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hal_cache.h

?? 基于ARM S3C44B0X的ECOS 硬件移植代碼
?? H
字號:
#ifndef CYGONCE_HAL_CACHE_H
#define CYGONCE_HAL_CACHE_H

//=============================================================================
//
//      hal_cache.h
//
//      HAL cache control API
//
//=============================================================================
//####ECOSGPLCOPYRIGHTBEGIN####
// -------------------------------------------
// This file is part of eCos, the Embedded Configurable Operating System.
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
//
// eCos is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 or (at your option) any later version.
//
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// for more details.
//
// You should have received a copy of the GNU General Public License along
// with eCos; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
//
// As a special exception, if other files instantiate templates or use macros
// or inline functions from this file, or you compile this file and link it
// with other works to produce a work based on this file, this file does not
// by itself cause the resulting work to be covered by the GNU General Public
// License. However the source code for this file must still be made available
// in accordance with section (3) of the GNU General Public License.
//
// This exception does not invalidate any other reasons why a work based on
// this file might be covered by the GNU General Public License.
//
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
// at http://sources.redhat.com/ecos/ecos-license/
// -------------------------------------------
//####ECOSGPLCOPYRIGHTEND####
//=============================================================================
//#####DESCRIPTIONBEGIN####
//
// Author(s):   nickg, gthomas
// Contributors:        nickg, gthomas
// Date:        1998-09-28
// Purpose:     Cache control API
// Description: The macros defined here provide the HAL APIs for handling
//              cache control operations.
// Usage:
//              #include <cyg/hal/hal_cache.h>
//              ...
//              
//
//####DESCRIPTIONEND####
//
//=============================================================================

#include <cyg/infra/cyg_type.h>
#include <cyg/hal/hal_io.h>
#include <cyg/hal/plf_io.h>

//-----------------------------------------------------------------------------
// Cache dimensions - one unified cache

#define HAL_CACHE_UNIFIED

#define HAL_UCACHE_SIZE                 0x2000   // Size of cache in bytes
#define HAL_UCACHE_LINE_SIZE            16       // Size of a cache line
#define HAL_UCACHE_WAYS                 4        // Associativity of the cache

#define HAL_UCACHE_SETS (HAL_UCACHE_SIZE/(HAL_UCACHE_LINE_SIZE*HAL_UCACHE_WAYS))

//-----------------------------------------------------------------------------
// Global control of cache

// Enable the cache
#define HAL_UCACHE_ENABLE()                     \
    CYG_MACRO_START                             \
    cyg_uint32 syscfg;                          \
    HAL_READ_UINT32(study_SYSCFG, syscfg);        \
    syscfg |= study_SYSCFG_CM_0R_8C;              \
    HAL_WRITE_UINT32(study_SYSCFG, syscfg);       \
    CYG_MACRO_END

// Disable the cache
#define HAL_UCACHE_DISABLE()                    \
    CYG_MACRO_START                             \
    cyg_uint32 syscfg;                          \
    HAL_READ_UINT32(study_SYSCFG, syscfg);        \
    syscfg &= ~study_SYSCFG_CM_MASK;              \
    HAL_WRITE_UINT32(study_SYSCFG, syscfg);       \
    CYG_MACRO_END

// Invalidate the entire cache
#define HAL_UCACHE_INVALIDATE_ALL()                             \
    CYG_MACRO_START                                             \
    register cyg_uint32* tag = (cyg_uint32*)study_CACHE_TAG_ADDR; \
    register int i;                                             \
    for (i = 0; i < HAL_UCACHE_SETS/4; i++) {                   \
        *tag++ = 0;                                             \
        *tag++ = 0;                                             \
        *tag++ = 0;                                             \
        *tag++ = 0;                                             \
    }                                                           \
    CYG_MACRO_END

// Synchronize the contents of the cache with memory.
// No action necessary. Cache is write-through.
#define HAL_UCACHE_SYNC()

// Query the state of the cache
#define HAL_UCACHE_IS_ENABLED(_state_)                  \
    CYG_MACRO_START                                     \
    cyg_uint32 syscfg;                                  \
    HAL_READ_UINT32(study_SYSCFG, syscfg);                \
    (_state_) = (syscfg & study_SYSCFG_CM_MASK) ? 1 : 0;  \
    CYG_MACRO_END

// Purge contents of cache
#define HAL_UCACHE_PURGE_ALL()  HAL_UCACHE_INVALIDATE_ALL()

// Set the cache refill burst size
//#define HAL_UCACHE_BURST_SIZE(_size_)

// Set the cache write mode
//#define HAL_UCACHE_WRITE_MODE( _mode_ )

//#define HAL_UCACHE_WRITETHRU_MODE       0
//#define HAL_UCACHE_WRITEBACK_MODE       1

// Load the contents of the given address range into the cache
// and then lock the cache so that it stays there.
//#define HAL_UCACHE_LOCK(_base_, _size_)

// Undo a previous lock operation
//#define HAL_UCACHE_UNLOCK(_base_, _size_)

// Unlock entire cache
//#define HAL_UCACHE_UNLOCK_ALL()

//-----------------------------------------------------------------------------
// Cache line control

// Allocate cache lines for the given address range without reading its
// contents from memory.
//#define HAL_UCACHE_ALLOCATE( _base_ , _size_ )

// Write dirty cache lines to memory and invalidate the cache entries
// for the given address range.
//#define HAL_UCACHE_FLUSH( _base_ , _size_ )

// Invalidate cache lines in the given range without writing to memory.
//#define HAL_UCACHE_INVALIDATE( _base_ , _size_ )

// Write dirty cache lines to memory for the given address range.
//#define HAL_UCACHE_STORE( _base_ , _size_ )

// Preread the given range into the cache with the intention of reading
// from it later.
//#define HAL_UCACHE_READ_HINT( _base_ , _size_ )

// Preread the given range into the cache with the intention of writing
// to it later.
//#define HAL_UCACHE_WRITE_HINT( _base_ , _size_ )

// Allocate and zero the cache lines associated with the given range.
//#define HAL_UCACHE_ZERO( _base_ , _size_ )

//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
// Data and instruction cache macros map onto the both-cache macros

//-----------------------------------------------------------------------------
// Global control of data cache

#define HAL_DCACHE_SIZE                 HAL_UCACHE_SIZE
#define HAL_DCACHE_LINE_SIZE            HAL_UCACHE_LINE_SIZE
#define HAL_DCACHE_WAYS                 HAL_UCACHE_WAYS
#define HAL_DCACHE_SETS                 HAL_UCACHE_SETS

// Enable the data cache
#define HAL_DCACHE_ENABLE()             HAL_UCACHE_ENABLE()

// Disable the data cache
#define HAL_DCACHE_DISABLE()            HAL_UCACHE_DISABLE()

// Invalidate the entire cache
#define HAL_DCACHE_INVALIDATE_ALL()     HAL_UCACHE_INVALIDATE_ALL()

// Synchronize the contents of the cache with memory.
#define HAL_DCACHE_SYNC()               HAL_UCACHE_SYNC()

// Query the state of the data cache
#define HAL_DCACHE_IS_ENABLED(_state_)  HAL_UCACHE_IS_ENABLED(_state_)

// Set the data cache refill burst size
//#define HAL_DCACHE_BURST_SIZE(_size_)

// Set the data cache write mode
//#define HAL_DCACHE_WRITE_MODE( _mode_ )

//#define HAL_DCACHE_WRITETHRU_MODE       0
//#define HAL_DCACHE_WRITEBACK_MODE       1

// Load the contents of the given address range into the data cache
// and then lock the cache so that it stays there.
//#define HAL_DCACHE_LOCK(_base_, _size_)

// Undo a previous lock operation
//#define HAL_DCACHE_UNLOCK(_base_, _size_)

// Unlock entire cache
//#define HAL_DCACHE_UNLOCK_ALL()

//-----------------------------------------------------------------------------
// Data cache line control

// Allocate cache lines for the given address range without reading its
// contents from memory.
//#define HAL_DCACHE_ALLOCATE( _base_ , _size_ )

// Write dirty cache lines to memory and invalidate the cache entries
// for the given address range.
//#define HAL_DCACHE_FLUSH( _base_ , _size_ )

// Invalidate cache lines in the given range without writing to memory.
//#define HAL_DCACHE_INVALIDATE( _base_ , _size_ )

// Write dirty cache lines to memory for the given address range.
//#define HAL_DCACHE_STORE( _base_ , _size_ )

// Preread the given range into the cache with the intention of reading
// from it later.
//#define HAL_DCACHE_READ_HINT( _base_ , _size_ )

// Preread the given range into the cache with the intention of writing
// to it later.
//#define HAL_DCACHE_WRITE_HINT( _base_ , _size_ )

// Allocate and zero the cache lines associated with the given range.
//#define HAL_DCACHE_ZERO( _base_ , _size_ )

//-----------------------------------------------------------------------------
// Global control of Instruction cache

#define HAL_ICACHE_SIZE                 HAL_UCACHE_SIZE
#define HAL_ICACHE_LINE_SIZE            HAL_UCACHE_LINE_SIZE
#define HAL_ICACHE_WAYS                 HAL_UCACHE_WAYS
#define HAL_ICACHE_SETS                 HAL_UCACHE_SETS

// Enable the instruction cache
#define HAL_ICACHE_ENABLE()             HAL_UCACHE_ENABLE()

// Disable the instruction cache
#define HAL_ICACHE_DISABLE()            HAL_UCACHE_DISABLE()

// Invalidate the entire cache
#define HAL_ICACHE_INVALIDATE_ALL()     HAL_UCACHE_INVALIDATE_ALL()


// Synchronize the contents of the cache with memory.
#define HAL_ICACHE_SYNC()               HAL_UCACHE_SYNC()

// Query the state of the instruction cache
#define HAL_ICACHE_IS_ENABLED(_state_)  HAL_UCACHE_IS_ENABLED(_state_)

// Set the instruction cache refill burst size
//#define HAL_ICACHE_BURST_SIZE(_size_)

// Load the contents of the given address range into the instruction cache
// and then lock the cache so that it stays there.

//#define HAL_ICACHE_LOCK(_base_, _size_)

// Undo a previous lock operation
//#define HAL_ICACHE_UNLOCK(_base_, _size_)

// Unlock entire cache
//#define HAL_ICACHE_UNLOCK_ALL()

//-----------------------------------------------------------------------------
// Instruction cache line control

// Invalidate cache lines in the given range without writing to memory.
//#define HAL_ICACHE_INVALIDATE( _base_ , _size_ )

#endif // ifndef CYGONCE_HAL_CACHE_H
// End of hal_cache.h

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品三级视频| 中文字幕一区二| 成人永久看片免费视频天堂| 亚洲摸摸操操av| 欧美一二三四在线| 色婷婷亚洲一区二区三区| 麻豆视频观看网址久久| 亚洲乱码国产乱码精品精的特点| 精品国产露脸精彩对白| 日本韩国一区二区| 成人一级片网址| 久国产精品韩国三级视频| 亚洲国产毛片aaaaa无费看| 欧美激情艳妇裸体舞| 日韩视频在线你懂得| 在线视频国内自拍亚洲视频| 国产精品资源在线| 久久av中文字幕片| 爽好久久久欧美精品| 一区二区三区欧美在线观看| 中文字幕不卡的av| 国产亚洲一区二区三区在线观看| 91精品国产色综合久久不卡电影| 欧洲激情一区二区| 色呦呦一区二区三区| 成人性生交大片免费看视频在线| 久久综合综合久久综合| 日韩中文欧美在线| 五月综合激情婷婷六月色窝| 夜夜嗨av一区二区三区网页| 日韩伦理电影网| 国产精品久久午夜| 国产精品色眯眯| 国产精品久久久久四虎| 国产精品网站在线播放| 国产精品欧美综合在线| 中文字幕不卡的av| 国产精品人妖ts系列视频| 中文在线免费一区三区高中清不卡| 欧美r级在线观看| 日韩你懂的电影在线观看| 91精品国产色综合久久ai换脸| 欧美日韩国产美女| 欧美绝品在线观看成人午夜影视 | 91麻豆精品国产91久久久使用方法| 在线看国产一区| 欧美日韩另类一区| 日韩手机在线导航| 久久久久久97三级| 国产精品久久久久久久久图文区| 国产精品伦理一区二区| 亚洲免费视频中文字幕| 亚洲午夜精品在线| 免费成人av资源网| 国产精品亚洲专一区二区三区| 国产成人免费高清| 91热门视频在线观看| 亚洲欧美一区二区三区久本道91| 欧美无砖专区一中文字| 91行情网站电视在线观看高清版| 国产精品污www在线观看| 亚洲一区二区在线观看视频| 欧美高清在线一区| 韩国v欧美v亚洲v日本v| 亚洲一区二区三区中文字幕| 午夜激情一区二区| 久久成人综合网| 成人福利视频网站| 欧美自拍偷拍一区| 欧美大肚乱孕交hd孕妇| 国产亚洲污的网站| 亚洲嫩草精品久久| 蜜臀av性久久久久蜜臀av麻豆| 捆绑调教一区二区三区| 成人高清伦理免费影院在线观看| 欧美亚男人的天堂| 精品国产乱码久久久久久免费| 欧美经典一区二区三区| 亚洲午夜免费电影| 国产成人午夜电影网| 亚洲国产裸拍裸体视频在线观看乱了| 7777精品伊人久久久大香线蕉经典版下载| 欧美一卡2卡3卡4卡| 欧美激情在线观看视频免费| 亚洲最新视频在线播放| 国内精品国产三级国产a久久| 99re亚洲国产精品| 欧美日韩一区二区三区高清| 国产亚洲一区字幕| 亚洲一区二三区| 高清成人在线观看| 欧美一区二区精品在线| 中文字幕在线一区| 久久精品国产在热久久| 色婷婷久久久综合中文字幕| 久久综合九色综合欧美就去吻| 亚洲精品免费电影| 国产精品99久| 7777精品伊人久久久大香线蕉完整版 | 黑人巨大精品欧美黑白配亚洲| 99久久精品99国产精品| 精品成人私密视频| 亚瑟在线精品视频| 97精品国产露脸对白| 久久噜噜亚洲综合| 日本不卡中文字幕| 欧洲亚洲精品在线| 国产精品理论在线观看| 激情伊人五月天久久综合| 欧美日韩极品在线观看一区| 亚洲欧美日韩电影| 成人a级免费电影| 26uuu成人网一区二区三区| 天天亚洲美女在线视频| 在线观看免费亚洲| 亚洲精品自拍动漫在线| 丁香婷婷综合激情五月色| 欧美精品一区二区三区很污很色的| 舔着乳尖日韩一区| 欧美自拍偷拍午夜视频| 亚洲精品日韩综合观看成人91| 成人免费高清在线| 国产欧美一区二区三区在线看蜜臀| 蜜桃一区二区三区在线| 欧美久久婷婷综合色| 五月天激情综合| 欧美日韩精品福利| 午夜欧美电影在线观看| 欧美喷水一区二区| 亚洲大片免费看| 欧美狂野另类xxxxoooo| 午夜精品久久久久影视| 欧美日韩亚洲综合一区二区三区| 一区二区在线免费观看| 在线一区二区三区四区五区| 一区二区三区影院| 欧美三级电影在线观看| 手机精品视频在线观看| 91精品婷婷国产综合久久性色 | 精品理论电影在线观看| 青娱乐精品在线视频| 精品毛片乱码1区2区3区| 九九九精品视频| 国产亚洲欧美日韩俺去了| 国产91在线观看| 中文字幕佐山爱一区二区免费| 91老师国产黑色丝袜在线| 亚洲久本草在线中文字幕| 色狠狠色噜噜噜综合网| 亚洲成人av在线电影| 欧美一区二区在线免费播放| 激情av综合网| 国产精品短视频| 欧美性生活久久| 免费不卡在线观看| 国产女人水真多18毛片18精品视频| 丁香天五香天堂综合| 一区二区三区成人| 欧美一区二区三区性视频| 国产精品一区二区在线播放| 最新不卡av在线| 欧美片在线播放| 国产尤物一区二区| 亚洲婷婷在线视频| 在线成人av影院| 国产精品1024| 亚洲午夜三级在线| 久久一夜天堂av一区二区三区| 丁香五精品蜜臀久久久久99网站| 亚洲精品国产无天堂网2021| 日韩一区二区三区免费看| 国产东北露脸精品视频| 亚洲自拍偷拍网站| 久久一夜天堂av一区二区三区| 99精品视频在线观看| 人禽交欧美网站| 日韩美女久久久| 欧美v日韩v国产v| 色综合久久综合网| 激情五月激情综合网| 亚洲日本成人在线观看| 欧美电影免费观看高清完整版在 | 欧美国产综合色视频| 欧美性色综合网| 国产高清不卡一区二区| 亚洲成人福利片| 国产精品美女一区二区| 91精品国产欧美日韩| av一区二区久久| 久久成人免费电影| 亚洲一区二区精品久久av| 久久精品在线免费观看| 91精品综合久久久久久| 91在线观看视频| 国产不卡视频在线观看| 日本美女视频一区二区| 亚洲欧美激情在线| 中文字幕欧美激情一区| 日韩欧美视频在线| 欧美日韩免费在线视频|