insert macro to protect itself against multiple includion.
This commit is contained in:
parent
3dc865b386
commit
edcaa77675
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: ixp12x0_clkreg.h,v 1.2 2003/02/17 20:51:52 ichiro Exp $ */
|
/* $NetBSD: ixp12x0_clkreg.h,v 1.3 2003/03/06 06:14:16 igy Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002
|
* Copyright (c) 2002
|
||||||
|
@ -40,8 +40,8 @@
|
||||||
* TIMER_4 v0xf0010360 p0x42000360
|
* TIMER_4 v0xf0010360 p0x42000360
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _IXP12X0_TIMERREG_H_
|
#ifndef _IXP12X0_CLKREG_H_
|
||||||
#define _IXP12X0_TIMERREG_H_
|
#define _IXP12X0_CLKREG_H_
|
||||||
|
|
||||||
#include <arm/ixp12x0/ixp12x0reg.h>
|
#include <arm/ixp12x0/ixp12x0reg.h>
|
||||||
|
|
||||||
|
@ -121,4 +121,4 @@
|
||||||
#define RTC_ALM 0x90003000
|
#define RTC_ALM 0x90003000
|
||||||
#define RTC_RTC_ALARM 0xffffffff
|
#define RTC_RTC_ALARM 0xffffffff
|
||||||
|
|
||||||
#endif /* _IXP12X0_TIMERREG_H_ */
|
#endif /* _IXP12X0_CLKREG_H_ */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: ixp12x0_comreg.h,v 1.6 2003/02/22 05:32:00 igy Exp $ */
|
/* $NetBSD: ixp12x0_comreg.h,v 1.7 2003/03/06 06:14:16 igy Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002
|
* Copyright (c) 2002
|
||||||
|
@ -39,6 +39,9 @@
|
||||||
* UART_DR 0x90003C00
|
* UART_DR 0x90003C00
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _IXP12X0_COMREG_H_
|
||||||
|
#define _IXP12X0_COMREG_H_
|
||||||
|
|
||||||
#define IXPCOM_FREQ (3686400 / 16)
|
#define IXPCOM_FREQ (3686400 / 16)
|
||||||
#define IXPCOMSPEED(b) (IXPCOM_FREQ / (b) - 1)
|
#define IXPCOMSPEED(b) (IXPCOM_FREQ / (b) - 1)
|
||||||
#define IXPCOMSPEED2BRD(b) (IXPCOMSPEED(b) << 16)
|
#define IXPCOMSPEED2BRD(b) (IXPCOMSPEED(b) << 16)
|
||||||
|
@ -92,3 +95,5 @@
|
||||||
|
|
||||||
#define IXPCOMSPLRAISED (~(CR_RIE | CR_XIE))
|
#define IXPCOMSPLRAISED (~(CR_RIE | CR_XIE))
|
||||||
#define IXPCOMSPLLOWERD (~0UL);
|
#define IXPCOMSPLLOWERD (~0UL);
|
||||||
|
|
||||||
|
#endif /* _IXP12X0_COMREG_H_ */
|
||||||
|
|
Loading…
Reference in New Issue