xref: /onnv-gate/usr/src/uts/intel/io/intel_nb5000/dimm_phys.h (revision 10650:5195e7d7a5f4)
17532SSean.Ye@Sun.COM /*
27532SSean.Ye@Sun.COM  * CDDL HEADER START
37532SSean.Ye@Sun.COM  *
47532SSean.Ye@Sun.COM  * The contents of this file are subject to the terms of the
57532SSean.Ye@Sun.COM  * Common Development and Distribution License (the "License").
67532SSean.Ye@Sun.COM  * You may not use this file except in compliance with the License.
77532SSean.Ye@Sun.COM  *
87532SSean.Ye@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97532SSean.Ye@Sun.COM  * or http://www.opensolaris.org/os/licensing.
107532SSean.Ye@Sun.COM  * See the License for the specific language governing permissions
117532SSean.Ye@Sun.COM  * and limitations under the License.
127532SSean.Ye@Sun.COM  *
137532SSean.Ye@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
147532SSean.Ye@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157532SSean.Ye@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
167532SSean.Ye@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
177532SSean.Ye@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
187532SSean.Ye@Sun.COM  *
197532SSean.Ye@Sun.COM  * CDDL HEADER END
207532SSean.Ye@Sun.COM  */
217532SSean.Ye@Sun.COM 
227532SSean.Ye@Sun.COM /*
23*10650SVuong.Nguyen@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
247532SSean.Ye@Sun.COM  * Use is subject to license terms.
257532SSean.Ye@Sun.COM  */
267532SSean.Ye@Sun.COM 
277532SSean.Ye@Sun.COM #ifndef _DIMM_PHYS_H
287532SSean.Ye@Sun.COM #define	_DIMM_PHYS_H
297532SSean.Ye@Sun.COM 
307532SSean.Ye@Sun.COM #ifdef __cplusplus
317532SSean.Ye@Sun.COM extern "C" {
327532SSean.Ye@Sun.COM #endif
337532SSean.Ye@Sun.COM 
34*10650SVuong.Nguyen@Sun.COM #define	MAXPHYS_ADDR		0xffffffff00000000ULL
357532SSean.Ye@Sun.COM 
367532SSean.Ye@Sun.COM extern void dimm_init(void);
377532SSean.Ye@Sun.COM extern void dimm_fini(void);
387532SSean.Ye@Sun.COM extern void dimm_add_rank(int, int, int, int, uint64_t, uint32_t, uint32_t,
397532SSean.Ye@Sun.COM     int, uint64_t);
407532SSean.Ye@Sun.COM 
417532SSean.Ye@Sun.COM extern uint64_t dimm_getoffset(int, int, int, int, int);
42*10650SVuong.Nguyen@Sun.COM extern uint64_t dimm_getphys(uint16_t, uint16_t, uint64_t, uint64_t, uint64_t);
43*10650SVuong.Nguyen@Sun.COM 
44*10650SVuong.Nguyen@Sun.COM #pragma weak dimm_getoffset
45*10650SVuong.Nguyen@Sun.COM #pragma weak dimm_getphys
467532SSean.Ye@Sun.COM 
477532SSean.Ye@Sun.COM #ifdef __cplusplus
487532SSean.Ye@Sun.COM }
497532SSean.Ye@Sun.COM #endif
507532SSean.Ye@Sun.COM 
517532SSean.Ye@Sun.COM #endif /* _DIMM_PHYS_H */
52