diag_masks.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef DIAG_MASKS_H
  13. #define DIAG_MASKS_H
  14. #include "diagfwd.h"
  15. struct diag_log_mask_t {
  16. uint8_t equip_id;
  17. uint32_t num_items;
  18. uint8_t ptr[MAX_ITEMS_PER_EQUIP_ID];
  19. } __packed;
  20. void diag_send_event_mask_update(struct diag_smd_info *smd_info, int num_bytes);
  21. void diag_send_msg_mask_update(struct diag_smd_info *smd_info, int ssid_first,
  22. int ssid_last, int proc);
  23. void diag_send_log_mask_update(struct diag_smd_info *smd_info, int);
  24. void diag_mask_update_fn(struct work_struct *work);
  25. void diag_send_feature_mask_update(struct diag_smd_info *smd_info);
  26. int diag_process_apps_masks(unsigned char *buf, int len);
  27. void diag_masks_init(void);
  28. void diag_masks_exit(void);
  29. extern int diag_event_num_bytes;
  30. #endif