]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/reboot-mode.h
arm/arm64: smccc: Implement SMCCC v1.1 inline primitive
[mirror_ubuntu-artful-kernel.git] / include / linux / reboot-mode.h
CommitLineData
4fcd504e
AY
1#ifndef __REBOOT_MODE_H__
2#define __REBOOT_MODE_H__
3
4struct reboot_mode_driver {
5 struct device *dev;
6 struct list_head head;
7 int (*write)(struct reboot_mode_driver *reboot, unsigned int magic);
8 struct notifier_block reboot_notifier;
9};
10
11int reboot_mode_register(struct reboot_mode_driver *reboot);
12int reboot_mode_unregister(struct reboot_mode_driver *reboot);
c1a9634f
BA
13int devm_reboot_mode_register(struct device *dev,
14 struct reboot_mode_driver *reboot);
15void devm_reboot_mode_unregister(struct device *dev,
16 struct reboot_mode_driver *reboot);
4fcd504e
AY
17
18#endif