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