22 |
#include <grub/disk.h> |
#include <grub/disk.h> |
23 |
#include <grub/mm.h> |
#include <grub/mm.h> |
24 |
#include <grub/machine/ieee1275.h> |
#include <grub/machine/ieee1275.h> |
25 |
#include <grub/machine/init.h> |
#include <grub/machine/ofdisk.h> |
26 |
|
|
27 |
static int |
static int |
28 |
grub_ofdisk_iterate (int (*hook) (const char *name)) |
grub_ofdisk_iterate (int (*hook) (const char *name)) |
60 |
return grub_errno; |
return grub_errno; |
61 |
|
|
62 |
/* To access the complete disk add `:0'. */ |
/* To access the complete disk add `:0'. */ |
63 |
if (! (grub_ieee1275_flags & GRUB_IEEE1275_NO_PARTITION_0)) |
if (! grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_NO_PARTITION_0)) |
64 |
grub_strcat (devpath, ":0"); |
grub_strcat (devpath, ":0"); |
65 |
|
|
66 |
grub_ieee1275_open (devpath, &dev_ihandle); |
grub_ieee1275_open (devpath, &dev_ihandle); |