1 /*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 #include "hid_liteos_adapter.h"
17
18 #include <hdf_base.h>
19 #include "input_uhdf_log.h"
20 #include <unistd.h>
21 #include <fcntl.h>
22 #include <iostream>
23 #include <sys/ioctl.h>
24 #include <poll.h>
25 #include <memory.h>
26 #include <securec.h>
27
28 #define HDF_LOG_TAG hid_liteos_adapter
29
30 namespace OHOS {
31 namespace HDI {
32 namespace Input {
33 namespace Ddk {
34 namespace V1_1 {
35
GetRawInfo(int32_t fd,HidRawDevInfo & rawDevInfo)36 int32_t LiteosHidOsAdapter::GetRawInfo(int32_t fd, HidRawDevInfo& rawDevInfo)
37 {
38 return HID_DDK_INVALID_OPERATION;
39 }
40
GetRawName(int32_t fd,std::vector<uint8_t> & data)41 int32_t LiteosHidOsAdapter::GetRawName(int32_t fd, std::vector<uint8_t>& data)
42 {
43 return HID_DDK_INVALID_OPERATION;
44 }
45
GetPhysicalAddress(int32_t fd,std::vector<uint8_t> & data)46 int32_t LinuxHidOsAdapter::GetPhysicalAddress(int32_t fd, std::vector<uint8_t>& data)
47 {
48 return HID_DDK_INVALID_OPERATION;
49 }
50
GetRawUniqueId(int32_t fd,std::vector<uint8_t> & data)51 int32_t LinuxHidOsAdapter::GetRawUniqueId(int32_t fd, std::vector<uint8_t>& data)
52 {
53 return HID_DDK_INVALID_OPERATION;
54 }
55
SendReport(int32_t fd,HidReportType reportType,const std::vector<uint8_t> & data)56 int32_t SendReport(int32_t fd, HidReportType reportType, const std::vector<uint8_t>& data)
57 {
58 return HID_DDK_INVALID_OPERATION;
59 }
60
GetReport(int32_t fd,HidReportType reportType,std::vector<uint8_t> & data)61 int32_t GetReport(int32_t fd, HidReportType reportType, std::vector<uint8_t>& data)
62 {
63 return HID_DDK_INVALID_OPERATION;
64 }
65
GetReportDescriptor(int32_t fd,std::vector<uint8_t> & data,uint32_t & bytesRead)66 int32_t GetReportDescriptor(int32_t fd, std::vector<uint8_t>& data, uint32_t& bytesRead)
67 {
68 return HID_DDK_INVALID_OPERATION;
69 }
70
71 } // V1_1
72 } // Ddk
73 } // Input
74 } // HDI
75 } // OHOS
76