]> git.ozlabs.org Git - yaboot.git/blobdiff - second/prom.c
Compile fix
[yaboot.git] / second / prom.c
index 5ec06b88e7e1426b33e5a04050e4e4c3c607cea3..d23b8a6a3d552dd91b4827c99dba2c4efb44f3ad 100644 (file)
@@ -153,6 +153,12 @@ prom_getprop (prom_handle pack, char *name, void *mem, int len)
      return (int)call_prom ("getprop", 4, 1, pack, name, mem, len);
 }
 
+int
+prom_getproplen(prom_handle pack, const char *name)
+{
+     return (int)call_prom("getproplen", 2, 1, pack, name);
+}
+
 int
 prom_get_chosen (char *name, void *mem, int len)
 {
@@ -174,6 +180,9 @@ prom_get_devtype (char *device)
      int        result;
      char       tmp[64];
 
+     if (strstr(device, TOK_ISCSI))
+         device = strcpy(tmp, "/vdevice/gscsi/disk");
+
      /* Find OF device phandle */
      dev = prom_finddevice(device);
      if (dev == PROM_INVALID_HANDLE) {