drivers/staging/sm750fb/sm750_accel.h
Source file repositories/reference/linux-study-clean/drivers/staging/sm750fb/sm750_accel.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/sm750fb/sm750_accel.h- Extension
.h- Size
- 11885 bytes
- Lines
- 244
- Domain
- Driver Families
- Bucket
- drivers/staging
- 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
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef ACCEL_H__
#define ACCEL_H__
#define HW_ROP2_COPY 0xc
#define HW_ROP2_XOR 0x6
/* notes: below address are the offset value from de_base_address (0x100000)*/
/* for sm718/750/502 de_base is at mmreg_1mb*/
#define DE_BASE_ADDR_TYPE1 0x100000
/* for sm712,de_base is at mmreg_32kb */
#define DE_BASE_ADDR_TYPE2 0x8000
/* for sm722,de_base is at mmreg_0 */
#define DE_BASE_ADDR_TYPE3 0
/* type1 data port address is at mmreg_0x110000*/
#define DE_PORT_ADDR_TYPE1 0x110000
/* for sm712,data port address is at mmreg_0 */
#define DE_PORT_ADDR_TYPE2 0x100000
/* for sm722,data port address is at mmreg_1mb */
#define DE_PORT_ADDR_TYPE3 0x100000
#define DE_SOURCE 0x0
#define DE_SOURCE_WRAP BIT(31)
#define DE_SOURCE_X_K1_SHIFT 16
#define DE_SOURCE_X_K1_MASK (0x3fff << 16)
#define DE_SOURCE_X_K1_MONO_MASK (0x1f << 16)
#define DE_SOURCE_Y_K2_MASK 0xffff
#define DE_DESTINATION 0x4
#define DE_DESTINATION_WRAP BIT(31)
#define DE_DESTINATION_X_SHIFT 16
#define DE_DESTINATION_X_MASK (0x1fff << 16)
#define DE_DESTINATION_Y_MASK 0xffff
#define DE_DIMENSION 0x8
#define DE_DIMENSION_X_SHIFT 16
#define DE_DIMENSION_X_MASK (0x1fff << 16)
#define DE_DIMENSION_Y_ET_MASK 0x1fff
#define DE_CONTROL 0xC
#define DE_CONTROL_STATUS BIT(31)
#define DE_CONTROL_PATTERN BIT(30)
#define DE_CONTROL_UPDATE_DESTINATION_X BIT(29)
#define DE_CONTROL_QUICK_START BIT(28)
#define DE_CONTROL_DIRECTION BIT(27)
#define DE_CONTROL_MAJOR BIT(26)
#define DE_CONTROL_STEP_X BIT(25)
#define DE_CONTROL_STEP_Y BIT(24)
#define DE_CONTROL_STRETCH BIT(23)
#define DE_CONTROL_HOST BIT(22)
#define DE_CONTROL_LAST_PIXEL BIT(21)
#define DE_CONTROL_COMMAND_SHIFT 16
#define DE_CONTROL_COMMAND_MASK (0x1f << 16)
#define DE_CONTROL_COMMAND_BITBLT (0x0 << 16)
#define DE_CONTROL_COMMAND_RECTANGLE_FILL (0x1 << 16)
#define DE_CONTROL_COMMAND_DE_TILE (0x2 << 16)
#define DE_CONTROL_COMMAND_TRAPEZOID_FILL (0x3 << 16)
#define DE_CONTROL_COMMAND_ALPHA_BLEND (0x4 << 16)
#define DE_CONTROL_COMMAND_RLE_STRIP (0x5 << 16)
#define DE_CONTROL_COMMAND_SHORT_STROKE (0x6 << 16)
#define DE_CONTROL_COMMAND_LINE_DRAW (0x7 << 16)
#define DE_CONTROL_COMMAND_HOST_WRITE (0x8 << 16)
#define DE_CONTROL_COMMAND_HOST_READ (0x9 << 16)
#define DE_CONTROL_COMMAND_HOST_WRITE_BOTTOM_UP (0xa << 16)
#define DE_CONTROL_COMMAND_ROTATE (0xb << 16)
#define DE_CONTROL_COMMAND_FONT (0xc << 16)
#define DE_CONTROL_COMMAND_TEXTURE_LOAD (0xe << 16)
#define DE_CONTROL_ROP_SELECT BIT(15)
#define DE_CONTROL_ROP2_SOURCE BIT(14)
#define DE_CONTROL_MONO_DATA_SHIFT 12
#define DE_CONTROL_MONO_DATA_MASK (0x3 << 12)
#define DE_CONTROL_MONO_DATA_NOT_PACKED (0x0 << 12)
#define DE_CONTROL_MONO_DATA_8_PACKED (0x1 << 12)
#define DE_CONTROL_MONO_DATA_16_PACKED (0x2 << 12)
#define DE_CONTROL_MONO_DATA_32_PACKED (0x3 << 12)
#define DE_CONTROL_REPEAT_ROTATE BIT(11)
#define DE_CONTROL_TRANSPARENCY_MATCH BIT(10)
#define DE_CONTROL_TRANSPARENCY_SELECT BIT(9)
#define DE_CONTROL_TRANSPARENCY BIT(8)
#define DE_CONTROL_ROP_MASK 0xff
/* Pseudo fields. */
#define DE_CONTROL_SHORT_STROKE_DIR_MASK (0xf << 24)
#define DE_CONTROL_SHORT_STROKE_DIR_225 (0x0 << 24)
#define DE_CONTROL_SHORT_STROKE_DIR_135 (0x1 << 24)
#define DE_CONTROL_SHORT_STROKE_DIR_315 (0x2 << 24)
#define DE_CONTROL_SHORT_STROKE_DIR_45 (0x3 << 24)
#define DE_CONTROL_SHORT_STROKE_DIR_270 (0x4 << 24)
Annotation
- Atlas domain: Driver Families / drivers/staging.
- 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.