6 #define PHYSMEM_MAJOR 122
7 #define PHYSMEM_NAME "physmem"
9 #define PHYSMEM_4GB 0x100000000ULL
10 #define PHYSMEM_2GB 0x080000000L
11 #define PHYSMEM_96MB 0x006000000L
12 #define PHYSMEM_16MB 0x001000000L
14 #define PHYSMEM_MAXDEVICE 2 // physmem0, physmem1
16 #define PHYSMEM_GETADDR _IOR('x', 1, u_long) // get physical address
17 #define PHYSMEM_GETSIZE _IOR('x', 2, u_long) // get size in bytes