c05564c4d8
Android 13
50 lines
1.4 KiB
C
Executable file
50 lines
1.4 KiB
C
Executable file
/*
|
|
* Copyright (C) 2019 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
|
|
|
|
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;
|
|
};
|
|
|
|
#ifdef 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__*/
|