pmbus.h (6f183d33a02e686608f708ef713b6423db39bcba) pmbus.h (03e9bd8dbcee60c2e22fd54f9f28f0d32da218c3)
1/*
2 * pmbus.h - Common defines and structures for PMBus devices
3 *
4 * Copyright (c) 2010, 2011 Ericsson AB.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 326 unchanged lines hidden (view full) ---

335};
336
337/* Function declarations */
338
339int pmbus_set_page(struct i2c_client *client, u8 page);
340int pmbus_read_word_data(struct i2c_client *client, u8 page, u8 reg);
341int pmbus_write_word_data(struct i2c_client *client, u8 page, u8 reg, u16 word);
342int pmbus_read_byte_data(struct i2c_client *client, int page, u8 reg);
1/*
2 * pmbus.h - Common defines and structures for PMBus devices
3 *
4 * Copyright (c) 2010, 2011 Ericsson AB.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 326 unchanged lines hidden (view full) ---

335};
336
337/* Function declarations */
338
339int pmbus_set_page(struct i2c_client *client, u8 page);
340int pmbus_read_word_data(struct i2c_client *client, u8 page, u8 reg);
341int pmbus_write_word_data(struct i2c_client *client, u8 page, u8 reg, u16 word);
342int pmbus_read_byte_data(struct i2c_client *client, int page, u8 reg);
343int pmbus_write_byte(struct i2c_client *client, int page, u8 value);
343void pmbus_clear_faults(struct i2c_client *client);
344bool pmbus_check_byte_register(struct i2c_client *client, int page, int reg);
345bool pmbus_check_word_register(struct i2c_client *client, int page, int reg);
346int pmbus_do_probe(struct i2c_client *client, const struct i2c_device_id *id,
347 struct pmbus_driver_info *info);
348int pmbus_do_remove(struct i2c_client *client);
349const struct pmbus_driver_info *pmbus_get_driver_info(struct i2c_client
350 *client);
351
352#endif /* PMBUS_H */
344void pmbus_clear_faults(struct i2c_client *client);
345bool pmbus_check_byte_register(struct i2c_client *client, int page, int reg);
346bool pmbus_check_word_register(struct i2c_client *client, int page, int reg);
347int pmbus_do_probe(struct i2c_client *client, const struct i2c_device_id *id,
348 struct pmbus_driver_info *info);
349int pmbus_do_remove(struct i2c_client *client);
350const struct pmbus_driver_info *pmbus_get_driver_info(struct i2c_client
351 *client);
352
353#endif /* PMBUS_H */