Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

struct_regulator_ops(9) [suse man page]

STRUCT 
REGULATOR_OPS(9) API reference STRUCT REGULATOR_OPS(9) NAME
struct_regulator_ops - regulator operations. SYNOPSIS
struct regulator_ops { int (* list_voltage) (struct regulator_dev *, unsigned selector); int (* set_voltage) (struct regulator_dev *, int min_uV, int max_uV); int (* get_voltage) (struct regulator_dev *); int (* set_current_limit) (struct regulator_dev *,int min_uA, int max_uA); int (* get_current_limit) (struct regulator_dev *); int (* enable) (struct regulator_dev *); int (* disable) (struct regulator_dev *); int (* is_enabled) (struct regulator_dev *); int (* set_mode) (struct regulator_dev *, unsigned int mode); unsigned int (* get_mode) (struct regulator_dev *); int (* enable_time) (struct regulator_dev *); int (* get_status) (struct regulator_dev *); unsigned int (* get_optimum_mode) (struct regulator_dev *, int input_uV,int output_uV, int load_uA); int (* set_suspend_voltage) (struct regulator_dev *, int uV); int (* set_suspend_enable) (struct regulator_dev *); int (* set_suspend_disable) (struct regulator_dev *); int (* set_suspend_mode) (struct regulator_dev *, unsigned int mode); }; MEMBERS
list_voltage Return one of the supported voltages, in microvolts; zero if the selector indicates a voltage that is unusable on this system; or negative errno. Selectors range from zero to one less than regulator_desc.n_voltages. Voltages may be reported in any order. set_voltage Set the voltage for the regulator within the range specified. The driver should select the voltage closest to min_uV. get_voltage Return the currently configured voltage for the regulator. set_current_limit Configure a limit for a current-limited regulator. get_current_limit Get the configured limit for a current-limited regulator. enable Configure the regulator as enabled. disable Configure the regulator as disabled. is_enabled Return 1 if the regulator is enabled, 0 if not. May also return negative errno. set_mode Set the configured operating mode for the regulator. get_mode Get the configured operating mode for the regulator. enable_time Time taken for the regulator voltage output voltage to stabalise after being enabled, in microseconds. get_status Return actual (not as-configured) status of regulator, as a REGULATOR_STATUS value (or negative errno) get_optimum_mode Get the most efficient operating mode for the regulator when running with the specified parameters. set_suspend_voltage Set the voltage for the regulator when the system is suspended. set_suspend_enable Mark the regulator as enabled when the system is suspended. set_suspend_disable Mark the regulator as disabled when the system is suspended. set_suspend_mode Set the operating mode for the regulator when the system is suspended. DESCRIPTION
This struct describes regulator operations which can be implemented by regulator chip drivers. AUTHORS
Liam Girdwood <lrg@slimlogic.co.uk> Author. Mark Brown <broonie@opensource.wolfsonmicro.com> Wolfson Microelectronics, Author. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 STRUCT REGULATOR_OPS(9)

Check Out this Related Man Page

STRUCT 
NAND_ECC_CTRL(9) Structures STRUCT NAND_ECC_CTRL(9) NAME
struct_nand_ecc_ctrl - Control structure for ecc SYNOPSIS
struct nand_ecc_ctrl { nand_ecc_modes_t mode; int steps; int size; int bytes; int total; int prepad; int postpad; struct nand_ecclayout * layout; void (* hwctl) (struct mtd_info *mtd, int mode); int (* calculate) (struct mtd_info *mtd,const uint8_t *dat,uint8_t *ecc_code); int (* correct) (struct mtd_info *mtd, uint8_t *dat,uint8_t *read_ecc,uint8_t *calc_ecc); int (* read_page_raw) (struct mtd_info *mtd,struct nand_chip *chip,uint8_t *buf, int page); void (* write_page_raw) (struct mtd_info *mtd,struct nand_chip *chip,const uint8_t *buf); int (* read_page) (struct mtd_info *mtd,struct nand_chip *chip,uint8_t *buf, int page); int (* read_subpage) (struct mtd_info *mtd,struct nand_chip *chip,uint32_t offs, uint32_t len,uint8_t *buf); void (* write_page) (struct mtd_info *mtd,struct nand_chip *chip,const uint8_t *buf); int (* read_oob) (struct mtd_info *mtd,struct nand_chip *chip,int page,int sndcmd); int (* write_oob) (struct mtd_info *mtd,struct nand_chip *chip,int page); }; MEMBERS
mode ecc mode steps number of ecc steps per page size data bytes per ecc step bytes ecc bytes per step total total number of ecc bytes per page prepad padding information for syndrome based ecc generators postpad padding information for syndrome based ecc generators layout ECC layout control struct pointer hwctl function to control hardware ecc generator. Must only be provided if an hardware ECC is available calculate function for ecc calculation or readback from ecc hardware correct function for ecc correction, matching to ecc generator (sw/hw) read_page_raw function to read a raw page without ECC write_page_raw function to write a raw page without ECC read_page function to read a page according to the ecc generator requirements read_subpage function to read parts of the page covered by ECC. write_page function to write a page according to the ecc generator requirements read_oob function to read chip OOB data write_oob function to write chip OOB data AUTHOR
Thomas Gleixner <tglx@linutronix.de> Author. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 STRUCT NAND_ECC_CTRL(9)
Man Page