Deleted Added
full compact
board.h (209318) board.h (209646)
1/*-
2 * Copyright (c) 2003-2009 RMI Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * RMI_BSD
1/*-
2 * Copyright (c) 2003-2009 RMI Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * RMI_BSD
30 * $FreeBSD: head/sys/mips/rmi/board.h 209318 2010-06-18 21:40:32Z jchandra $
30 * $FreeBSD: head/sys/mips/rmi/board.h 209646 2010-07-02 13:30:26Z jchandra $
31 */
32#ifndef _RMI_BOARD_H_
33#define _RMI_BOARD_H_
34
35/*
36 * Engineering boards have a major/minor number in their EEPROM to
37 * identify their configuration
38 */

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

72/*
73 * The XLS product line has chip versions 0x4x and 0x8x
74 */
75static __inline__ unsigned int
76xlr_is_xls(void)
77{
78 uint32_t prid = mips_rd_prid();
79
31 */
32#ifndef _RMI_BOARD_H_
33#define _RMI_BOARD_H_
34
35/*
36 * Engineering boards have a major/minor number in their EEPROM to
37 * identify their configuration
38 */

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

72/*
73 * The XLS product line has chip versions 0x4x and 0x8x
74 */
75static __inline__ unsigned int
76xlr_is_xls(void)
77{
78 uint32_t prid = mips_rd_prid();
79
80 return (prid & 0xf000) == 0x8000 || (prid & 0xf000) == 0x4000;
80 return ((prid & 0xf000) == 0x8000 || (prid & 0xf000) == 0x4000 ||
81 (prid & 0xf000) == 0xc000);
81}
82
83/*
84 * The last byte of the processor id field is revision
85 */
86static __inline__ unsigned int
87xlr_revision(void)
88{

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

105static __inline__ int
106xlr_board_pci(void)
107{
108 return ((xlr_boot1_info.board_major_version == RMI_XLR_BOARD_ARIZONA_III) ||
109 (xlr_boot1_info.board_major_version == RMI_XLR_BOARD_ARIZONA_V));
110}
111
112static __inline__ int
82}
83
84/*
85 * The last byte of the processor id field is revision
86 */
87static __inline__ unsigned int
88xlr_revision(void)
89{

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

106static __inline__ int
107xlr_board_pci(void)
108{
109 return ((xlr_boot1_info.board_major_version == RMI_XLR_BOARD_ARIZONA_III) ||
110 (xlr_boot1_info.board_major_version == RMI_XLR_BOARD_ARIZONA_V));
111}
112
113static __inline__ int
114xlr_is_xls1xx(void)
115{
116 uint32_t chipid = xlr_processor_id();
117
118 return (chipid == 0xce || chipid == 0xcf);
119}
120
121static __inline__ int
113xlr_is_xls2xx(void)
114{
115 uint32_t chipid = xlr_processor_id();
116
117 return (chipid == 0x8e || chipid == 0x8f);
118}
119
120static __inline__ int

--- 45 unchanged lines hidden ---
122xlr_is_xls2xx(void)
123{
124 uint32_t chipid = xlr_processor_id();
125
126 return (chipid == 0x8e || chipid == 0x8f);
127}
128
129static __inline__ int

--- 45 unchanged lines hidden ---