1/*====================================================================2* os_cache.h3*4* Copyright 1995, Silicon Graphics, Inc.5* All Rights Reserved.6*7* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics,8* Inc.; the contents of this file may not be disclosed to third9* parties, copied or duplicated in any form, in whole or in part,10* without the prior written permission of Silicon Graphics, Inc.11*12* RESTRICTED RIGHTS LEGEND:13* Use, duplication or disclosure by the Government is subject to14* restrictions as set forth in subdivision (c)(1)(ii) of the Rights15* in Technical Data and Computer Software clause at DFARS16* 252.227-7013, and/or in similar or successor clauses in the FAR,17* DOD or NASA FAR Supplement. Unpublished - rights reserved under the18* Copyright Laws of the United States.19*====================================================================*/2021/*---------------------------------------------------------------------*22Copyright (C) 1998 Nintendo. (Originated by SGI)2324$RCSfile: os_cache.h,v $25$Revision: 1.1 $26$Date: 1998/10/09 08:01:04 $27*---------------------------------------------------------------------*/2829#ifndef _OS_CACHE_H_30#define _OS_CACHE_H_3132#ifdef _LANGUAGE_C_PLUS_PLUS33extern "C" {34#endif3536#include <PR/ultratypes.h>3738#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)3940/**************************************************************************41*42* Type definitions43*44*/454647#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */4849/**************************************************************************50*51* Global definitions52*53*/545556#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)5758/**************************************************************************59*60* Macro definitions61*62*/6364#define OS_DCACHE_ROUNDUP_ADDR(x) (void *)(((((u32)(x)+0xf)/0x10)*0x10))65#define OS_DCACHE_ROUNDUP_SIZE(x) (u32)(((((u32)(x)+0xf)/0x10)*0x10))666768/**************************************************************************69*70* Extern variables71*72*/737475/**************************************************************************76*77* Function prototypes78*79*/8081/* Cache operations and macros */8283extern void osInvalDCache(void *, size_t);84extern void osInvalICache(void *, size_t);85extern void osWritebackDCache(void *, size_t);86extern void osWritebackDCacheAll(void);878889#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */9091#ifdef _LANGUAGE_C_PLUS_PLUS92}93#endif9495#endif /* !_OS_CACHE_H_ */969798