986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * CDDL HEADER START
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * The contents of this file are subject to the terms of the
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * Common Development and Distribution License (the "License").
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * You may not use this file except in compliance with the License.
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * See the License for the specific language governing permissions
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * and limitations under the License.
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * When distributing Covered Code, include this CDDL HEADER in each
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * If applicable, add the following below this CDDL HEADER, with the
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * fields enclosed by brackets "[]" replaced with your own identifying
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * information: Portions Copyright [yyyy] [name of copyright owner]
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * CDDL HEADER END
e7cbe64f7a72dae5cb44f100db60ca88f3313c65gw * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje * Use is subject to license terms.
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje#pragma ident "%Z%%M% %I% %E% SMI"
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje len = prom_strlen(opath) + 1; /* include terminating NUL */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (0);
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[0] = p1275_ptr2cell("call-method"); /* Service name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[3] = p1275_ptr2cell("open-file"); /* Arg1: Method name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[4] = p1275_ihandle2cell(fsih); /* Arg2: fs ihandle */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (-1);
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (-1);
e7cbe64f7a72dae5cb44f100db60ca88f3313c65gw len = prom_strlen(opath) + 1; /* include terminating NUL */
e7cbe64f7a72dae5cb44f100db60ca88f3313c65gw return (0);
e7cbe64f7a72dae5cb44f100db60ca88f3313c65gw ci[0] = p1275_ptr2cell("call-method"); /* Service name */
e7cbe64f7a72dae5cb44f100db60ca88f3313c65gw ci[3] = p1275_ptr2cell("open-volume"); /* Arg1: Method name */
e7cbe64f7a72dae5cb44f100db60ca88f3313c65gw return (-1);
e7cbe64f7a72dae5cb44f100db60ca88f3313c65gw return (-1);
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setjeprom_fseek(ihandle_t fsih, int fd, unsigned long long offset)
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[0] = p1275_ptr2cell("call-method"); /* Service name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[3] = p1275_ptr2cell("seek-file"); /* Arg1: Method name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[4] = p1275_ihandle2cell(fsih); /* Arg2: fs ihandle */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[6] = p1275_ull2cell_low(offset); /* Arg4: Offset */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (-1);
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (-1);
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setjeprom_fread(ihandle_t fsih, int fd, caddr_t buf, size_t len)
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (-1);
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[0] = p1275_ptr2cell("call-method"); /* Service name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[3] = p1275_ptr2cell("read-file"); /* Arg1: Method name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[4] = p1275_ihandle2cell(fsih); /* Arg2: fs ihandle */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[6] = p1275_uint2cell(len); /* Arg4: buffer length */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[7] = p1275_ptr2cell(buf); /* Arg5: buffer address */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (-1);
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (p1275_cell2int(ci[9])); /* Res2: actual length */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[0] = p1275_ptr2cell("call-method"); /* Service name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[3] = p1275_ptr2cell("size-file"); /* Arg1: Method name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[4] = p1275_ihandle2cell(fsih); /* Arg2: fs ihandle */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (-1);
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (0);
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setjeprom_compinfo(ihandle_t fsih, int fd, int *iscmp, size_t *fsize, size_t *bsize)
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[0] = p1275_ptr2cell("call-method"); /* Service name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[3] = p1275_ptr2cell("cinfo-file"); /* Arg1: Method name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[4] = p1275_ihandle2cell(fsih); /* Arg2: fs ihandle */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (-1);
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje return (0);
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[0] = p1275_ptr2cell("call-method"); /* Service name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[3] = p1275_ptr2cell("close-file"); /* Arg1: Method name */
986fd29a0dc13f7608ef7f508f6e700bd7bc2720setje ci[4] = p1275_ihandle2cell(fsih); /* Arg2: fs ihandle */