//========================================================================= // include/asm-ppc/redboot.h // Copyright (c) 2002, 2003 Gary Thomas (<gary@mlbassoc.com> // Copyright (c) 1997 Dan Malek (dmalek@jlc.net)
// // Board specific details, as provided by RedBoot //
/* A Board Information structure that is given to a program when * RedBoot starts it up. Note: not all fields make sense for all * architectures and it's up to the platform specific code to fill * in the details.
*/ typedefstruct bd_info { unsignedint bi_tag; /* Should be 0x42444944 "BDID" */ unsignedint bi_size; /* Size of this structure */ unsignedint bi_revision; /* revision of this structure */ unsignedint bi_bdate; /* bootstrap date, i.e. 0x19971106 */ unsignedint bi_memstart; /* Memory start address */ unsignedint bi_memsize; /* Memory (end) size in bytes */ unsignedint bi_intfreq; /* Internal Freq, in Hz */ unsignedint bi_busfreq; /* Bus Freq, in Hz */ unsignedint bi_cpmfreq; /* CPM Freq, in Hz */ unsignedint bi_brgfreq; /* BRG Freq, in Hz */ unsignedint bi_vco; /* VCO Out from PLL */ unsignedint bi_pci_freq; /* PCI Freq, in Hz */ unsignedint bi_baudrate; /* Default console baud rate */ unsignedint bi_immr; /* IMMR when called from boot rom */ unsignedchar bi_enetaddr[6]; unsignedint bi_flashbase; /* Physical address of FLASH memory */ unsignedint bi_flashsize; /* Length of FLASH memory */ int bi_flashwidth; /* Width (8,16,32,64) */ unsignedchar *bi_cmdline; /* Pointer to command line */ unsignedchar bi_esa[3][6]; /* Ethernet station addresses */ unsignedint bi_ramdisk_begin, bi_ramdisk_end; struct { /* Information about [main] video screen */ short x_res; /* Horizontal resolution in pixels */ short y_res; /* Vertical resolution in pixels */ short bpp; /* Bits/pixel */ short mode; /* Type of pixels (packed, indexed) */ unsignedlong fb; /* Pointer to frame buffer (pixel) memory */
} bi_video; void (*bi_cputc)(char); /* Write a character to the RedBoot console */ char (*bi_cgetc)(void); /* Read a character from the RedBoot console */ int (*bi_ctstc)(void); /* Test for input on the RedBoot console */
} bd_t;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.