Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *
0004  * Copyright (C) 2010 John Crispin <john@phrozen.org>
0005  */
0006 
0007 #ifndef _LTQ_PROM_H__
0008 #define _LTQ_PROM_H__
0009 
0010 #define LTQ_SYS_TYPE_LEN    0x100
0011 #define LTQ_SYS_REV_LEN     0x10
0012 
0013 struct ltq_soc_info {
0014     unsigned char *name;
0015     unsigned int rev;
0016     unsigned char rev_type[LTQ_SYS_REV_LEN];
0017     unsigned int srev;
0018     unsigned int partnum;
0019     unsigned int type;
0020     unsigned char sys_type[LTQ_SYS_TYPE_LEN];
0021     unsigned char *compatible;
0022 };
0023 
0024 extern void ltq_soc_detect(struct ltq_soc_info *i);
0025 extern void ltq_soc_init(void);
0026 
0027 #endif