cregit-Linux how code gets into the kernel

Release 4.14 arch/mips/include/asm/mach-dec/mc146818rtc.h

/*
 * RTC definitions for DECstation style attached Dallas DS1287 chip.
 *
 * Copyright (C) 1998, 2001 by Ralf Baechle
 * Copyright (C) 1998 by Harald Koerfgen
 * Copyright (C) 2002, 2005  Maciej W. Rozycki
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */
#ifndef __ASM_MIPS_DEC_RTC_DEC_H

#define __ASM_MIPS_DEC_RTC_DEC_H

#include <linux/types.h>
#include <asm/addrspace.h>
#include <asm/dec/system.h>

extern volatile u8 *dec_rtc_base;


#define ARCH_RTC_LOCATION


#define RTC_PORT(x)	CPHYSADDR((long)dec_rtc_base)

#define RTC_IO_EXTENT	dec_kn_slot_size

#define RTC_IOMAPPED	0

#undef RTC_IRQ


#define RTC_DEC_YEAR	0x3f	
/* Where we store the real year on DECs.  */


static inline unsigned char CMOS_READ(unsigned long addr) { return dec_rtc_base[addr * 4]; }

Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton20100.00%1100.00%
Total20100.00%1100.00%


static inline void CMOS_WRITE(unsigned char data, unsigned long addr) { dec_rtc_base[addr * 4] = data; }

Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton24100.00%1100.00%
Total24100.00%1100.00%

#define RTC_ALWAYS_BCD 0 #endif /* __ASM_MIPS_DEC_RTC_DEC_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton4848.48%120.00%
Ralf Bächle4141.41%120.00%
Maciej W. Rozycki88.08%240.00%
Al Viro22.02%120.00%
Total99100.00%5100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.