Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef SOUND_FIREWIRE_PACKETS_BUFFER_H_INCLUDED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define SOUND_FIREWIRE_PACKETS_BUFFER_H_INCLUDED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/dma-mapping.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <linux/firewire.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * struct iso_packets_buffer - manages a buffer for many packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  * @iso_buffer: the memory containing the packets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  * @packets: an array, with each element pointing to one packet
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct iso_packets_buffer {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	struct fw_iso_buffer iso_buffer;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	struct {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 		void *buffer;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 		unsigned int offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	} *packets;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 			    unsigned int count, unsigned int packet_size,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 			    enum dma_data_direction direction);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) void iso_packets_buffer_destroy(struct iso_packets_buffer *b,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 				struct fw_unit *unit);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #endif