#ifndef _COMPAT_FREEBSD_SYS_PARAM_H_
#define _COMPAT_FREEBSD_SYS_PARAM_H_
#ifndef _KERNEL
#define MAXCOMLEN 16
#define MAXPHYS (56 * 1024)
#endif
#define MAXHOSTNAMELEN 256
#define SPECNAMELEN 255
#ifdef _KERNEL
#include <sys/time.h>
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
#endif
#include <machine/param.h>
#define nitems(x) (sizeof((x)) / sizeof((x)[0]))
#define rounddown(x,y) (((x)/(y))*(y))
#define rounddown2(x, y) ((x)&(~((y)-1)))
#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
#define roundup2(x,y) (((x)+((y)-1))&(~((y)-1)))
#define powerof2(x) ((((x)-1)&(x))==0)
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
#define trunc_page(x) ((unsigned long)(x) & ~(PAGE_MASK))
#define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT)
#include_next <sys/param.h>
#endif