include/linux/rio_drv.h
Source file repositories/reference/linux-study-clean/include/linux/rio_drv.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/rio_drv.h- Extension
.h- Size
- 14395 bytes
- Lines
- 445
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/ioport.hlinux/list.hlinux/errno.hlinux/string.hlinux/rio.h
Detected Declarations
function rio_local_read_config_32function rio_local_write_config_32function rio_local_read_config_16function rio_local_write_config_16function rio_local_read_config_8function rio_local_write_config_8function rio_read_config_32function rio_write_config_32function rio_read_config_16function rio_write_config_16function rio_read_config_8function rio_write_config_8function rio_send_doorbellfunction rio_init_mbox_resfunction rio_init_dbell_resfunction rio_add_outb_messagefunction rio_add_inb_bufferfunction rio_set_drvdata
Annotated Snippet
#ifndef LINUX_RIO_DRV_H
#define LINUX_RIO_DRV_H
#include <linux/types.h>
#include <linux/ioport.h>
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/rio.h>
extern int __rio_local_read_config_32(struct rio_mport *port, u32 offset,
u32 * data);
extern int __rio_local_write_config_32(struct rio_mport *port, u32 offset,
u32 data);
extern int __rio_local_read_config_16(struct rio_mport *port, u32 offset,
u16 * data);
extern int __rio_local_write_config_16(struct rio_mport *port, u32 offset,
u16 data);
extern int __rio_local_read_config_8(struct rio_mport *port, u32 offset,
u8 * data);
extern int __rio_local_write_config_8(struct rio_mport *port, u32 offset,
u8 data);
extern int rio_mport_read_config_32(struct rio_mport *port, u16 destid,
u8 hopcount, u32 offset, u32 * data);
extern int rio_mport_write_config_32(struct rio_mport *port, u16 destid,
u8 hopcount, u32 offset, u32 data);
extern int rio_mport_read_config_16(struct rio_mport *port, u16 destid,
u8 hopcount, u32 offset, u16 * data);
extern int rio_mport_write_config_16(struct rio_mport *port, u16 destid,
u8 hopcount, u32 offset, u16 data);
extern int rio_mport_read_config_8(struct rio_mport *port, u16 destid,
u8 hopcount, u32 offset, u8 * data);
extern int rio_mport_write_config_8(struct rio_mport *port, u16 destid,
u8 hopcount, u32 offset, u8 data);
/**
* rio_local_read_config_32 - Read 32 bits from local configuration space
* @port: Master port
* @offset: Offset into local configuration space
* @data: Pointer to read data into
*
* Reads 32 bits of data from the specified offset within the local
* device's configuration space.
*/
static inline int rio_local_read_config_32(struct rio_mport *port, u32 offset,
u32 * data)
{
return __rio_local_read_config_32(port, offset, data);
}
/**
* rio_local_write_config_32 - Write 32 bits to local configuration space
* @port: Master port
* @offset: Offset into local configuration space
* @data: Data to be written
*
* Writes 32 bits of data to the specified offset within the local
* device's configuration space.
*/
static inline int rio_local_write_config_32(struct rio_mport *port, u32 offset,
u32 data)
{
return __rio_local_write_config_32(port, offset, data);
}
/**
* rio_local_read_config_16 - Read 16 bits from local configuration space
* @port: Master port
* @offset: Offset into local configuration space
* @data: Pointer to read data into
*
* Reads 16 bits of data from the specified offset within the local
* device's configuration space.
*/
static inline int rio_local_read_config_16(struct rio_mport *port, u32 offset,
u16 * data)
{
return __rio_local_read_config_16(port, offset, data);
}
/**
* rio_local_write_config_16 - Write 16 bits to local configuration space
* @port: Master port
* @offset: Offset into local configuration space
* @data: Data to be written
*
* Writes 16 bits of data to the specified offset within the local
* device's configuration space.
*/
Annotation
- Immediate include surface: `linux/types.h`, `linux/ioport.h`, `linux/list.h`, `linux/errno.h`, `linux/string.h`, `linux/rio.h`.
- Detected declarations: `function rio_local_read_config_32`, `function rio_local_write_config_32`, `function rio_local_read_config_16`, `function rio_local_write_config_16`, `function rio_local_read_config_8`, `function rio_local_write_config_8`, `function rio_read_config_32`, `function rio_write_config_32`, `function rio_read_config_16`, `function rio_write_config_16`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.