drivers/iio/pressure/abp2030pa.h

Source file repositories/reference/linux-study-clean/drivers/iio/pressure/abp2030pa.h

File Facts

System
Linux kernel
Corpus path
drivers/iio/pressure/abp2030pa.h
Extension
.h
Size
1771 bytes
Lines
74
Domain
Driver Families
Bucket
drivers/iio
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

struct abp2_data {
	struct device *dev;
	const struct abp2_ops *ops;
	s32 pmin;
	s32 pmax;
	u32 outmin;
	u32 outmax;
	enum abp2_func_id function;
	int p_scale;
	int p_scale_dec;
	int p_offset;
	int irq;
	struct completion completion;
	struct {
		u32 chan[2];
		aligned_s64 timestamp;
	} scan;
	u8 rx_buf[ABP2_MEASUREMENT_RD_SIZE] __aligned(IIO_DMA_MINALIGN);
	u8 tx_buf[ABP2_MEASUREMENT_RD_SIZE];
};

struct abp2_ops {
	int (*read)(struct abp2_data *data, u8 cmd, u8 nbytes);
	int (*write)(struct abp2_data *data, u8 cmd, u8 nbytes);
};

int abp2_common_probe(struct device *dev, const struct abp2_ops *ops, int irq);

#endif

Annotation

Implementation Notes