xref: /linux/drivers/net/wireless/morsemicro/mm81x/ps.h (revision 91ec2035134982b98fab0609a9fd8480e8217dc1)
1*b1906ceaSLachlan Hodges /* SPDX-License-Identifier: GPL-2.0-only */
2*b1906ceaSLachlan Hodges /*
3*b1906ceaSLachlan Hodges  * Copyright (c) 2017-2026 Morse Micro
4*b1906ceaSLachlan Hodges  */
5*b1906ceaSLachlan Hodges 
6*b1906ceaSLachlan Hodges #ifndef _MM81X_PS_H_
7*b1906ceaSLachlan Hodges #define _MM81X_PS_H_
8*b1906ceaSLachlan Hodges 
9*b1906ceaSLachlan Hodges #include "core.h"
10*b1906ceaSLachlan Hodges 
11*b1906ceaSLachlan Hodges /* This should be nominally <= the dynamic ps timeout */
12*b1906ceaSLachlan Hodges #define NETWORK_BUS_TIMEOUT_MS (90)
13*b1906ceaSLachlan Hodges 
14*b1906ceaSLachlan Hodges /* The default period of time to wait to re-evaluate powersave */
15*b1906ceaSLachlan Hodges #define DEFAULT_BUS_TIMEOUT_MS (50)
16*b1906ceaSLachlan Hodges 
17*b1906ceaSLachlan Hodges void mm81x_ps_disable(struct mm81x *mors);
18*b1906ceaSLachlan Hodges void mm81x_ps_enable(struct mm81x *mors);
19*b1906ceaSLachlan Hodges int mm81x_ps_init(struct mm81x *mors);
20*b1906ceaSLachlan Hodges void mm81x_ps_finish(struct mm81x *mors);
21*b1906ceaSLachlan Hodges 
22*b1906ceaSLachlan Hodges #endif /* !_MM81X_PS_H_ */
23