drivers/gpu/drm/sitronix/st7571.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/sitronix/st7571.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/sitronix/st7571.h- Extension
.h- Size
- 2134 bytes
- Lines
- 92
- 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
drm/drm_connector.hdrm/drm_crtc.hdrm/drm_drv.hdrm/drm_encoder.hdrm/drm_format_helper.hlinux/regmap.h
Detected Declarations
struct st7571_devicestruct st7571_panel_constraintsstruct st7571_panel_datastruct st7571_panel_formatstruct st7571_deviceenum st7571_color_mode
Annotated Snippet
struct st7571_panel_constraints {
u32 min_nlines;
u32 max_nlines;
u32 min_ncols;
u32 max_ncols;
bool support_grayscale;
};
struct st7571_panel_data {
int (*init)(struct st7571_device *st7571);
int (*parse_dt)(struct st7571_device *st7571);
struct st7571_panel_constraints constraints;
};
struct st7571_panel_format {
void (*prepare_buffer)(struct st7571_device *st7571,
const struct iosys_map *vmap,
struct drm_framebuffer *fb,
struct drm_rect *rect,
struct drm_format_conv_state *fmtcnv_state);
int (*update_rect)(struct drm_framebuffer *fb, struct drm_rect *rect);
enum st7571_color_mode mode;
const u8 nformats;
const u32 formats[];
};
struct st7571_device {
struct drm_device drm;
struct device *dev;
struct drm_plane primary_plane;
struct drm_crtc crtc;
struct drm_encoder encoder;
struct drm_connector connector;
struct drm_display_mode mode;
const struct st7571_panel_format *pformat;
const struct st7571_panel_data *pdata;
struct gpio_desc *reset;
struct regmap *regmap;
bool grayscale;
bool inverted;
u32 height_mm;
u32 width_mm;
u32 startline;
u32 nlines;
u32 ncols;
u32 bpp;
/* Intermediate buffer in LCD friendly format */
u8 *hwbuf;
/* Row of (transformed) pixels ready to be written to the display */
u8 *row;
};
extern const struct st7571_panel_data st7567_config;
extern const struct st7571_panel_data st7571_config;
struct st7571_device *st7571_probe(struct device *dev, struct regmap *regmap);
void st7571_remove(struct st7571_device *st7571);
#endif /* __ST7571_H__ */
Annotation
- Immediate include surface: `drm/drm_connector.h`, `drm/drm_crtc.h`, `drm/drm_drv.h`, `drm/drm_encoder.h`, `drm/drm_format_helper.h`, `linux/regmap.h`.
- Detected declarations: `struct st7571_device`, `struct st7571_panel_constraints`, `struct st7571_panel_data`, `struct st7571_panel_format`, `struct st7571_device`, `enum st7571_color_mode`.
- 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.