Changeset 347
- Timestamp:
- Apr 21, 2008, 2:46:45 AM (17 years ago)
- Location:
- GPL/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/include/asm/page.h
r32 r347 1 /* $Id: page.h,v 1.1.1.1 2003/07/02 13:56:58 eleph Exp $ */2 1 3 2 #ifndef _I386_PAGE_H … … 35 34 #endif 36 35 37 typedef struct { unsigned long pgprot; } pgprot_t;36 typedef struct { unsigned long long pgprot; } pgprot_t; 38 37 39 38 #define pte_val(x) ((x).pte) … … 42 41 #define pgprot_val(x) ((x).pgprot) 43 42 44 #define __pgprot(x) ((pgprot_t) { (x) } ) 43 pgprot_t __pgprot(int x); 45 44 46 45 #endif /* !__ASSEMBLY__ */ … … 69 68 #define MAP_NR(addr) (__pa(addr) >> PAGE_SHIFT) 70 69 #define PHYSMAP_NR(addr) ((unsigned long)(addr) >> PAGE_SHIFT) 70 #ifndef virt_to_page 71 #define virt_to_page(x) (&mem_map[MAP_NR(x)]) 72 #endif 71 73 72 74 #endif /* __KERNEL__ */ -
GPL/trunk/include/linux/config.h
r32 r347 1 /* $Id: config.h,v 1.1.1.1 2003/07/02 13:57:00 eleph Exp $ */2 1 3 2 #ifndef _LINUX_CONFIG_H 4 3 #define _LINUX_CONFIG_H 5 4 5 /* __user not supported in OpenWatcom */ 6 #ifndef __user 7 #define __user 6 8 #endif 9 10 #endif /* _LINUX_CONFIG_H */ -
GPL/trunk/include/linux/mm.h
r32 r347 135 135 extern unsigned long virt_to_phys(void * address); 136 136 137 extern mem_map_t *virt_to_page(int x);138 139 137 extern void * phys_to_virt(unsigned long address); 140 138 … … 161 159 void (*open)(struct vm_area_struct * area); 162 160 void (*close)(struct vm_area_struct * area); 163 void (*unmap)(struct vm_area_struct *area, unsigned long, size_t);164 void (*protect)(struct vm_area_struct *area, unsigned long, size_t, unsigned int newprot);165 int (*sync)(struct vm_area_struct *area, unsigned long, size_t, unsigned int flags);166 void (*advise)(struct vm_area_struct *area, unsigned long, size_t, unsigned int advise);167 161 struct page * (*nopage)(struct vm_area_struct * area, unsigned long address, int write_access); 168 162 struct page * (*wppage)(struct vm_area_struct * area, unsigned long address, struct page * page); -
GPL/trunk/include/linux/vmalloc.h
r32 r347 6 6 7 7 //#include <asm/pgtable.h> 8 9 /* bits in vm_struct->flags */ 10 #define VM_IOREMAP 0x00000001 /* ioremap() and friends */ 11 #define VM_ALLOC 0x00000002 /* vmalloc() */ 12 #define VM_MAP 0x00000004 /* vmap()ed pages */ 13 #define VM_USERMAP 0x00000008 /* suitable for remap_vmalloc_range */ 14 #define VM_VPAGES 0x00000010 /* buffer for pages was vmalloc'ed */ 15 /* bits [20..32] reserved for arch specific ioremap internals */ 8 16 9 17 struct vm_struct { -
GPL/trunk/lib32/misc.c
r73 r347 120 120 //****************************************************************************** 121 121 //****************************************************************************** 122 mem_map_t *virt_to_page(int x) 123 { 124 static mem_map_t map = {0}; 125 return ↦ 122 pgprot_t __pgprot(int x) 123 { 124 unsigned long long cast_x; 125 pgprot_t pg; 126 cast_x = (unsigned long long) (x); 127 pg.pgprot = cast_x; 128 return (pg); 126 129 } 127 130 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.