// SPDX-License-Identifier: GPL-2.0-only /* * Shared Transport driver * HCI-LL module responsible for TI proprietary HCI_LL protocol * Copyright (C) 2009-2010 Texas Instruments * Author: Pavan Savoy <[email protected]> */ #define pr_fmt(fmt) … #include <linux/skbuff.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/ti_wilink_st.h> /**********************************************************************/ /* internal functions */ static void send_ll_cmd(struct st_data_s *st_data, unsigned char cmd) { … } static void ll_device_want_to_sleep(struct st_data_s *st_data) { … } static void ll_device_want_to_wakeup(struct st_data_s *st_data) { … } /**********************************************************************/ /* functions invoked by ST Core */ /* called when ST Core wants to * enable ST LL */ void st_ll_enable(struct st_data_s *ll) { … } /* called when ST Core /local module wants to * disable ST LL */ void st_ll_disable(struct st_data_s *ll) { … } /* called when ST Core wants to update the state */ void st_ll_wakeup(struct st_data_s *ll) { … } /* called when ST Core wants the state */ unsigned long st_ll_getstate(struct st_data_s *ll) { … } /* called from ST Core, when a PM related packet arrives */ unsigned long st_ll_sleep_state(struct st_data_s *st_data, unsigned char cmd) { … } /* Called from ST CORE to initialize ST LL */ long st_ll_init(struct st_data_s *ll) { … } /* Called from ST CORE to de-initialize ST LL */ long st_ll_deinit(struct st_data_s *ll) { … }