diagmem.h 991 B

123456789101112131415161718192021222324252627
  1. /* Copyright (c) 2008-2013, 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 DIAGMEM_H
  13. #define DIAGMEM_H
  14. #include "diagchar.h"
  15. extern mempool_t *diag_pools_array[NUM_MEMORY_POOLS];
  16. void *diagmem_alloc(struct diagchar_dev *driver, int size, int pool_type);
  17. void diagmem_free(struct diagchar_dev *driver, void *buf, int pool_type);
  18. void diagmem_init(struct diagchar_dev *driver);
  19. void diagmem_exit(struct diagchar_dev *driver, int pool_type);
  20. #ifdef CONFIG_DIAGFWD_BRIDGE_CODE
  21. void diagmem_hsic_init(int index);
  22. #endif
  23. #endif