You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
507 B
24 lines
507 B
20 years ago
|
#ifndef __H8300_VIRT_CONVERT__
|
||
|
#define __H8300_VIRT_CONVERT__
|
||
|
|
||
|
/*
|
||
|
* Macros used for converting between virtual and physical mappings.
|
||
|
*/
|
||
|
|
||
|
#ifdef __KERNEL__
|
||
|
|
||
|
#include <linux/config.h>
|
||
|
#include <asm/setup.h>
|
||
|
#include <asm/page.h>
|
||
|
|
||
|
#define mm_ptov(vaddr) ((void *) (vaddr))
|
||
|
#define mm_vtop(vaddr) ((unsigned long) (vaddr))
|
||
|
#define phys_to_virt(vaddr) ((void *) (vaddr))
|
||
|
#define virt_to_phys(vaddr) ((unsigned long) (vaddr))
|
||
|
|
||
|
#define virt_to_bus virt_to_phys
|
||
|
#define bus_to_virt phys_to_virt
|
||
|
|
||
|
#endif
|
||
|
#endif
|