diff options
author | M Chetan Kumar <m.chetan.kumar@intel.com> | 2021-06-13 15:50:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-13 23:49:38 +0300 |
commit | 110e6e02eb190ee4a799502d6cfa0f28d4efc294 (patch) | |
tree | 0c23f77342f331adfa3797772e3bc56979ac2dac /drivers/net/wwan/iosm/iosm_ipc_uevent.h | |
parent | 64516f633bfd2f576f3a18fe72184595367d11bf (diff) | |
download | linux-110e6e02eb190ee4a799502d6cfa0f28d4efc294.tar.xz |
net: iosm: uevent support
Report modem status via uevent.
Signed-off-by: M Chetan Kumar <m.chetan.kumar@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_uevent.h')
-rw-r--r-- | drivers/net/wwan/iosm/iosm_ipc_uevent.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/drivers/net/wwan/iosm/iosm_ipc_uevent.h b/drivers/net/wwan/iosm/iosm_ipc_uevent.h new file mode 100644 index 000000000000..2e45c051b5f4 --- /dev/null +++ b/drivers/net/wwan/iosm/iosm_ipc_uevent.h @@ -0,0 +1,41 @@ +/* SPDX-License-Identifier: GPL-2.0-only + * + * Copyright (C) 2020-21 Intel Corporation. + */ + +#ifndef IOSM_IPC_UEVENT_H +#define IOSM_IPC_UEVENT_H + +/* Baseband event strings */ +#define UEVENT_MDM_NOT_READY "MDM_NOT_READY" +#define UEVENT_ROM_READY "ROM_READY" +#define UEVENT_MDM_READY "MDM_READY" +#define UEVENT_CRASH "CRASH" +#define UEVENT_CD_READY "CD_READY" +#define UEVENT_CD_READY_LINK_DOWN "CD_READY_LINK_DOWN" +#define UEVENT_MDM_TIMEOUT "MDM_TIMEOUT" + +/* Maximum length of user events */ +#define MAX_UEVENT_LEN 64 + +/** + * struct ipc_uevent_info - Uevent information structure. + * @dev: Pointer to device structure + * @uevent: Uevent information + * @work: Uevent work struct + */ +struct ipc_uevent_info { + struct device *dev; + char uevent[MAX_UEVENT_LEN]; + struct work_struct work; +}; + +/** + * ipc_uevent_send - Send modem event to user space. + * @dev: Generic device pointer + * @uevent: Uevent information + * + */ +void ipc_uevent_send(struct device *dev, char *uevent); + +#endif |