48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
/*
|
|
* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/uaccess.h>
|
|
#include <linux/spinlock.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/qdsp6v2/apr.h>
|
|
#include <linux/qdsp6v2/apr_tal.h>
|
|
#include <linux/qdsp6v2/dsp_debug.h>
|
|
|
|
#define DEST_ID APR_DEST_MODEM
|
|
|
|
void apr_set_subsys_state(void)
|
|
{
|
|
apr_set_modem_state(APR_SUBSYS_DOWN);
|
|
}
|
|
|
|
uint16_t apr_get_data_src(struct apr_hdr *hdr)
|
|
{
|
|
return DEST_ID;
|
|
}
|
|
|
|
int apr_get_dest_id(char *dest)
|
|
{
|
|
return DEST_ID;
|
|
}
|
|
|
|
void subsys_notif_register(struct notifier_block *mod_notif,
|
|
struct notifier_block *lp_notif)
|
|
{
|
|
subsys_notif_register_notifier("modem", mod_notif);
|
|
}
|
|
|
|
uint16_t apr_get_reset_domain(uint16_t proc)
|
|
{
|
|
return APR_DEST_QDSP6;
|
|
}
|