arch/arm/mach-omap2/omap_device.h

Source file repositories/reference/linux-study-clean/arch/arm/mach-omap2/omap_device.h

File Facts

System
Linux kernel
Corpus path
arch/arm/mach-omap2/omap_device.h
Extension
.h
Size
2354 bytes
Lines
79
Domain
Architecture Layer
Bucket
arch/arm
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

struct omap_device {
	struct platform_device		*pdev;
	unsigned long			_driver_status;
	u8				hwmods_cnt;
	u8				_state;
	u8                              flags;
	struct omap_hwmod		*hwmods[] __counted_by(hwmods_cnt);
};

/* Device driver interface (call via platform_data fn ptrs) */

int omap_device_enable(struct platform_device *pdev);
int omap_device_idle(struct platform_device *pdev);

/* Other */

int omap_device_assert_hardreset(struct platform_device *pdev,
				 const char *name);
int omap_device_deassert_hardreset(struct platform_device *pdev,
				 const char *name);

/* Get omap_device pointer from platform_device pointer */
static inline struct omap_device *to_omap_device(struct platform_device *pdev)
{
	return pdev ? pdev->archdata.od : NULL;
}
#endif

Annotation

Implementation Notes