xref: /linux/include/net/bluetooth/iso.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1ccf74f23SLuiz Augusto von Dentz /* SPDX-License-Identifier: GPL-2.0 */
2ccf74f23SLuiz Augusto von Dentz /*
3ccf74f23SLuiz Augusto von Dentz  * BlueZ - Bluetooth protocol stack for Linux
4ccf74f23SLuiz Augusto von Dentz  *
5ccf74f23SLuiz Augusto von Dentz  * Copyright (C) 2022 Intel Corporation
6ccf74f23SLuiz Augusto von Dentz  */
7ccf74f23SLuiz Augusto von Dentz 
8ccf74f23SLuiz Augusto von Dentz #ifndef __ISO_H
9ccf74f23SLuiz Augusto von Dentz #define __ISO_H
10ccf74f23SLuiz Augusto von Dentz 
11ccf74f23SLuiz Augusto von Dentz /* ISO defaults */
12ccf74f23SLuiz Augusto von Dentz #define ISO_DEFAULT_MTU		251
13*f764a6c2SLuiz Augusto von Dentz #define ISO_MAX_NUM_BIS		0x1f
14*f764a6c2SLuiz Augusto von Dentz 
15*f764a6c2SLuiz Augusto von Dentz /* ISO socket broadcast address */
16*f764a6c2SLuiz Augusto von Dentz struct sockaddr_iso_bc {
17*f764a6c2SLuiz Augusto von Dentz 	bdaddr_t	bc_bdaddr;
18*f764a6c2SLuiz Augusto von Dentz 	__u8		bc_bdaddr_type;
19*f764a6c2SLuiz Augusto von Dentz 	__u8		bc_sid;
20*f764a6c2SLuiz Augusto von Dentz 	__u8		bc_num_bis;
21*f764a6c2SLuiz Augusto von Dentz 	__u8		bc_bis[ISO_MAX_NUM_BIS];
22*f764a6c2SLuiz Augusto von Dentz };
23ccf74f23SLuiz Augusto von Dentz 
24ccf74f23SLuiz Augusto von Dentz /* ISO socket address */
25ccf74f23SLuiz Augusto von Dentz struct sockaddr_iso {
26ccf74f23SLuiz Augusto von Dentz 	sa_family_t	iso_family;
27ccf74f23SLuiz Augusto von Dentz 	bdaddr_t	iso_bdaddr;
28ccf74f23SLuiz Augusto von Dentz 	__u8		iso_bdaddr_type;
29*f764a6c2SLuiz Augusto von Dentz 	struct sockaddr_iso_bc iso_bc[];
30ccf74f23SLuiz Augusto von Dentz };
31ccf74f23SLuiz Augusto von Dentz 
32ccf74f23SLuiz Augusto von Dentz #endif /* __ISO_H */
33