Deleted Added
full compact
cpuinfo.h (276333) cpuinfo.h (279811)
1/*-
2 * Copyright 2014 Svatopluk Kraus <onwahe@gmail.com>
3 * Copyright 2014 Michal Meloun <meloun@miracle.cz>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright 2014 Svatopluk Kraus <onwahe@gmail.com>
3 * Copyright 2014 Michal Meloun <meloun@miracle.cz>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/arm/include/cpuinfo.h 276333 2014-12-28 18:12:56Z ian $
27 * $FreeBSD: head/sys/arm/include/cpuinfo.h 279811 2015-03-09 14:46:10Z ian $
28 */
29
30#ifndef _MACHINE_CPUINFO_H_
31#define _MACHINE_CPUINFO_H_
32
33#include <sys/types.h>
34
35struct cpuinfo {

--- 41 unchanged lines hidden (view full) ---

77 /* id_mmfr3 */
78 int coherent_walk;
79 int maintenance_broadcast;
80
81 /* id_pfr1 */
82 int generic_timer_ext;
83 int virtualization_ext;
84 int security_ext;
28 */
29
30#ifndef _MACHINE_CPUINFO_H_
31#define _MACHINE_CPUINFO_H_
32
33#include <sys/types.h>
34
35struct cpuinfo {

--- 41 unchanged lines hidden (view full) ---

77 /* id_mmfr3 */
78 int coherent_walk;
79 int maintenance_broadcast;
80
81 /* id_pfr1 */
82 int generic_timer_ext;
83 int virtualization_ext;
84 int security_ext;
85
86 /* L1 cache info */
87 int dcache_line_size;
88 int dcache_line_mask;
89 int icache_line_size;
90 int icache_line_mask;
85};
86
87extern struct cpuinfo cpuinfo;
88
89void cpuinfo_init(void);
90
91#endif /* _MACHINE_CPUINFO_H_ */
91};
92
93extern struct cpuinfo cpuinfo;
94
95void cpuinfo_init(void);
96
97#endif /* _MACHINE_CPUINFO_H_ */