* Add MPC601 versions of BAT_VA_MATCH_P() and BAT_VALID_P().
* Make the extern declaration of the battable array incomplete; a given port might want to use a differently-sized definition to support the 601 BAT implementation, where blocks map up to 8M only.
This commit is contained in:
parent
7c7c319cb3
commit
7e9d845469
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: bat.h,v 1.3 2002/03/02 15:07:35 kleink Exp $ */
|
/* $NetBSD: bat.h,v 1.4 2002/03/25 21:35:45 kleink Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
|
@ -171,8 +171,14 @@ struct bat {
|
||||||
#define BATL601(pa, size, v) \
|
#define BATL601(pa, size, v) \
|
||||||
(((pa) & BAT601_PBN) | (v) | (size))
|
(((pa) & BAT601_PBN) | (v) | (size))
|
||||||
|
|
||||||
|
#define BAT601_VA_MATCH_P(batu, batl, va) \
|
||||||
|
(((~(((batl)&BAT601_BSM)<<17))&(va)&BAT601_BLPI)==((batu)&BAT601_BLPI))
|
||||||
|
|
||||||
|
#define BAT601_VALID_P(batl) \
|
||||||
|
((batl) & BAT601_V)
|
||||||
|
|
||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
extern struct bat battable[16];
|
extern struct bat battable[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _MPC6XX_BAT_H_ */
|
#endif /* _MPC6XX_BAT_H_ */
|
||||||
|
|
Loading…
Reference in New Issue