~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/powerpc/boot/redboot.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _PPC_REDBOOT_H
  3 #define _PPC_REDBOOT_H
  4 
  5 //=========================================================================
  6 // include/asm-ppc/redboot.h
  7 //   Copyright (c) 2002, 2003 Gary Thomas (<gary@mlbassoc.com>
  8 //   Copyright (c) 1997 Dan Malek (dmalek@jlc.net)
  9 
 10 //
 11 // Board specific details, as provided by RedBoot
 12 //
 13 
 14 /* A Board Information structure that is given to a program when
 15  * RedBoot starts it up.  Note: not all fields make sense for all
 16  * architectures and it's up to the platform specific code to fill
 17  * in the details.
 18  */
 19 typedef struct bd_info {
 20     unsigned int   bi_tag;        /* Should be 0x42444944 "BDID" */
 21     unsigned int   bi_size;       /* Size of this structure */
 22     unsigned int   bi_revision;   /* revision of this structure */
 23     unsigned int   bi_bdate;      /* bootstrap date, i.e. 0x19971106 */
 24     unsigned int   bi_memstart;   /* Memory start address */
 25     unsigned int   bi_memsize;    /* Memory (end) size in bytes */
 26     unsigned int   bi_intfreq;    /* Internal Freq, in Hz */
 27     unsigned int   bi_busfreq;    /* Bus Freq, in Hz */
 28     unsigned int   bi_cpmfreq;    /* CPM Freq, in Hz */
 29     unsigned int   bi_brgfreq;    /* BRG Freq, in Hz */
 30     unsigned int   bi_vco;        /* VCO Out from PLL */
 31     unsigned int   bi_pci_freq;   /* PCI Freq, in Hz */
 32     unsigned int   bi_baudrate;   /* Default console baud rate */
 33     unsigned int   bi_immr;       /* IMMR when called from boot rom */
 34     unsigned char  bi_enetaddr[6];
 35     unsigned int   bi_flashbase;  /* Physical address of FLASH memory */
 36     unsigned int   bi_flashsize;  /* Length of FLASH memory */
 37     int            bi_flashwidth; /* Width (8,16,32,64) */
 38     unsigned char *bi_cmdline;    /* Pointer to command line */
 39     unsigned char  bi_esa[3][6];  /* Ethernet station addresses */
 40     unsigned int   bi_ramdisk_begin, bi_ramdisk_end;
 41     struct {                      /* Information about [main] video screen */
 42         short x_res;              /*   Horizontal resolution in pixels */
 43         short y_res;              /*   Vertical resolution in pixels */
 44         short bpp;                /*   Bits/pixel */
 45         short mode;               /*   Type of pixels (packed, indexed) */
 46         unsigned long fb;         /*   Pointer to frame buffer (pixel) memory */
 47     } bi_video;
 48     void         (*bi_cputc)(char);   /* Write a character to the RedBoot console */
 49     char         (*bi_cgetc)(void);   /* Read a character from the RedBoot console */
 50     int          (*bi_ctstc)(void);   /* Test for input on the RedBoot console */
 51 } bd_t;
 52 
 53 #define BI_REV 0x0102    /* Version 1.02 */
 54 
 55 #define bi_pci_busfreq bi_pci_freq
 56 #define bi_immr_base   bi_immr
 57 #endif
 58 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php