1 |
/* ieee1275.c - Access the Open Firmware client interface. */ |
/* ieee1275.c - Access the Open Firmware client interface. */ |
2 |
/* |
/* |
3 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
4 |
* Copyright (C) 2003, 2004 Free Software Foundation, Inc. |
* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. |
5 |
* |
* |
6 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
7 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
482 |
|
|
483 |
return 0; |
return 0; |
484 |
} |
} |
485 |
|
|
486 |
|
int |
487 |
|
grub_ieee1275_milliseconds (grub_uint32_t *msecs) |
488 |
|
{ |
489 |
|
struct milliseconds_args { |
490 |
|
struct grub_ieee1275_common_hdr common; |
491 |
|
grub_uint32_t msecs; |
492 |
|
} args; |
493 |
|
|
494 |
|
INIT_IEEE1275_COMMON (&args.common, "milliseconds", 0, 1); |
495 |
|
|
496 |
|
if (IEEE1275_CALL_ENTRY_FN (&args) == -1) |
497 |
|
return -1; |
498 |
|
*msecs = args.msecs; |
499 |
|
return 0; |
500 |
|
} |