Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/extres/regulator/regnode_if.m
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
# Returns 0 on success or a standard errno value. | # Returns 0 on success or a standard errno value. | ||||
# | # | ||||
METHOD int get_voltage { | METHOD int get_voltage { | ||||
struct regnode *regnode; | struct regnode *regnode; | ||||
int *uvolt; | int *uvolt; | ||||
}; | }; | ||||
# | # | ||||
# Check if a given voltage is supported by the regulator | |||||
# Returns 0 on success or a standard errno value. | |||||
# | |||||
METHOD int check_voltage { | |||||
struct regnode *regnode; | |||||
int uvolt; | |||||
}; | |||||
# | |||||
# Stop (shutdown) regulator | # Stop (shutdown) regulator | ||||
# Returns 0 on success or a standard errno value. | # Returns 0 on success or a standard errno value. | ||||
# | # | ||||
METHOD int stop { | METHOD int stop { | ||||
struct regnode *regnode; | struct regnode *regnode; | ||||
int *udelay; | int *udelay; | ||||
} DEFAULT regnode_default_stop; | } DEFAULT regnode_default_stop; |