blob: 764a1a89604543f13b4737e95c6c8c79aa3863c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*
* Google LWIS Declarations of Platform-specific Functions
*
* Copyright (c) 2018 Google, LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef LWIS_PLATFORM_H_
#define LWIS_PLATFORM_H_
#include "lwis_device.h"
/*
* lwis_platform_probe: handles platform-specific parts of
* device init
*/
int lwis_platform_probe(struct lwis_device *lwis_dev);
/*
* lwis_platform_device_enable: handles platform-specific parts of
* device enable
*/
int lwis_platform_device_enable(struct lwis_device *lwis_dev);
/*
* lwis_platform_device_disable: handles platform-specific parts of
* device disable
*/
int lwis_platform_device_disable(struct lwis_device *lwis_dev);
/*
* lwis_platform_update_qos: handles platform-specific parts of
* updating qos requirements. "value" is in KHz.
*/
int lwis_platform_update_qos(struct lwis_device *lwis_dev, int value,
enum lwis_clock_family clock_family);
/*
* lwis_platform_remove_qos: handles platform-specific parts of
* removing qos requirements.
*/
int lwis_platform_remove_qos(struct lwis_device *lwis_dev);
/*
* lwis_platform_update_bts: handles platform-specific parts of
* updating bts requirement.
*/
int lwis_platform_update_bts(struct lwis_device *lwis_dev, unsigned int bw_kb_peak,
unsigned int bw_kb_read, unsigned int bw_kb_write,
unsigned int bw_kb_rt);
#endif /* LWIS_PLATFORM_H_ */
|