drivers/misc/mei/vsc-tp.h
Source file repositories/reference/linux-study-clean/drivers/misc/mei/vsc-tp.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/misc/mei/vsc-tp.h- Extension
.h- Size
- 1348 bytes
- Lines
- 51
- Domain
- Driver Families
- Bucket
- drivers/misc
- 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.h
Detected Declarations
struct vsc_tp
Annotated Snippet
#ifndef _VSC_TP_H_
#define _VSC_TP_H_
#include <linux/types.h>
#define VSC_TP_CMD_WRITE 0x01
#define VSC_TP_CMD_READ 0x02
#define VSC_TP_CMD_ACK 0x10
#define VSC_TP_CMD_NACK 0x11
#define VSC_TP_CMD_BUSY 0x12
struct vsc_tp;
/**
* typedef vsc_event_cb_t - event callback function signature
* @context: the execution context of who registered this callback
*
* The callback function is called in interrupt context and the data
* payload is only valid during the call. If the user needs access
* the data payload later, it must copy the payload.
*/
typedef void (*vsc_tp_event_cb_t)(void *context);
int vsc_tp_rom_xfer(struct vsc_tp *tp, const void *obuf, void *ibuf,
size_t len);
int vsc_tp_xfer(struct vsc_tp *tp, u8 cmd, const void *obuf, size_t olen,
void *ibuf, size_t ilen);
int vsc_tp_register_event_cb(struct vsc_tp *tp, vsc_tp_event_cb_t event_cb,
void *context);
void vsc_tp_intr_enable(struct vsc_tp *tp);
void vsc_tp_intr_disable(struct vsc_tp *tp);
void vsc_tp_intr_synchronize(struct vsc_tp *tp);
void vsc_tp_reset(struct vsc_tp *tp);
bool vsc_tp_need_read(struct vsc_tp *tp);
int vsc_tp_init(struct vsc_tp *tp, struct device *dev);
#endif
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct vsc_tp`.
- Atlas domain: Driver Families / drivers/misc.
- 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.