bulkmem.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * bulkmem.h -- Definitions for bulk memory services
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * The initial developer of the original code is David A. Hinds
  9. * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds
  10. * are Copyright (C) 1999 David A. Hinds. All Rights Reserved.
  11. *
  12. * (C) 1999 David A. Hinds
  13. */
  14. #ifndef _LINUX_BULKMEM_H
  15. #define _LINUX_BULKMEM_H
  16. /* For GetFirstRegion and GetNextRegion */
  17. typedef struct region_info_t {
  18. u_int Attributes;
  19. u_int CardOffset;
  20. u_int RegionSize;
  21. u_int AccessSpeed;
  22. u_int BlockSize;
  23. u_int PartMultiple;
  24. u_char JedecMfr, JedecInfo;
  25. memory_handle_t next;
  26. } region_info_t;
  27. #define REGION_TYPE 0x0001
  28. #define REGION_TYPE_CM 0x0000
  29. #define REGION_TYPE_AM 0x0001
  30. #define REGION_PREFETCH 0x0008
  31. #define REGION_CACHEABLE 0x0010
  32. #define REGION_BAR_MASK 0xe000
  33. #define REGION_BAR_SHIFT 13
  34. int pcmcia_get_first_region(struct pcmcia_device *handle, region_info_t *rgn);
  35. int pcmcia_get_next_region(struct pcmcia_device *handle, region_info_t *rgn);
  36. #endif /* _LINUX_BULKMEM_H */