cfsrvl.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) ST-Ericsson AB 2010
  3. * Author: Sjur Brendeland/sjur.brandeland@stericsson.com
  4. * License terms: GNU General Public License (GPL) version 2
  5. */
  6. #ifndef CFSRVL_H_
  7. #define CFSRVL_H_
  8. #include <linux/list.h>
  9. #include <linux/stddef.h>
  10. #include <linux/types.h>
  11. struct cfsrvl {
  12. struct cflayer layer;
  13. bool open;
  14. bool phy_flow_on;
  15. bool modem_flow_on;
  16. struct dev_info dev_info;
  17. };
  18. struct cflayer *cfvei_create(u8 linkid, struct dev_info *dev_info);
  19. struct cflayer *cfdgml_create(u8 linkid, struct dev_info *dev_info);
  20. struct cflayer *cfutill_create(u8 linkid, struct dev_info *dev_info);
  21. struct cflayer *cfvidl_create(u8 linkid, struct dev_info *dev_info);
  22. struct cflayer *cfrfml_create(u8 linkid, struct dev_info *dev_info);
  23. struct cflayer *cfdbgl_create(u8 linkid, struct dev_info *dev_info);
  24. bool cfsrvl_phyid_match(struct cflayer *layer, int phyid);
  25. void cfservl_destroy(struct cflayer *layer);
  26. void cfsrvl_init(struct cfsrvl *service,
  27. u8 channel_id,
  28. struct dev_info *dev_info);
  29. bool cfsrvl_ready(struct cfsrvl *service, int *err);
  30. u8 cfsrvl_getphyid(struct cflayer *layer);
  31. #endif /* CFSRVL_H_ */