#ifndef SOUND_FIREWIRE_PACKETS_BUFFER_H_INCLUDED#define SOUND_FIREWIRE_PACKETS_BUFFER_H_INCLUDED#include <linux/dma-mapping.h>#include <linux/firewire.h>/** * struct iso_packets_buffer - manages a buffer for many packets * @iso_buffer: the memory containing the packets * @packets: an array, with each element pointing to one packet */structiso_packets_buffer{structfw_iso_bufferiso_buffer;struct{void*buffer;unsignedintoffset;}*packets;};intiso_packets_buffer_init(structiso_packets_buffer*b,structfw_unit*unit,unsignedintcount,unsignedintpacket_size,enumdma_data_directiondirection);voidiso_packets_buffer_destroy(structiso_packets_buffer*b,structfw_unit*unit);#endif