drivers/gpu/drm/tidss/tidss_irq.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/tidss/tidss_irq.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/tidss/tidss_irq.h- Extension
.h- Size
- 2245 bytes
- Lines
- 74
- 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.
- 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
linux/types.htidss_drv.h
Detected Declarations
struct drm_crtcstruct drm_devicestruct tidss_devicefunction Copyrightfunction DSS_IRQ_PLANE_MASK
Annotated Snippet
#ifndef __TIDSS_IRQ_H__
#define __TIDSS_IRQ_H__
#include <linux/types.h>
#include "tidss_drv.h"
/*
* The IRQ status from various DISPC IRQ registers are packed into a single
* value, where the bits are defined as follows:
*
* bit group |dev|wb |mrg0|mrg1|mrg2|mrg3|plane0-3| <unused> |
* bit use |D |fou|FEOL|FEOL|FEOL|FEOL| UUUU | |
* bit number|0 |1-3|4-7 |8-11| 12-19 | 20-23 | 24-31 |
*
* device bits: D = Unused
* WB bits: f = frame done wb, o = wb buffer overflow,
* u = wb buffer uncomplete
* vp bits: F = frame done, E = vsync even, O = vsync odd, L = sync lost
* plane bits: U = fifo underflow
*/
#define DSS_IRQ_DEVICE_FRAMEDONEWB BIT(1)
#define DSS_IRQ_DEVICE_WBBUFFEROVERFLOW BIT(2)
#define DSS_IRQ_DEVICE_WBUNCOMPLETEERROR BIT(3)
#define DSS_IRQ_DEVICE_WB_MASK GENMASK(3, 1)
#define DSS_IRQ_VP_BIT_N(ch, bit) (4 + 4 * (ch) + (bit))
#define DSS_IRQ_PLANE_BIT_N(plane, bit) \
(DSS_IRQ_VP_BIT_N(TIDSS_MAX_PORTS, 0) + 1 * (plane) + (bit))
#define DSS_IRQ_VP_BIT(ch, bit) BIT(DSS_IRQ_VP_BIT_N((ch), (bit)))
#define DSS_IRQ_PLANE_BIT(plane, bit) \
BIT(DSS_IRQ_PLANE_BIT_N((plane), (bit)))
static inline dispc_irq_t DSS_IRQ_VP_MASK(u32 ch)
{
return GENMASK(DSS_IRQ_VP_BIT_N((ch), 3), DSS_IRQ_VP_BIT_N((ch), 0));
}
static inline dispc_irq_t DSS_IRQ_PLANE_MASK(u32 plane)
{
return GENMASK(DSS_IRQ_PLANE_BIT_N((plane), 0),
DSS_IRQ_PLANE_BIT_N((plane), 0));
}
#define DSS_IRQ_VP_FRAME_DONE(ch) DSS_IRQ_VP_BIT((ch), 0)
#define DSS_IRQ_VP_VSYNC_EVEN(ch) DSS_IRQ_VP_BIT((ch), 1)
#define DSS_IRQ_VP_VSYNC_ODD(ch) DSS_IRQ_VP_BIT((ch), 2)
#define DSS_IRQ_VP_SYNC_LOST(ch) DSS_IRQ_VP_BIT((ch), 3)
#define DSS_IRQ_PLANE_FIFO_UNDERFLOW(plane) DSS_IRQ_PLANE_BIT((plane), 0)
struct drm_crtc;
struct drm_device;
struct tidss_device;
void tidss_irq_enable_vblank(struct drm_crtc *crtc);
void tidss_irq_disable_vblank(struct drm_crtc *crtc);
int tidss_irq_install(struct drm_device *ddev, unsigned int irq);
void tidss_irq_uninstall(struct drm_device *ddev);
void tidss_irq_resume(struct tidss_device *tidss);
#endif
Annotation
- Immediate include surface: `linux/types.h`, `tidss_drv.h`.
- Detected declarations: `struct drm_crtc`, `struct drm_device`, `struct tidss_device`, `function Copyright`, `function DSS_IRQ_PLANE_MASK`.
- Atlas domain: Driver Families / drivers/gpu.
- 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.