libmetal
Loading...
Searching...
No Matches
metal_bus_ops Struct Reference

#include <device.h>

Data Fields

void(*) bus_close (struct metal_bus *bus)
int(*) dev_open (struct metal_bus *bus, const char *dev_name, struct metal_device **device)
void(*) dev_close (struct metal_bus *bus, struct metal_device *device)
void(*) dev_irq_ack (struct metal_bus *bus, struct metal_device *device, int irq)
int(*) dev_dma_map (struct metal_bus *bus, struct metal_device *device, uint32_t dir, struct metal_sg *sg_in, int nents_in, struct metal_sg *sg_out)
void(*) dev_dma_unmap (struct metal_bus *bus, struct metal_device *device, uint32_t dir, struct metal_sg *sg, int nents)

Detailed Description

Bus operations.

Field Documentation

◆ bus_close

void(*) metal_bus_ops::bus_close(struct metal_bus *bus)

◆ dev_close

void(*) metal_bus_ops::dev_close(struct metal_bus *bus, struct metal_device *device)

◆ dev_dma_map

int(*) metal_bus_ops::dev_dma_map(struct metal_bus *bus, struct metal_device *device, uint32_t dir, struct metal_sg *sg_in, int nents_in, struct metal_sg *sg_out)

◆ dev_dma_unmap

void(*) metal_bus_ops::dev_dma_unmap(struct metal_bus *bus, struct metal_device *device, uint32_t dir, struct metal_sg *sg, int nents)

◆ dev_irq_ack

void(*) metal_bus_ops::dev_irq_ack(struct metal_bus *bus, struct metal_device *device, int irq)

◆ dev_open

int(*) metal_bus_ops::dev_open(struct metal_bus *bus, const char *dev_name, struct metal_device **device)

The documentation for this struct was generated from the following file: