2 * bulkmem.h -- Definitions for bulk memory services
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.
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.
12 * (C) 1999 David A. Hinds
15 #ifndef _LINUX_BULKMEM_H
16 #define _LINUX_BULKMEM_H
18 /* For GetFirstRegion and GetNextRegion */
19 typedef struct region_info_t {
26 u_char JedecMfr, JedecInfo;
30 #define REGION_TYPE 0x0001
31 #define REGION_TYPE_CM 0x0000
32 #define REGION_TYPE_AM 0x0001
33 #define REGION_PREFETCH 0x0008
34 #define REGION_CACHEABLE 0x0010
35 #define REGION_BAR_MASK 0xe000
36 #define REGION_BAR_SHIFT 13
38 int pcmcia_get_first_region(client_handle_t handle, region_info_t *rgn);
39 int pcmcia_get_next_region(client_handle_t handle, region_info_t *rgn);
41 #endif /* _LINUX_BULKMEM_H */