| // Copyright 2017 The Fuchsia Authors | |
| // | |
| // Use of this source code is governed by a MIT-style | |
| // license that can be found in the LICENSE file or at | |
| // https://opensource.org/licenses/MIT | |
| #pragma once | |
| #include <dev/power.h> | |
| #include <zircon/compiler.h> | |
| __BEGIN_CDECLS | |
| // power interface | |
| struct pdev_power_ops { | |
| void (*reboot)(enum reboot_flags flags); | |
| void (*shutdown)(void); | |
| }; | |
| void pdev_register_power(const struct pdev_power_ops* ops); | |
| __END_CDECLS |