From: Nolen Johnson Date: Fri, 28 Jun 2024 19:11:45 +0000 (-0400) Subject: rtk: Pull SCO/ACL definitions here X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c6b350bd412a8ca858cfc7e205857a9ccd118787;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_realtek.git rtk: Pull SCO/ACL definitions here * Dropped in QPR2, hold them here until we can properly deprecate. Change-Id: If602ae8782a5f14c344a50ffa747cf9043bedc90 --- diff --git a/rtkbt/code/libbt-vendor/include/hci_definitions.h b/rtkbt/code/libbt-vendor/include/hci_definitions.h new file mode 100644 index 0000000..806efcc --- /dev/null +++ b/rtkbt/code/libbt-vendor/include/hci_definitions.h @@ -0,0 +1,25 @@ +/****************************************************************************** + * + * Copyright (C) 2024 The LineageOS Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ******************************************************************************/ + +/* Message event ID passed from Host/Controller lib to stack */ +#define MSG_HC_TO_STACK_HCI_ACL 0x1100 /* eq. BT_EVT_TO_BTU_HCI_ACL */ +#define MSG_HC_TO_STACK_HCI_SCO 0x1200 /* eq. BT_EVT_TO_BTU_HCI_SCO */ + +/* Message event ID passed from stack to vendor lib */ +#define MSG_STACK_TO_HC_HCI_ACL 0x2100 /* eq. BT_EVT_TO_LM_HCI_ACL */ +#define MSG_STACK_TO_HC_HCI_SCO 0x2200 /* eq. BT_EVT_TO_LM_HCI_SCO */ diff --git a/rtkbt/code/libbt-vendor/include/rtk_btsnoop_net.h b/rtkbt/code/libbt-vendor/include/rtk_btsnoop_net.h index 8fa21d4..2e8d1f7 100755 --- a/rtkbt/code/libbt-vendor/include/rtk_btsnoop_net.h +++ b/rtkbt/code/libbt-vendor/include/rtk_btsnoop_net.h @@ -40,6 +40,7 @@ #include #include #include +#include "hci_definitions.h" #include "hci_h5_int.h" #include #include diff --git a/rtkbt/code/libbt-vendor/src/hci_h5.c b/rtkbt/code/libbt-vendor/src/hci_h5.c index fc59163..24e2cf9 100755 --- a/rtkbt/code/libbt-vendor/src/hci_h5.c +++ b/rtkbt/code/libbt-vendor/src/hci_h5.c @@ -50,6 +50,7 @@ #include #include +#include "hci_definitions.h" #include "hci_h5_int.h" #include "bt_skbuff.h" #include "bt_list.h" diff --git a/rtkbt/code/libbt-vendor/src/rtk_btsnoop_net.c b/rtkbt/code/libbt-vendor/src/rtk_btsnoop_net.c index 27edcd7..521e5f0 100755 --- a/rtkbt/code/libbt-vendor/src/rtk_btsnoop_net.c +++ b/rtkbt/code/libbt-vendor/src/rtk_btsnoop_net.c @@ -16,6 +16,7 @@ * ******************************************************************************/ #define LOG_TAG "rtk_btsnoop_net" +#include "hci_definitions.h" #include "rtk_btsnoop_net.h" #include #include diff --git a/rtkbt/code/libbt-vendor/src/userial_vendor.c b/rtkbt/code/libbt-vendor/src/userial_vendor.c index 16cbe99..23ac394 100755 --- a/rtkbt/code/libbt-vendor/src/userial_vendor.c +++ b/rtkbt/code/libbt-vendor/src/userial_vendor.c @@ -32,6 +32,7 @@ #include #include #include +#include "hci_definitions.h" #include "userial.h" #include "userial_vendor.h" #include "rtk_socket.h"