cregit-Linux how code gets into the kernel

Release 4.14 drivers/bluetooth/btbcm.h

/*
 *
 *  Bluetooth support for Broadcom devices
 *
 *  Copyright (C) 2015  Intel Corporation
 *
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */


#define BCM_UART_CLOCK_48MHZ	0x01

#define BCM_UART_CLOCK_24MHZ	0x02


struct bcm_update_uart_baud_rate {
	
__le16 zero;
	
__le32 baud_rate;

} __packed;


struct bcm_write_uart_clock_setting {
	
__u8 type;

} __packed;


struct bcm_set_sleep_mode {
	
__u8 sleep_mode;
	
__u8 idle_host;
	
__u8 idle_dev;
	
__u8 bt_wake_active;
	
__u8 host_wake_active;
	
__u8 allow_host_sleep;
	
__u8 combine_modes;
	
__u8 tristate_control;
	
__u8 usb_auto_sleep;
	
__u8 usb_resume_timeout;
	
__u8 pulsed_host_wake;
	
__u8 break_to_host;

} __packed;


struct bcm_set_pcm_int_params {
	
__u8 routing;
	
__u8 rate;
	
__u8 frame_sync;
	
__u8 sync_mode;
	
__u8 clock_mode;

} __packed;


struct bcm_set_pcm_format_params {
	
__u8 lsb_first;
	
__u8 fill_value;
	
__u8 fill_method;
	
__u8 fill_num;
	
__u8 right_justify;

} __packed;

#if IS_ENABLED(CONFIG_BT_BCM)

int btbcm_check_bdaddr(struct hci_dev *hdev);
int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr);
int btbcm_patchram(struct hci_dev *hdev, const struct firmware *fw);

int btbcm_setup_patchram(struct hci_dev *hdev);
int btbcm_setup_apple(struct hci_dev *hdev);

int btbcm_initialize(struct hci_dev *hdev, char *fw_name, size_t len);
int btbcm_finalize(struct hci_dev *hdev);

#else


static inline int btbcm_check_bdaddr(struct hci_dev *hdev) { return -EOPNOTSUPP; }

Contributors

PersonTokensPropCommitsCommitProp
Marcel Holtmann16100.00%1100.00%
Total16100.00%1100.00%


static inline int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) { return -EOPNOTSUPP; }

Contributors

PersonTokensPropCommitsCommitProp
Marcel Holtmann21100.00%1100.00%
Total21100.00%1100.00%


static inline int btbcm_patchram(struct hci_dev *hdev, const struct firmware *fw) { return -EOPNOTSUPP; }

Contributors

PersonTokensPropCommitsCommitProp
Marcel Holtmann1986.36%150.00%
Frederic Danis313.64%150.00%
Total22100.00%2100.00%


static inline int btbcm_setup_patchram(struct hci_dev *hdev) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Marcel Holtmann15100.00%1100.00%
Total15100.00%1100.00%


static inline int btbcm_setup_apple(struct hci_dev *hdev) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Marcel Holtmann15100.00%1100.00%
Total15100.00%1100.00%


static inline int btbcm_initialize(struct hci_dev *hdev, char *fw_name, size_t len) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Frederic Danis22100.00%1100.00%
Total22100.00%1100.00%


static inline int btbcm_finalize(struct hci_dev *hdev) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Frederic Danis15100.00%1100.00%
Total15100.00%1100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Marcel Holtmann15045.32%342.86%
Frederic Danis9729.31%342.86%
Ilya Faenson8425.38%114.29%
Total331100.00%7100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.