Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / ppc-sam440 / bootloader / getbootinfo.c
blobf7e612b05789120316eb53fcef960dc30b0d4e6b
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 GetBootInfo() function.
6 */
7 #include "bootloader_intern.h"
8 #include <proto/bootloader.h>
9 #include <proto/utility.h>
10 #include <aros/debug.h>
12 /*****************************************************************************
14 NAME */
15 AROS_LH1(APTR, GetBootInfo,
17 /* SYNOPSIS */
18 AROS_LHA(ULONG, infoType, D0),
20 /* LOCATION */
21 struct BootLoaderBase *, BootLoaderBase, 1, Bootloader)
23 /* FUNCTION
24 Return information from the bootloader
26 INPUTS
27 infoType - The type of information requestes
29 RESULT
30 Pointer to resource or NULL if failed
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 *****************************************************************************/
44 AROS_LIBFUNC_INIT
46 switch (infoType)
48 case BL_Video:
49 if (BootLoaderBase->Flags & MB_FLAGS_GFX)
50 return (APTR)&(BootLoaderBase->Vesa);
51 break;
52 case BL_Args:
53 if (BootLoaderBase->Flags & MB_FLAGS_CMDLINE)
54 return (APTR)&(BootLoaderBase->Args);
55 break;
56 case BL_Drives:
57 if (BootLoaderBase->Flags & MB_FLAGS_DRIVES)
58 return (APTR)&(BootLoaderBase->DriveInfo);
59 break;
60 default:
61 bug("[BootLdr] GetBootInfo: Unknown info requested\n");
64 return NULL;
66 AROS_LIBFUNC_EXIT
67 } /* GetBootInfo */