version 1.16, 2003/02/03 05:15:53 |
version 1.17, 2003/03/04 07:50:58 |
|
|
#define _POWERPC_PARAM_H |
#define _POWERPC_PARAM_H |
|
|
#ifdef _KERNEL |
#ifdef _KERNEL |
|
#if defined(_KERNEL_OPT) |
|
#include "opt_ppcarch.h" |
|
#endif |
#ifndef _LOCORE |
#ifndef _LOCORE |
#include <machine/cpu.h> |
#include <machine/cpu.h> |
#endif /* _LOCORE */ |
#endif /* _LOCORE */ |
|
|
|
|
#define ALIGNBYTES (sizeof(double) - 1) |
#define ALIGNBYTES (sizeof(double) - 1) |
#define ALIGN(p) (((u_long)(p) + ALIGNBYTES) & ~ALIGNBYTES) |
#define ALIGN(p) (((u_long)(p) + ALIGNBYTES) & ~ALIGNBYTES) |
#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0) |
#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0) |
|
|
|
#ifdef PPC_IBM4XX |
|
#define PGSHIFT 14 /* Use 16KB to reduce TLB thrashing */ |
|
#define UPAGES 1 |
|
#else |
#define PGSHIFT 12 |
#define PGSHIFT 12 |
|
#define UPAGES 4 |
|
#endif |
#define NBPG (1 << PGSHIFT) /* Page size */ |
#define NBPG (1 << PGSHIFT) /* Page size */ |
#define PGOFSET (NBPG - 1) |
#define PGOFSET (NBPG - 1) |
|
|
|
|
#define MAXPHYS (64 * 1024) /* max raw I/O transfer size */ |
#define MAXPHYS (64 * 1024) /* max raw I/O transfer size */ |
#endif |
#endif |
|
|
#define UPAGES 4 |
|
#define USPACE (UPAGES * NBPG) |
#define USPACE (UPAGES * NBPG) |
|
|
#ifndef MSGBUFSIZE |
#ifndef MSGBUFSIZE |