|
@@ -40,7 +40,7 @@ typedef bool (*pdb_dpm_tcc_func)(struct pdb_config *, enum fusb_typec_current);
|
40
|
40
|
* PD Buddy firmware library device policy manager callback structure
|
41
|
41
|
*
|
42
|
42
|
* Optional functions may be set to NULL if the associated functionality is not
|
43
|
|
- * required.
|
|
43
|
+ * required. (TODO)
|
44
|
44
|
*/
|
45
|
45
|
struct pdb_dpm_callbacks {
|
46
|
46
|
pdb_dpm_eval_cap_func evaluate_capability;
|
|
@@ -48,31 +48,6 @@ struct pdb_dpm_callbacks {
|
48
|
48
|
pdb_dpm_giveback_func giveback_enabled;
|
49
|
49
|
pdb_dpm_tcc_func evaluate_typec_current; /* Optional */
|
50
|
50
|
pdb_dpm_func pd_start; /* Optional */
|
51
|
|
- /* dpm_sink_standby is called in PE_SNK_Select_Capability to ensure power
|
52
|
|
- * consumption is less than 2.5 W.
|
53
|
|
- * - dpm_transition_standby()
|
54
|
|
- */
|
55
|
|
- /* dpm_output_set is called in five places:
|
56
|
|
- * - PS_RDY received → transition sink power supply to our request
|
57
|
|
- * - This could mean what we wanted, or what we had to settle for, so
|
58
|
|
- * we have to remember.
|
59
|
|
- * - dpm_transition_requested()
|
60
|
|
- * - Protocol error in PE_SNK_Transition_Sink
|
61
|
|
- * - Unnecessary? If we really want to be defensive here, just go to
|
62
|
|
- * default output, right? That's what we'll do shortly afterwards
|
63
|
|
- * anyway.
|
64
|
|
- * - dpm_transition_default()
|
65
|
|
- * - GotoMin received and giveback → transition sink to min power
|
66
|
|
- * - dpm_transition_min()
|
67
|
|
- * - Transition sink power supply to match Type-C Current advertisement
|
68
|
|
- * - dpm_transition_typec() (if I don't like it I can change it)
|
69
|
|
- * - Part of dpm_output_default
|
70
|
|
- * - Obsolete (see below)
|
71
|
|
- */
|
72
|
|
- /* dpm_output_default is only called in PE_SNK_Transition_to_Default.
|
73
|
|
- * Should probably be part of new improved replacement for dpm_output_set.
|
74
|
|
- * - dpm_transition_default()
|
75
|
|
- */
|
76
|
51
|
pdb_dpm_func transition_default;
|
77
|
52
|
pdb_dpm_func transition_min; /* Optional if no GiveBack */
|
78
|
53
|
pdb_dpm_func transition_standby;
|