drivers/accel/amdxdna/amdxdna_cbuf.h

Source file repositories/reference/linux-study-clean/drivers/accel/amdxdna/amdxdna_cbuf.h

File Facts

System
Linux kernel
Corpus path
drivers/accel/amdxdna/amdxdna_cbuf.h
Extension
.h
Size
606 bytes
Lines
19
Domain
Driver Families
Bucket
drivers/accel
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _AMDXDNA_CBUF_H_
#define _AMDXDNA_CBUF_H_

#include "amdxdna_pci_drv.h"
#include <drm/drm_device.h>
#include <linux/dma-buf.h>

bool amdxdna_use_carveout(struct amdxdna_dev *xdna);
int amdxdna_carveout_init(struct amdxdna_dev *xdna, u64 carveout_addr, u64 carveout_size);
void amdxdna_carveout_fini(struct amdxdna_dev *xdna);
void amdxdna_get_carveout_conf(struct amdxdna_dev *xdna, u64 *addr, u64 *size);
struct dma_buf *amdxdna_get_cbuf(struct drm_device *dev, size_t size, u64 alignment);

#endif

Annotation

Implementation Notes