/* of.c - Access the Open Firmware client interface. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2003,2004,2005,2007,2008,2009 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
int
{
struct find_device_args
{
}
args;
return -1;
return -1;
return 0;
}
int
{
struct get_property_args
{
}
args;
return -1;
if (actual)
return -1;
return 0;
}
int
{
int ret;
#ifndef GRUB_CPU_WORDS_BIGENDIAN
/* Integer properties are always in big endian. */
if (ret == 0)
{
unsigned int i;
size /= sizeof (grub_uint32_t);
for (i = 0; i < size; i++)
}
#endif
return ret;
}
int
char *prop)
{
struct get_property_args
{
}
args;
return -1;
}
int
{
struct get_property_args
{
}
args;
return -1;
return -1;
return 0;
}
int
{
struct instance_to_package_args
{
}
args;
return -1;
return -1;
return 0;
}
int
{
struct instance_to_package_args
{
}
args;
return -1;
if (actual)
return -1;
return 0;
}
int
{
struct instance_to_path_args
{
}
args;
return -1;
if (actual)
return -1;
return 0;
}
int
{
struct write_args
{
}
args;
return -1;
if (actualp)
return 0;
}
int
{
struct write_args
{
}
args;
return -1;
if (actualp)
return 0;
}
int
{
struct write_args
{
}
args;
/* To prevent stupid gcc warning. */
#if GRUB_IEEE1275_CELL_SIZEOF >= 8
#else
#endif
return -1;
if (result)
return 0;
}
int
{
struct peer_args
{
}
args;
return -1;
return -1;
return 0;
}
int
{
struct child_args
{
}
args;
return -1;
return -1;
return 0;
}
int
{
struct parent_args
{
}
args;
return -1;
return 0;
}
int
{
struct enter_args
{
}
args;
return -1;
return -1;
if (catch)
return 0;
}
int
grub_ieee1275_enter (void)
{
struct enter_args
{
}
args;
return -1;
return 0;
}
void
grub_ieee1275_exit (void)
{
struct exit_args
{
}
args;
for (;;) ;
}
int
{
struct open_args
{
}
args;
return -1;
return -1;
return 0;
}
int
{
struct close_args
{
}
args;
return -1;
return 0;
}
int
{
struct claim_args
{
}
args;
return -1;
if (result)
return -1;
return 0;
}
int
{
struct release_args
{
}
args;
return -1;
return 0;
}
int
{
struct set_property_args
{
}
args;
return -1;
return -1;
return 0;
}
int
int index, int r, int g, int b)
{
struct set_color_args
{
}
args;
args.r = r;
args.g = g;
args.b = b;
return -1;
return args.catch_result;
}
int
{
struct milliseconds_args
{
}
args;
return -1;
return 0;
}