blob: b06e29377842942d53f1c0a7a1fab40b31676de9 (
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
|
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Chipset module for emulator */
#include <stdio.h>
#include "chipset.h"
#include "common.h"
#include "task.h"
test_mockable void chipset_reset(int cold_reset)
{
fprintf(stderr, "Chipset reset!\n");
}
test_mockable void chipset_force_shutdown(void)
{
/* Do nothing */
}
#ifdef HAS_TASK_CHIPSET
test_mockable int chipset_in_state(int state_mask)
{
return state_mask & CHIPSET_STATE_SOFT_OFF;
}
test_mockable void chipset_task(void)
{
while (1)
task_wait_event(-1);
}
#endif
|