162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
362306a36Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
462306a36Sopenharmony_ci * for more details.
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * env.c: ARCS environment variable routines.
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci * Copyright (C) 1996 David S. Miller (davem@davemloft.net)
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci#include <linux/init.h>
1162306a36Sopenharmony_ci#include <linux/kernel.h>
1262306a36Sopenharmony_ci#include <linux/string.h>
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#include <asm/fw/arc/types.h>
1562306a36Sopenharmony_ci#include <asm/sgialib.h>
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciPCHAR __init
1862306a36Sopenharmony_ciArcGetEnvironmentVariable(CHAR *name)
1962306a36Sopenharmony_ci{
2062306a36Sopenharmony_ci	return (CHAR *) ARC_CALL1(get_evar, name);
2162306a36Sopenharmony_ci}
22