i2c_ec.h 543 B

1234567891011121314151617181920212223
  1. /*
  2. * SMBus driver for ACPI Embedded Controller ($Revision: 1.2 $)
  3. *
  4. * Copyright (c) 2002, 2005 Ducrot Bruno
  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 version 2.
  9. */
  10. struct acpi_ec_smbus {
  11. struct i2c_adapter adapter;
  12. union acpi_ec *ec;
  13. int base;
  14. int alert;
  15. };
  16. struct acpi_ec_hc {
  17. acpi_handle handle;
  18. struct acpi_ec_smbus *smbus;
  19. };
  20. struct acpi_ec_hc *acpi_get_ec_hc(struct acpi_device *device);