include/linux/mtd/spear_smi.h

Source file repositories/reference/linux-study-clean/include/linux/mtd/spear_smi.h

File Facts

System
Linux kernel
Corpus path
include/linux/mtd/spear_smi.h
Extension
.h
Size
1793 bytes
Lines
67
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

struct spear_smi_flash_info {
	char *name;
	unsigned long mem_base;
	unsigned long size;
	struct mtd_partition *partitions;
	int nr_partitions;
	u8 fast_mode;
};

/**
 * struct spear_smi_plat_data - platform structure for configuring smi
 *
 * @clk_rate: clk rate at which SMI must operate
 * @num_flashes: number of flashes present on board
 * @board_flash_info: specific details of each flash present on board
 * @np: array of DT node pointers for all possible flash chip devices
 */
struct spear_smi_plat_data {
	unsigned long clk_rate;
	int num_flashes;
	struct spear_smi_flash_info *board_flash_info;
	struct device_node *np[MAX_NUM_FLASH_CHIP];
};

#endif /* __MTD_SPEAR_SMI_H */

Annotation

Implementation Notes