drivers/accel/ethosu/ethosu_gem.h
Source file repositories/reference/linux-study-clean/drivers/accel/ethosu/ethosu_gem.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/accel/ethosu/ethosu_gem.h- Extension
.h- Size
- 1194 bytes
- Lines
- 47
- Domain
- Driver Families
- Bucket
- drivers/accel
- 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.
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
ethosu_device.hdrm/drm_gem_dma_helper.h
Detected Declarations
struct ethosu_validated_cmdstream_infostruct ethosu_gem_object
Annotated Snippet
struct ethosu_validated_cmdstream_info {
u32 cmd_size;
u64 region_size[NPU_BASEP_REGION_MAX];
bool output_region[NPU_BASEP_REGION_MAX];
};
/**
* struct ethosu_gem_object - Driver specific GEM object.
*/
struct ethosu_gem_object {
/** @base: Inherit from drm_gem_shmem_object. */
struct drm_gem_dma_object base;
struct ethosu_validated_cmdstream_info *info;
/** @flags: Combination of drm_ethosu_bo_flags flags. */
u32 flags;
};
static inline
struct ethosu_gem_object *to_ethosu_bo(struct drm_gem_object *obj)
{
return container_of(to_drm_gem_dma_obj(obj), struct ethosu_gem_object, base);
}
struct drm_gem_object *ethosu_gem_create_object(struct drm_device *ddev,
size_t size);
int ethosu_gem_create_with_handle(struct drm_file *file,
struct drm_device *ddev,
u64 *size, u32 flags, uint32_t *handle);
int ethosu_gem_cmdstream_create(struct drm_file *file,
struct drm_device *ddev,
u32 size, u64 data, u32 flags, u32 *handle);
#endif /* __ETHOSU_GEM_H__ */
Annotation
- Immediate include surface: `ethosu_device.h`, `drm/drm_gem_dma_helper.h`.
- Detected declarations: `struct ethosu_validated_cmdstream_info`, `struct ethosu_gem_object`.
- Atlas domain: Driver Families / drivers/accel.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.