11ae0874heppo/*
21ae0874heppo * CDDL HEADER START
31ae0874heppo *
41ae0874heppo * The contents of this file are subject to the terms of the
51ae0874heppo * Common Development and Distribution License (the "License").
61ae0874heppo * You may not use this file except in compliance with the License.
71ae0874heppo *
81ae0874heppo * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91ae0874heppo * or http://www.opensolaris.org/os/licensing.
101ae0874heppo * See the License for the specific language governing permissions
111ae0874heppo * and limitations under the License.
121ae0874heppo *
131ae0874heppo * When distributing Covered Code, include this CDDL HEADER in each
141ae0874heppo * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151ae0874heppo * If applicable, add the following below this CDDL HEADER, with the
161ae0874heppo * fields enclosed by brackets "[]" replaced with your own identifying
171ae0874heppo * information: Portions Copyright [yyyy] [name of copyright owner]
181ae0874heppo *
191ae0874heppo * CDDL HEADER END
201ae0874heppo */
211ae0874heppo
221ae0874heppo/*
231ae0874heppo * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
241ae0874heppo * Use is subject to license terms.
251ae0874heppo */
261ae0874heppo
271ae0874heppo#pragma ident	"%Z%%M%	%I%	%E% SMI"
281ae0874heppo
291ae0874heppo#include <sys/promif_impl.h>
301ae0874heppo
311ae0874heppo/*
321ae0874heppo * Secure WAN boot requires firmware support for storing and
331ae0874heppo * retrieving security keys. The user command to set these
341ae0874heppo * keys in firmware storage is ickey(1M). Currently, sun4v
351ae0874heppo * platforms do not support this functionality. However, there
361ae0874heppo * is an external interface to these prom interfaces from the
371ae0874heppo * openprom(7D) driver. They are not documented in the man page,
381ae0874heppo * but they should still be handled just well enough so that
391ae0874heppo * the user gets a sensible error back.
401ae0874heppo */
411ae0874heppo
421ae0874heppoint
431ae0874heppopromif_set_security_key(void *p)
441ae0874heppo{
451ae0874heppo	_NOTE(ARGUNUSED(p))
461ae0874heppo
471ae0874heppo	return (-1);
481ae0874heppo}
491ae0874heppo
501ae0874heppoint
511ae0874heppopromif_get_security_key(void *p)
521ae0874heppo{
531ae0874heppo	cell_t	*ci = (cell_t *)p;
541ae0874heppo
551ae0874heppo	ci[6] = p1275_int2cell(-1);
561ae0874heppo
571ae0874heppo	return (-1);
581ae0874heppo}
59