2009-08-17 16:34:14 +02:00
|
|
|
#ifndef __SYS_VM_H__
|
|
|
|
#define __SYS_VM_H__
|
|
|
|
|
2005-09-30 14:47:03 +02:00
|
|
|
/*
|
|
|
|
sys/vm.h
|
|
|
|
*/
|
|
|
|
|
2008-12-11 16:50:33 +01:00
|
|
|
/* MIOCMAP */
|
|
|
|
struct mapreq
|
|
|
|
{
|
|
|
|
void *base;
|
|
|
|
size_t size;
|
|
|
|
off_t offset;
|
|
|
|
int readonly;
|
|
|
|
};
|
|
|
|
|
2008-12-11 15:11:59 +01:00
|
|
|
/* used in ioctl to tty for mapvm map and unmap request. */
|
2008-11-19 13:26:10 +01:00
|
|
|
struct mapreqvm
|
|
|
|
{
|
|
|
|
int flags; /* reserved, must be 0 */
|
2013-03-07 16:55:22 +01:00
|
|
|
phys_bytes phys_offset;
|
2008-11-19 13:26:10 +01:00
|
|
|
size_t size;
|
|
|
|
int readonly;
|
2008-12-11 15:11:59 +01:00
|
|
|
char reserved[36]; /* reserved, must be 0 */
|
|
|
|
void *vaddr;
|
|
|
|
void *vaddr_ret;
|
2008-11-19 13:26:10 +01:00
|
|
|
};
|
2008-12-11 15:11:59 +01:00
|
|
|
|
2009-08-17 16:34:14 +02:00
|
|
|
#endif /* __SYS_VM_H__ */
|