Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/arch/sh/include/asm/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 1 kB image not shown  

Quelle  cache.h   Sprache: C

 
/* SPDX-License-Identifier: GPL-2.0 */
/* $Id: cache.h,v 1.6 2004/03/11 18:08:05 lethal Exp $
 *
 * include/asm-sh/cache.h
 *
 * Copyright 1999 (C) Niibe Yutaka
 * Copyright 2002, 2003 (C) Paul Mundt
 */

#ifndef __ASM_SH_CACHE_H
#define __ASM_SH_CACHE_H

#include <linux/init.h>
#include <cpu/cache.h>

#define L1_CACHE_BYTES  (1 << L1_CACHE_SHIFT)

/*
 * Some drivers need to perform DMA into kmalloc'ed buffers
 * and so we have to increase the kmalloc minalign for this.
 */

#define ARCH_DMA_MINALIGN L1_CACHE_BYTES

#define __read_mostly __section(".data..read_mostly")

#ifndef __ASSEMBLER__
struct cache_info {
 unsigned int ways;  /* Number of cache ways */
 unsigned int sets;  /* Number of cache sets */
 unsigned int linesz;  /* Cache line size (bytes) */

 unsigned int way_size;  /* sets * line size */

 /*
 * way_incr is the address offset for accessing the next way
 * in memory mapped cache array ops.
 */

 unsigned int way_incr;
 unsigned int entry_shift;
 unsigned int entry_mask;

 /*
 * Compute a mask which selects the address bits which overlap between
 * 1. those used to select the cache set during indexing
 * 2. those in the physical page number.
 */

 unsigned int alias_mask;
 unsigned int n_aliases;  /* Number of aliases */

 unsigned long flags;
};
#endif /* __ASSEMBLER__ */
#endif /* __ASM_SH_CACHE_H */

Messung V0.5
C=79 H=100 G=90

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.