From: Andy P. <at...@us...> - 2002-04-25 09:43:54
|
Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax In directory usw-pr-cvs1:/tmp/cvs-serv2801/include/asm-vax Modified Files: clock.h dz11.h ipc.h ka43.h ka46.h mv.h namei.h semaphore-helper.h semaphore.h vsa.h Added Files: mc146818rtc.h Log Message: RTC clock driver for vaxstations, 2.5 branch. --- NEW FILE --- /* * mc146818.h. macros for /dev/rtc (see drivers/char/rtc.c * and functions in arch/vax/kernel/time.c * * Copyright atp Mar 2002. * * Adapted from asm-mips/mc146818rtc.h for decstations. * * There are two types of "hardware clock" for the VAX family of * systems. These are the TODR (time of day register) used on the * big vaxes, and the standard CMOS clock, which is based on the * familiar dallas chip, used in the desktop vaxes (KA41, 42, etc.. * * This file only addresses the desktop vax CMOS clock. */ #ifndef _ASM_MC146818RTC_H #define _ASM_MC146818RTC_H #include <linux/config.h> #include <asm/mv.h> /* machine vector */ #ifndef RTC_PORT #define RTC_PORT(x) ((x)) #endif /* access macros for the clock page. */ /* -- we should have these in the mv too, perhaps with a * single rtc_ops structure like the mips, which the * mv entry can point at. However at the mo, we only * have a real implementation for the ka4x cmos clock. */ unsigned char ka4x_clock_read(unsigned long addr); void ka4x_clock_write(unsigned char val, unsigned long addr); #define CMOS_READ(addr) ({ \ ka4x_clock_read(addr); \ }) #define CMOS_WRITE(val, addr) ({ \ ka4x_clock_write(val, addr); \ }) #define RTC_ALWAYS_BCD 0 /* for the time being, unless there is a vsbus int for it */ #define RTC_IRQ 0 #endif /* _ASM_MC146818RTC_H */ Index: clock.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/clock.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- clock.h 24 Apr 2002 08:45:16 -0000 1.1.1.1 +++ clock.h 25 Apr 2002 09:43:48 -0000 1.2 @@ -18,5 +18,8 @@ #define ICCS_INTENABLE (0x00000010) /* enable clock interrupts */ #define ICCS_RUN (0x00000001) /* enable counter */ +/* prototypes for clock handling functions in arch/vax/clock.c */ +void generic_clock_init(void); +void ka4x_clock_init(void); #endif /* _VAX_CLOCK_H_ */ Index: dz11.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/dz11.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 Index: ipc.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/ipc.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 Index: ka43.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/ka43.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 Index: ka46.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/ka46.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 Index: mv.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mv.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- mv.h 24 Apr 2002 08:45:16 -0000 1.1.1.1 +++ mv.h 25 Apr 2002 09:43:48 -0000 1.2 @@ -36,6 +36,9 @@ void (*init_devices)(void); /* Optional */ const char * (*cpu_type_str)(void); + /* clock routines */ + void (*clock_init)(void); /* called by time_init() to set up RTC */ + unsigned int *clock_base; /* address of clock page for vsbus RTC */ }; #endif /* !__ASSEMBLY__ */ Index: namei.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/namei.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 Index: semaphore-helper.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/semaphore-helper.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 Index: semaphore.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/semaphore.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 Index: vsa.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/vsa.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- vsa.h 24 Apr 2002 08:45:16 -0000 1.1.1.1 +++ vsa.h 25 Apr 2002 09:43:48 -0000 1.2 @@ -35,6 +35,9 @@ +#define VSA_CLOCK_BASE 0x200b0000 #define VSA_BASE_REGS 0x20080000 #define VSA_KA55_BASE_REGS 0x25c00000 + + #endif |