]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/IndustryStandard/Bluetooth.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Bluetooth.h
CommitLineData
362c355c
QS
1/** @file\r
2 This file contains the Bluetooth definitions that are consumed by drivers.\r
3 These definitions are from Bluetooth Core Specification Version 4.0 June, 2010\r
4\r
ff5623e9 5 Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
9344f092 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
362c355c
QS
7\r
8**/\r
9\r
10#ifndef _BLUETOOTH_H_\r
11#define _BLUETOOTH_H_\r
12\r
13#pragma pack(1)\r
14\r
15///\r
16/// BLUETOOTH_ADDRESS\r
17///\r
18typedef struct {\r
19 ///\r
20 /// 48bit Bluetooth device address.\r
21 ///\r
2f88bd3a 22 UINT8 Address[6];\r
362c355c
QS
23} BLUETOOTH_ADDRESS;\r
24\r
25///\r
26/// BLUETOOTH_CLASS_OF_DEVICE. See Bluetooth specification for detail.\r
27///\r
28typedef struct {\r
2f88bd3a
MK
29 UINT8 FormatType : 2;\r
30 UINT8 MinorDeviceClass : 6;\r
31 UINT16 MajorDeviceClass : 5;\r
32 UINT16 MajorServiceClass : 11;\r
362c355c
QS
33} BLUETOOTH_CLASS_OF_DEVICE;\r
34\r
ff5623e9
RN
35///\r
36/// BLUETOOTH_LE_ADDRESS\r
37///\r
38typedef struct {\r
39 ///\r
40 /// 48-bit Bluetooth device address\r
41 ///\r
2f88bd3a 42 UINT8 Address[6];\r
ff5623e9
RN
43 ///\r
44 /// 0x00 - Public Device Address\r
45 /// 0x01 - Random Device Address\r
46 ///\r
2f88bd3a 47 UINT8 Type;\r
ff5623e9
RN
48} BLUETOOTH_LE_ADDRESS;\r
49\r
362c355c
QS
50#pragma pack()\r
51\r
2f88bd3a 52#define BLUETOOTH_HCI_COMMAND_LOCAL_READABLE_NAME_MAX_SIZE 248\r
362c355c 53\r
2f88bd3a 54#define BLUETOOTH_HCI_LINK_KEY_SIZE 16\r
362c355c
QS
55\r
56#endif\r