drivers/staging/vc04_services/bcm2835-audio/vc_vchi_audioserv_defs.h
Source file repositories/reference/linux-study-clean/drivers/staging/vc04_services/bcm2835-audio/vc_vchi_audioserv_defs.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/vc04_services/bcm2835-audio/vc_vchi_audioserv_defs.h- Extension
.h- Size
- 2148 bytes
- Lines
- 99
- 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
struct vc_audio_configstruct vc_audio_controlstruct vc_audio_openstruct vc_audio_closestruct vc_audio_startstruct vc_audio_stopstruct vc_audio_writestruct vc_audio_resultstruct vc_audio_completestruct vc_audio_msgenum vc_audio_msg_type
Annotated Snippet
struct vc_audio_config {
u32 channels;
u32 samplerate;
u32 bps;
};
struct vc_audio_control {
u32 volume;
u32 dest;
};
struct vc_audio_open {
u32 dummy;
};
struct vc_audio_close {
u32 dummy;
};
struct vc_audio_start {
u32 dummy;
};
struct vc_audio_stop {
u32 draining;
};
/* configure the write audio samples */
struct vc_audio_write {
u32 count; // in bytes
u32 cookie1;
u32 cookie2;
s16 silence;
s16 max_packet;
};
/* Generic result for a request (VC->HOST) */
struct vc_audio_result {
s32 success; // Success value
};
/* Generic result for a request (VC->HOST) */
struct vc_audio_complete {
s32 count; // Success value
u32 cookie1;
u32 cookie2;
};
/* Message header for all messages in HOST->VC direction */
struct vc_audio_msg {
s32 type; /* Message type (VC_AUDIO_MSG_TYPE) */
union {
struct vc_audio_config config;
struct vc_audio_control control;
struct vc_audio_open open;
struct vc_audio_close close;
struct vc_audio_start start;
struct vc_audio_stop stop;
struct vc_audio_write write;
struct vc_audio_result result;
struct vc_audio_complete complete;
};
};
#endif /* _VC_AUDIO_DEFS_H_ */
Annotation
- Detected declarations: `struct vc_audio_config`, `struct vc_audio_control`, `struct vc_audio_open`, `struct vc_audio_close`, `struct vc_audio_start`, `struct vc_audio_stop`, `struct vc_audio_write`, `struct vc_audio_result`, `struct vc_audio_complete`, `struct vc_audio_msg`.
- 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.