arch/openrisc/include/asm/io.h

Source file repositories/reference/linux-study-clean/arch/openrisc/include/asm/io.h

File Facts

System
Linux kernel
Corpus path
arch/openrisc/include/asm/io.h
Extension
.h
Size
808 bytes
Lines
40
Domain
Architecture Layer
Bucket
arch/openrisc
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __ASM_OPENRISC_IO_H
#define __ASM_OPENRISC_IO_H

#include <linux/types.h>
#include <asm/pgalloc.h>
#include <asm/pgtable.h>

/*
 * PCI: We do not use IO ports in OpenRISC
 */
#define IO_SPACE_LIMIT		0

/* OpenRISC has no port IO */
#define HAVE_ARCH_PIO_SIZE	1
#define PIO_RESERVED		0X0UL
#define PIO_OFFSET		0
#define PIO_MASK		0

/*
 * I/O memory mapping functions.
 */
#define _PAGE_IOREMAP (pgprot_val(PAGE_KERNEL) | _PAGE_CI)

#include <asm-generic/io.h>

#endif

Annotation

Implementation Notes