drivers/gpu/drm/amd/display/include/gpio_types.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/include/gpio_types.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/include/gpio_types.h- Extension
.h- Size
- 7786 bytes
- Lines
- 333
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct gpio_pin_infostruct gpio_ddc_configstruct gpio_hpd_configstruct gpio_generic_mux_configstruct gpio_gsl_mux_configstruct gpio_config_dataenum gpio_resultenum gpio_idenum gpio_pin_output_stateenum gpio_genericenum gpio_hpdenum gpio_gpio_padenum gpio_vip_padenum gpio_syncenum gpio_gslenum gpio_ddc_lineenum gpio_modeenum gpio_signal_sourceenum gpio_stereo_sourceenum gpio_config_typeenum gpio_ddc_config_typeenum gpio_gsl_mux_config_type
Annotated Snippet
struct gpio_pin_info {
uint32_t offset;
uint32_t offset_y;
uint32_t offset_en;
uint32_t offset_mask;
uint32_t mask;
uint32_t mask_y;
uint32_t mask_en;
uint32_t mask_mask;
};
enum gpio_pin_output_state {
GPIO_PIN_OUTPUT_STATE_ACTIVE_LOW,
GPIO_PIN_OUTPUT_STATE_ACTIVE_HIGH,
GPIO_PIN_OUTPUT_STATE_DEFAULT = GPIO_PIN_OUTPUT_STATE_ACTIVE_LOW
};
enum gpio_generic {
GPIO_GENERIC_UNKNOWN = (-1),
GPIO_GENERIC_A,
GPIO_GENERIC_B,
GPIO_GENERIC_C,
GPIO_GENERIC_D,
GPIO_GENERIC_E,
GPIO_GENERIC_F,
GPIO_GENERIC_G,
GPIO_GENERIC_COUNT,
GPIO_GENERIC_MIN = GPIO_GENERIC_A,
GPIO_GENERIC_MAX = GPIO_GENERIC_B
};
enum gpio_hpd {
GPIO_HPD_UNKNOWN = (-1),
GPIO_HPD_1,
GPIO_HPD_2,
GPIO_HPD_3,
GPIO_HPD_4,
GPIO_HPD_5,
GPIO_HPD_6,
GPIO_HPD_COUNT,
GPIO_HPD_MIN = GPIO_HPD_1,
GPIO_HPD_MAX = GPIO_HPD_6
};
enum gpio_gpio_pad {
GPIO_GPIO_PAD_UNKNOWN = (-1),
GPIO_GPIO_PAD_0,
GPIO_GPIO_PAD_1,
GPIO_GPIO_PAD_2,
GPIO_GPIO_PAD_3,
GPIO_GPIO_PAD_4,
GPIO_GPIO_PAD_5,
GPIO_GPIO_PAD_6,
GPIO_GPIO_PAD_7,
GPIO_GPIO_PAD_8,
GPIO_GPIO_PAD_9,
GPIO_GPIO_PAD_10,
GPIO_GPIO_PAD_11,
GPIO_GPIO_PAD_12,
GPIO_GPIO_PAD_13,
GPIO_GPIO_PAD_14,
GPIO_GPIO_PAD_15,
GPIO_GPIO_PAD_16,
GPIO_GPIO_PAD_17,
GPIO_GPIO_PAD_18,
GPIO_GPIO_PAD_19,
GPIO_GPIO_PAD_20,
GPIO_GPIO_PAD_21,
GPIO_GPIO_PAD_22,
GPIO_GPIO_PAD_23,
GPIO_GPIO_PAD_24,
GPIO_GPIO_PAD_25,
GPIO_GPIO_PAD_26,
GPIO_GPIO_PAD_27,
GPIO_GPIO_PAD_28,
GPIO_GPIO_PAD_29,
GPIO_GPIO_PAD_30,
GPIO_GPIO_PAD_COUNT,
GPIO_GPIO_PAD_MIN = GPIO_GPIO_PAD_0,
GPIO_GPIO_PAD_MAX = GPIO_GPIO_PAD_30
};
enum gpio_vip_pad {
GPIO_VIP_PAD_UNKNOWN = (-1),
/* following never used -
* GPIO_ID_DDC_CLOCK::GPIO_DDC_LINE_VIP_PAD defined instead */
GPIO_VIP_PAD_SCL,
/* following never used -
* GPIO_ID_DDC_DATA::GPIO_DDC_LINE_VIP_PAD defined instead */
Annotation
- Detected declarations: `struct gpio_pin_info`, `struct gpio_ddc_config`, `struct gpio_hpd_config`, `struct gpio_generic_mux_config`, `struct gpio_gsl_mux_config`, `struct gpio_config_data`, `enum gpio_result`, `enum gpio_id`, `enum gpio_pin_output_state`, `enum gpio_generic`.
- 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.