wpce775x.h 999 B

12345678910111213141516171819202122232425262728293031
  1. /* Quanta EC driver for the Winbond Embedded Controller
  2. *
  3. * Copyright (C) 2009 Quanta Computer Inc.
  4. *
  5. * This software is licensed under the terms of the GNU General Public
  6. * License version 2, as published by the Free Software Foundation, and
  7. * may be copied, distributed, and modified under those terms.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. */
  15. #ifndef WPCE775X_DRV_H
  16. #define WPCE775X_DRV_H
  17. #include <linux/i2c.h>
  18. struct i2c_client *wpce_get_i2c_client(void);
  19. int wpce_smbus_write_word_data(u8 command, u16 value);
  20. struct i2c_client *wpce_get_i2c_client(void);
  21. void wpce_poweroff(void);
  22. void wpce_restart(void);
  23. int wpce_i2c_transfer(struct i2c_msg *msg);
  24. int wpce_smbus_write_word_data(u8 command, u16 value);
  25. int wpce_smbus_write_byte_data(u8 command, u8 value);
  26. #endif