drivers/gpu/host1x/channel.h

Source file repositories/reference/linux-study-clean/drivers/gpu/host1x/channel.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/host1x/channel.h
Extension
.h
Size
983 bytes
Lines
46
Domain
Driver Families
Bucket
drivers/gpu
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 host1x_channel_list {
	struct host1x_channel *channels;

	struct mutex lock;
	unsigned long *allocated_channels;
};

struct host1x_channel {
	struct kref refcount;
	unsigned int id;
	struct mutex submitlock;
	void __iomem *regs;
	struct host1x_client *client;
	struct device *dev;
	struct host1x_cdma cdma;
};

/* channel list operations */
int host1x_channel_list_init(struct host1x_channel_list *chlist,
			     unsigned int num_channels);
void host1x_channel_list_free(struct host1x_channel_list *chlist);
struct host1x_channel *host1x_channel_get_index(struct host1x *host,
						unsigned int index);
void host1x_channel_stop_all(struct host1x *host);

#endif

Annotation

Implementation Notes