mei_phy.h 730 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __LOCAL_MEI_PHY_H_
  2. #define __LOCAL_MEI_PHY_H_
  3. #include <linux/mei_cl_bus.h>
  4. #include <net/nfc/hci.h>
  5. #define MEI_NFC_HEADER_SIZE 10
  6. #define MEI_NFC_MAX_HCI_PAYLOAD 300
  7. struct nfc_mei_phy {
  8. struct mei_cl_device *device;
  9. struct nfc_hci_dev *hdev;
  10. int powered;
  11. int hard_fault; /*
  12. * < 0 if hardware error occured
  13. * and prevents normal operation.
  14. */
  15. };
  16. extern struct nfc_phy_ops mei_phy_ops;
  17. int nfc_mei_phy_enable(void *phy_id);
  18. void nfc_mei_phy_disable(void *phy_id);
  19. void nfc_mei_event_cb(struct mei_cl_device *device, u32 events, void *context);
  20. struct nfc_mei_phy *nfc_mei_phy_alloc(struct mei_cl_device *device);
  21. void nfc_mei_phy_free(struct nfc_mei_phy *phy);
  22. #endif /* __LOCAL_MEI_PHY_H_ */