49 lines
1.6 KiB
C
49 lines
1.6 KiB
C
/*
|
|
* Copyright (c) 2007-2017 Allwinnertech Co., Ltd.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
/*
|
|
*********************************************************************************************************
|
|
* LINUX-KERNEL
|
|
* AllWinner Linux Platform Develop Kits
|
|
* Kernel Module
|
|
*
|
|
* (c) Copyright 2006-2011, kevin.z China
|
|
* All Rights Reserved
|
|
*
|
|
* File : mem_key.h
|
|
* By : kevin.z
|
|
* Version : v1.0
|
|
* Date : 2011-5-31 15:16
|
|
* Descript:
|
|
* Update : date auther ver notes
|
|
*********************************************************************************************************
|
|
*/
|
|
#ifndef __MEM_KEY_H__
|
|
#define __MEM_KEY_H__
|
|
|
|
/* define key controller registers */
|
|
typedef struct __MEM_KEY_REG {
|
|
/* offset:0x00 */
|
|
volatile __u32 Lradc_Ctrl;
|
|
volatile __u32 Lradc_Intc;
|
|
volatile __u32 Lradc_Ints;
|
|
volatile __u32 Lradc_Data0;
|
|
volatile __u32 Lradc_Data1;
|
|
} __mem_key_reg_t;
|
|
|
|
extern __s32 mem_key_init(void);
|
|
extern __s32 mem_key_exit(void);
|
|
extern __s32 mem_query_key(void);
|
|
|
|
#endif /* __MEM_KEY_H__ */
|