include/linux/spi/offload/consumer.h

Source file repositories/reference/linux-study-clean/include/linux/spi/offload/consumer.h

File Facts

System
Linux kernel
Corpus path
include/linux/spi/offload/consumer.h
Extension
.h
Size
1339 bytes
Lines
40
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __LINUX_SPI_OFFLOAD_CONSUMER_H
#define __LINUX_SPI_OFFLOAD_CONSUMER_H

#include <linux/module.h>
#include <linux/spi/offload/types.h>
#include <linux/types.h>

MODULE_IMPORT_NS("SPI_OFFLOAD");

struct device;
struct spi_device;

struct spi_offload *devm_spi_offload_get(struct device *dev, struct spi_device *spi,
					 const struct spi_offload_config *config);

struct spi_offload_trigger
*devm_spi_offload_trigger_get(struct device *dev,
			      struct spi_offload *offload,
			      enum spi_offload_trigger_type type);
int spi_offload_trigger_validate(struct spi_offload_trigger *trigger,
				 struct spi_offload_trigger_config *config);
int spi_offload_trigger_enable(struct spi_offload *offload,
			       struct spi_offload_trigger *trigger,
			       struct spi_offload_trigger_config *config);
void spi_offload_trigger_disable(struct spi_offload *offload,
				 struct spi_offload_trigger *trigger);

struct dma_chan *devm_spi_offload_tx_stream_request_dma_chan(struct device *dev,
							     struct spi_offload *offload);
struct dma_chan *devm_spi_offload_rx_stream_request_dma_chan(struct device *dev,
							     struct spi_offload *offload);

#endif /* __LINUX_SPI_OFFLOAD_CONSUMER_H */

Annotation

Implementation Notes