exfat_data.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (C) 2012-2013 Samsung Electronics Co., Ltd.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version 2
  7. * of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17. */
  18. #include "exfat_config.h"
  19. #include "exfat_global.h"
  20. #include "exfat_data.h"
  21. #include "exfat_oal.h"
  22. #include "exfat_blkdev.h"
  23. #include "exfat_cache.h"
  24. #include "exfat_nls.h"
  25. #include "exfat_super.h"
  26. #include "exfat.h"
  27. FS_STRUCT_T fs_struct[MAX_DRIVE];
  28. DECLARE_MUTEX(f_sem);
  29. BUF_CACHE_T FAT_cache_array[FAT_CACHE_SIZE];
  30. BUF_CACHE_T FAT_cache_lru_list;
  31. BUF_CACHE_T FAT_cache_hash_list[FAT_CACHE_HASH_SIZE];
  32. DECLARE_MUTEX(b_sem);
  33. BUF_CACHE_T buf_cache_array[BUF_CACHE_SIZE];
  34. BUF_CACHE_T buf_cache_lru_list;
  35. BUF_CACHE_T buf_cache_hash_list[BUF_CACHE_HASH_SIZE];