.

.

. include/asm-generic/global_data.h

1    typedef struct global_data {
2            bd_t *bd;
3            unsigned long flags;
4            unsigned int baudrate;
5            unsigned long cpu_clk;          /* CPU clock in Hz!             */
6            unsigned long bus_clk;
7            /* We cannot bracket this with CONFIG_PCI due to mpc5xxx */
8            unsigned long pci_clk;
9            unsigned long mem_clk;
10    #if defined(CONFIG_LCD) || defined(CONFIG_VIDEO)
11            unsigned long fb_base;          /* Base address of framebuffer mem */
12    #endif
13    #if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
14            unsigned long post_log_word;    /* Record POST activities */
15            unsigned long post_log_res;     /* success of POST test */
16            unsigned long post_init_f_time; /* When post_init_f started */
17    #endif
18    #ifdef CONFIG_BOARD_TYPES
19            unsigned long board_type;
20    #endif
21            unsigned long have_console;     /* serial_init() was called */
22    #if CONFIG_IS_ENABLED(PRE_CONSOLE_BUFFER)
23            unsigned long precon_buf_idx;   /* Pre-Console buffer index */
24    #endif
25            unsigned long env_addr;         /* Address  of Environment struct */
26            unsigned long env_valid;        /* Checksum of Environment valid? */
27    
28            unsigned long ram_top;          /* Top address of RAM used by U-Boot */
29            unsigned long relocaddr;        /* Start address of U-Boot in RAM */
30            phys_size_t ram_size;           /* RAM size */
31            unsigned long mon_len;          /* monitor len */
32            unsigned long irq_sp;           /* irq stack pointer */
33            unsigned long start_addr_sp;    /* start_addr_stackpointer */
34            unsigned long reloc_off;
35            struct global_data *new_gd;     /* relocated global data */
36    
37    #ifdef CONFIG_DM
38            struct udevice  *dm_root;       /* Root instance for Driver Model */
39            struct udevice  *dm_root_f;     /* Pre-relocation root instance */
40            struct list_head uclass_root;   /* Head of core tree */
41    #endif
42    #ifdef CONFIG_TIMER
43            struct udevice  *timer;         /* Timer instance for Driver Model */
44    #endif
45    
46            const void *fdt_blob;           /* Our device tree, NULL if none */
47            void *new_fdt;                  /* Relocated FDT */
48            unsigned long fdt_size;         /* Space reserved for relocated FDT */
49            struct jt_funcs *jt;            /* jump table */
50            char env_buf[32];               /* buffer for getenv() before reloc. */
51    #ifdef CONFIG_TRACE
52            void            *trace_buff;    /* The trace buffer */
53    #endif
54    #if defined(CONFIG_SYS_I2C)
55            int             cur_i2c_bus;    /* current used i2c bus */
56    #endif
57    #ifdef CONFIG_SYS_I2C_MXC
58            void *srdata[10];
59    #endif
60            unsigned long timebase_h;
61            unsigned long timebase_l;
62    #ifdef CONFIG_SYS_MALLOC_F_LEN
63            unsigned long malloc_base;      /* base address of early malloc() */
64            unsigned long malloc_limit;     /* limit address */
65            unsigned long malloc_ptr;       /* current address */
66    #endif
67    #ifdef CONFIG_PCI
68            struct pci_controller *hose;    /* PCI hose for early use */
69            phys_addr_t pci_ram_top;        /* top of region accessible to PCI */
70    #endif
71    #ifdef CONFIG_PCI_BOOTDELAY
72            int pcidelay_done;
73    #endif
74            struct udevice *cur_serial_dev; /* current serial device */
75            struct arch_global_data arch;   /* architecture-specific data */
76    #ifdef CONFIG_CONSOLE_RECORD
77            struct membuff console_out;     /* console output */
78            struct membuff console_in;      /* console input */
79    #endif
80    #ifdef CONFIG_DM_VIDEO
81            ulong video_top;                /* Top of video frame buffer area */
82            ulong video_bottom;             /* Bottom of video frame buffer area */
83    #endif
84    } gd_t;

. .

results matching ""

    No results matching ""