blob: fe4ce159b614444404506982c7903c6f58782cef [file] [log] [blame]
Vadim Iosevichd50ea462017-03-30 16:19:08 +03001/*
2 * Copyright (c) 2017, The Linux Foundation. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above
10 * copyright notice, this list of conditions and the following
11 * disclaimer in the documentation and/or other materials provided
12 * with the distribution.
13 * * Neither the name of The Linux Foundation nor the names of its
14 * contributors may be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
21 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
24 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
26 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30#include "CommDeviceAccess.h"
31
32CComPortDeviceAccess::CComPortDeviceAccess(const TCHAR* tchDeviceName, DType devType)
33{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +030034 //do something with params
35 (void)tchDeviceName;
36 (void)devType;
37 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
Vadim Iosevichd50ea462017-03-30 16:19:08 +030038}
39
40int CComPortDeviceAccess::InitDevice()
41{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +030042 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
43 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +030044}
45
46CComPortDeviceAccess::~CComPortDeviceAccess()
47{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +030048 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
Vadim Iosevichd50ea462017-03-30 16:19:08 +030049}
50
51int CComPortDeviceAccess::GetType()
52{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +030053 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
54 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +030055}
56
57int CComPortDeviceAccess::CloseDevice()
58{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +030059 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
60 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +030061}
62
63int CComPortDeviceAccess::r2(DWORD addr, DWORD & val)
64{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +030065 //do something with params
66 (void)addr;
67 (void)val;
68 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
69 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +030070}
71
72int CComPortDeviceAccess::w2(DWORD addr, DWORD val)
73{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +030074 //do something with params
75 (void)addr;
76 (void)val;
77 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
78 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +030079}
80
81int CComPortDeviceAccess::w32(DWORD addr, DWORD val)
82{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +030083 //do something with params
84 (void)addr;
85 (void)val;
86 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
87 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +030088}
89
90int CComPortDeviceAccess::rb(DWORD addr, DWORD blockSize, char *arrBlock)
91{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +030092 //do something with params
93 (void)addr;
94 (void)blockSize;
95 (void)arrBlock;
Vadim Iosevichd50ea462017-03-30 16:19:08 +030096
Vadim Iosevich1b1280c2017-05-09 15:16:01 +030097 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
98 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +030099}
100
101int CComPortDeviceAccess::wb(DWORD addr, DWORD blockSize, const char *arrBlock)
102{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300103 //do something with params
104 (void)addr;
105 (void)blockSize;
106 (void)arrBlock;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300107
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300108 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
109 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300110}
111
112int CComPortDeviceAccess::rr(DWORD addr, DWORD num_repeat, DWORD *arrBlock)
113{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300114 //do something with params
115 (void)addr;
116 (void)num_repeat;
117 (void)arrBlock;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300118
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300119 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
120 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300121}
122
123int CComPortDeviceAccess::getFwDbgMsg(FW_DBG_MSG** pMsg)
124{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300125 //do something with params
126 (void)pMsg;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300127
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300128 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
129 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300130}
131
132int CComPortDeviceAccess::clearAllFwDbgMsg()
133{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300134 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
135 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300136}
137
138int CComPortDeviceAccess::do_reset(BOOL bFirstTime)
139{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300140 //do something with params
141 (void)bFirstTime;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300142
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300143 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
144 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300145}
146
147int CComPortDeviceAccess::do_sw_reset()
148{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300149 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
150 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300151}
152
153
154int CComPortDeviceAccess::r32(DWORD addr, DWORD & val)
155{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300156 //do something with params
157 (void)addr;
158 (void)val;
159 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
160 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300161}
162
163int CComPortDeviceAccess::r4(DWORD addr, DWORD & val)
164{
Vadim Iosevich1b1280c2017-05-09 15:16:01 +0300165 //do something with params
166 (void)addr;
167 (void)val;
168 LOG_MESSAGE_ERROR(_T("Not Supported\n"));
169 return 0;
Vadim Iosevichd50ea462017-03-30 16:19:08 +0300170}
171
172
173