drivers/net/can/softing/softing_platform.h

Source file repositories/reference/linux-study-clean/drivers/net/can/softing/softing_platform.h

File Facts

System
Linux kernel
Corpus path
drivers/net/can/softing/softing_platform.h
Extension
.h
Size
909 bytes
Lines
42
Domain
Driver Families
Bucket
drivers/net
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 softing_platform_data {
	unsigned int manf;
	unsigned int prod;
	/*
	 * generation
	 * 1st with NEC or SJA1000
	 * 8bit, exclusive interrupt, ...
	 * 2nd only SJA1000
	 * 16bit, shared interrupt
	 */
	int generation;
	int nbus; /* # buses on device */
	unsigned int freq; /* operating frequency in Hz */
	unsigned int max_brp;
	unsigned int max_sjw;
	unsigned long dpram_size;
	const char *name;
	struct {
		unsigned long offs;
		unsigned long addr;
		const char *fw;
	} boot, load, app;
	/*
	 * reset() function
	 * bring pdev in or out of reset, depending on value
	 */
	int (*reset)(struct platform_device *pdev, int value);
	int (*enable_irq)(struct platform_device *pdev, int value);
};

#endif

Annotation

Implementation Notes