Files

53 lines
1.3 KiB
C

/*
* Copyright (c) 202X Amlogic, Inc. All rights reserved.
*
* This source code is subject to the terms and conditions defined in the
* file 'LICENSE' which is part of this source code package.
*
* Description:
*/
#ifndef __W2_PCIE_BT_H__
#define __W2_PCIE_BT_H__
typedef struct
{
struct cdev dev_cdev;
int dev_major;
struct class *dev_class;
struct device *dev_device;
#ifdef CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND
struct early_suspend early_suspend;
#endif
const unsigned char *iccm_buf;
const unsigned char *dccm_buf;
int irq;
int gpio_num;
unsigned int irq_handle;
struct work_struct wake_work;
struct workqueue_struct *wake_work_wq;
struct input_dev *input_dev;
struct device_link *link;
struct workqueue_struct *resume_wq;
struct work_struct resume_work;
unsigned int antenna;
unsigned int fw_mode;
unsigned int bt_sink;
unsigned int pta_enable;
unsigned int pin_mux;
unsigned int br_digit_gain;
unsigned int edr_digit_gain;
unsigned int fw_log;
unsigned int driver_log;
unsigned int factory;
unsigned int system;
unsigned int isolation;
unsigned char firmware_start;
unsigned int shutdown_value;
} w2_pcie_bt_t;
int amlbt_w2p_init(void);
void amlbt_w2p_exit(void);
#endif