blob: 9dc5814520a6342f033e2f5227bba1f2265d0c83 [file] [log] [blame]
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +00001/*
Girish Gowdraa707e7c2019-11-07 11:36:13 +05302 * Copyright 2018-present Open Networking Foundation
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +00003
Girish Gowdraa707e7c2019-11-07 11:36:13 +05304 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +00007
Girish Gowdraa707e7c2019-11-07 11:36:13 +05308 * http://www.apache.org/licenses/LICENSE-2.0
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +00009
Girish Gowdraa707e7c2019-11-07 11:36:13 +053010 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000016#ifndef __TEST_STUB_H__
17#define __TEST_STUB_H__
18
19#include <pthread.h>
20#include <unistd.h>
21#include <stdint.h>
22
23#include "bcmolt_conn_mgr.h"
24#include "bcmcli_session.h"
25#include "bcmos_errno.h"
26
27// defines some stub definitions that are not available to openolt application
28// when compoling in TEST_MODE
29//#define BCMOLT_TM_QUEUE_KEY_TM_Q_SET_ID_DEFAULT 0
30#define MAX_SUPPORTED_PON 16
31
32
33void bcmos_usleep(uint32_t us);
Jason Huang09b73ea2020-01-08 17:52:05 +080034void* bcmos_calloc(uint32_t size);
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000035void bcmos_fastlock_init(bcmos_fastlock *lock, uint32_t flags);
36long bcmos_fastlock_lock(bcmos_fastlock *lock);
37void bcmos_fastlock_unlock(bcmos_fastlock *lock, long flags);
38
39#endif //__TEST_STUB_H__
40