added driver framework to prepare for driver unification, fixed USB driver, added...
[rpi-open-firmware.git] / drivers / BCM2708PowerManagement.hpp
1 /*
2 * VideoCore4_Drivers
3 * Copyright (c) 2017 Kristina Brooks
4 *
5 * BCM2708 power management driver.
6 */
7
8 #pragma once
9 #include <drivers/IODevice.hpp>
10
11 enum cpr_power_result_t {
12 kCprSuccess = 0,
13 kCprPowOkTimeout,
14 kCprMrDoneTimeout,
15 kCprOscCountTimeout
16 };
17
18 enum cpr_power_domain_t {
19 kCprPowerDomainImage = 0,
20 kCprPowerDomainARM,
21 kCprPowerDomainUSB,
22 kCprPowerDomainVPU1,
23
24 kCprPowerDomain_MAX
25 };
26
27 struct PowerManagementDomain : IODevice {
28 static PowerManagementDomain* getDeviceForDomain(cpr_power_domain_t domain);
29 virtual void setReset() = 0;
30 };
This page took 0.060389 seconds and 4 git commands to generate.