X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=include%2Fprom.h;h=e7ee4a9a2651aa9dc90a0c588734ae1b95d601cc;hp=546d082e4a26cf63c719b57895166ebd9b32f23a;hb=5d4289bddaef010cc14bcbeecfd13d5068b50a8e;hpb=8d5a42062f8b88eaea91434e53973ce9f55589d9 diff --git a/include/prom.h b/include/prom.h index 546d082..e7ee4a9 100644 --- a/include/prom.h +++ b/include/prom.h @@ -1,24 +1,28 @@ /* - Definitions for talking to the Open Firmware PROM on - Power Macintosh computers. - - Copyright (C) 1999 Marius Vollmer - Copyright (C) 1996 Paul Mackerras. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program 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 this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ + * prom.h - Routines for talking to the Open Firmware PROM + * + * Copyright (C) 2001 Ethan Benson + * + * Copyright (C) 1999 Benjamin Herrenschmidt + * + * Copyright (C) 1999 Marius Vollmer + * + * Copyright (C) 1996 Paul Mackerras. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ #ifndef PROM_H #define PROM_H @@ -30,6 +34,8 @@ typedef void *ihandle; typedef void *phandle; #define PROM_INVALID_HANDLE ((prom_handle)-1UL) +#define BOOTDEVSZ (2048) /* iscsi args can be in excess of 1040 bytes */ +#define TOK_ISCSI "iscsi" struct prom_args; typedef int (*prom_entry)(struct prom_args *); @@ -87,6 +93,9 @@ void prom_map (void *phys, void *virt, int size); prom_handle prom_finddevice (char *name); prom_handle prom_findpackage (char *path); int prom_getprop (prom_handle dev, char *name, void *buf, int len); +int prom_setprop (prom_handle dev, char *name, void *buf, int len); +int prom_getproplen(prom_handle, const char *); +int prom_get_devtype (char *device); /* misc */ @@ -101,6 +110,7 @@ int prom_interpret (char *forth); int prom_get_chosen (char *name, void *mem, int len); int prom_get_options (char *name, void *mem, int len); +int prom_set_options (char *name, void *mem, int len); extern int prom_getms(void); extern void prom_pause(void);