kernel_samsung_a53x/include/linux/dev_ril_bridge.h

51 lines
1.5 KiB
C
Raw Normal View History

2024-06-15 21:02:09 +02:00
/*
* Copyright (C) 2017 Samsung Electronics.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* 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.
*
*/
#ifndef __DEV_RIL_BRIDGE_H__
#define __DEV_RIL_BRIDGE_H__
#define IPC_SYSTEM_CP_CHANNEL_INFO 0x01
#define IPC_SYSTEM_CHARGING_DOCK_INFO 0x02
#define IPC_SYSTEM_CP_ADAPTIVE_MIPI_INFO 0x05
struct __packed sipc_fmt_hdr {
u16 len;
u8 msg_seq;
u8 ack_seq;
u8 main_cmd;
u8 sub_cmd;
u8 cmd_type;
};
struct dev_ril_bridge_msg {
unsigned int dev_id;
unsigned int data_len;
void *data;
};
#if IS_ENABLED(CONFIG_DEV_RIL_BRIDGE)
extern int register_dev_ril_bridge_event_notifier(struct notifier_block *nb);
extern int unregister_dev_ril_bridge_event_notifier(struct notifier_block *nb);
extern int dev_ril_bridge_send_msg(int id, int size, void *buf);
#else
static inline int register_dev_ril_bridge_event_notifier(
struct notifier_block *nb) {return 0;}
static inline int unregister_dev_ril_bridge_event_notifier(
struct notifier_block *nb) {return 0;}
static inline int dev_ril_bridge_send_msg(int id, int size, void *buf) {return 0;}
#endif
#endif/*__DEV_RIL_BRIDGE_H__*/