1*e954ab8fSVarun Wadekar /* 2*e954ab8fSVarun Wadekar * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. 3*e954ab8fSVarun Wadekar * 4*e954ab8fSVarun Wadekar * Redistribution and use in source and binary forms, with or without 5*e954ab8fSVarun Wadekar * modification, are permitted provided that the following conditions are met: 6*e954ab8fSVarun Wadekar * 7*e954ab8fSVarun Wadekar * Redistributions of source code must retain the above copyright notice, this 8*e954ab8fSVarun Wadekar * list of conditions and the following disclaimer. 9*e954ab8fSVarun Wadekar * 10*e954ab8fSVarun Wadekar * Redistributions in binary form must reproduce the above copyright notice, 11*e954ab8fSVarun Wadekar * this list of conditions and the following disclaimer in the documentation 12*e954ab8fSVarun Wadekar * and/or other materials provided with the distribution. 13*e954ab8fSVarun Wadekar * 14*e954ab8fSVarun Wadekar * Neither the name of ARM nor the names of its contributors may be used 15*e954ab8fSVarun Wadekar * to endorse or promote products derived from this software without specific 16*e954ab8fSVarun Wadekar * prior written permission. 17*e954ab8fSVarun Wadekar * 18*e954ab8fSVarun Wadekar * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19*e954ab8fSVarun Wadekar * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20*e954ab8fSVarun Wadekar * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21*e954ab8fSVarun Wadekar * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 22*e954ab8fSVarun Wadekar * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23*e954ab8fSVarun Wadekar * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24*e954ab8fSVarun Wadekar * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25*e954ab8fSVarun Wadekar * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26*e954ab8fSVarun Wadekar * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27*e954ab8fSVarun Wadekar * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28*e954ab8fSVarun Wadekar * POSSIBILITY OF SUCH DAMAGE. 29*e954ab8fSVarun Wadekar */ 30*e954ab8fSVarun Wadekar 31*e954ab8fSVarun Wadekar #ifndef __TEGRA_PLATFORM_H__ 32*e954ab8fSVarun Wadekar #define __TEGRA_PLATFORM_H__ 33*e954ab8fSVarun Wadekar 34*e954ab8fSVarun Wadekar #include <sys/cdefs.h> 35*e954ab8fSVarun Wadekar 36*e954ab8fSVarun Wadekar /* 37*e954ab8fSVarun Wadekar * Tegra chip identifiers 38*e954ab8fSVarun Wadekar */ 39*e954ab8fSVarun Wadekar uint8_t tegra_is_t132(void); 40*e954ab8fSVarun Wadekar uint8_t tegra_is_t210(void); 41*e954ab8fSVarun Wadekar 42*e954ab8fSVarun Wadekar /* 43*e954ab8fSVarun Wadekar * Tegra platform identifiers 44*e954ab8fSVarun Wadekar */ 45*e954ab8fSVarun Wadekar uint8_t tegra_platform_is_silicon(void); 46*e954ab8fSVarun Wadekar uint8_t tegra_platform_is_qt(void); 47*e954ab8fSVarun Wadekar uint8_t tegra_platform_is_emulation(void); 48*e954ab8fSVarun Wadekar uint8_t tegra_platform_is_fpga(void); 49*e954ab8fSVarun Wadekar 50*e954ab8fSVarun Wadekar #endif /* __TEGRA_PLATFORM_H__ */ 51