lin
2025-08-21 57113df3a0e2be01232281fad9a5f2c060567981
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/******************************************************************************
 *
 *  Copyright (C) 2020-2021 SeekWave Technology
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *
 ******************************************************************************/
 
#ifndef __BT_VENDOR_SKW_H__
#define __BT_VENDOR_SKW_H__
 
 
#include "bt_vendor_lib.h"
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
#include <unistd.h>
#include <ctype.h>
#include <cutils/properties.h>
 
 
#define SKW_LIBBT_VERSION "0.2"
 
#define SKWBT_TRANS_TYPE_H4          0x01
#define SKWBT_TRANS_TYPE_UART        0x10
#define SKWBT_TRANS_TYPE_SDIO        0x20
#define SKWBT_TRANS_TYPE_USB         0x40
 
 
#define SKW_CHIPID_6316       0x5301
#define SKW_CHIPID_6160       0x0017
#define SKW_CHIPID_6160_LITE  0x5302
 
 
//#define IOCTL_CMD_WAKEUP_ADV_EN 0x01
#define IOCTL_CMD_LOG_EN_GET    _IOWR('S', 2, uint8_t *)
 
#ifndef FALSE
#define FALSE  0
#endif
 
#ifndef TRUE
#define TRUE   1
#endif
 
 
extern bt_vendor_callbacks_t *bt_vendor_cbacks;
extern char skwbt_transtype;
extern char skwbtuartonly;
extern char skwbtNoSleep;
extern int  btboot_fp;
extern int  btpw_fp;
 
#endif /*BT_UNUSED_H*/