1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
2 /* Do not edit directly, auto-generated from: */
3 /*	Documentation/netlink/specs/dpll.yaml */
4 /* YNL-GEN kernel header */
5 
6 #ifndef _LINUX_DPLL_GEN_H
7 #define _LINUX_DPLL_GEN_H
8 
9 #include <net/netlink.h>
10 #include <net/genetlink.h>
11 
12 #include <uapi/linux/dpll.h>
13 
14 /* Common nested types */
15 extern const struct nla_policy dpll_pin_parent_device_nl_policy[DPLL_A_PIN_PHASE_OFFSET + 1];
16 extern const struct nla_policy dpll_pin_parent_pin_nl_policy[DPLL_A_PIN_STATE + 1];
17 
18 int dpll_lock_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
19 		   struct genl_info *info);
20 int dpll_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
21 		  struct genl_info *info);
22 int dpll_pin_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
23 		      struct genl_info *info);
24 void
25 dpll_unlock_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
26 		 struct genl_info *info);
27 void
28 dpll_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
29 	       struct genl_info *info);
30 void
31 dpll_pin_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
32 		   struct genl_info *info);
33 
34 int dpll_nl_device_id_get_doit(struct sk_buff *skb, struct genl_info *info);
35 int dpll_nl_device_get_doit(struct sk_buff *skb, struct genl_info *info);
36 int dpll_nl_device_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
37 int dpll_nl_device_set_doit(struct sk_buff *skb, struct genl_info *info);
38 int dpll_nl_pin_id_get_doit(struct sk_buff *skb, struct genl_info *info);
39 int dpll_nl_pin_get_doit(struct sk_buff *skb, struct genl_info *info);
40 int dpll_nl_pin_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
41 int dpll_nl_pin_set_doit(struct sk_buff *skb, struct genl_info *info);
42 
43 enum {
44 	DPLL_NLGRP_MONITOR,
45 };
46 
47 extern struct genl_family dpll_nl_family;
48 
49 #endif /* _LINUX_DPLL_GEN_H */
50