Changeset a73ebf0 in mainline for boot/arch/sparc32/include/ambapp.h


Ignore:
Timestamp:
2013-10-15T16:34:04Z (11 years ago)
Author:
Jakub Klama <jakub.klama@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4d2dba7
Parents:
1f12fab
Message:

Pass AMBA P&P devices and memory size info from loader to kernel
using bootinfo_t structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc32/include/ambapp.h

    r1f12fab ra73ebf0  
    127127} __attribute__((packed)) ambapp_entry_t;
    128128
     129typedef struct {
     130        unsigned int ram_read_ws: 1;
     131        unsigned int ram_write_ws: 1;
     132        unsigned int ram_width: 2;
     133        unsigned int rmw: 1;
     134        unsigned int rbrdy: 1;
     135        unsigned int : 1;
     136        unsigned int bank_size: 4;
     137        unsigned int si: 1;
     138        unsigned int se: 1;
     139        unsigned int : 1;
     140        unsigned int ms: 1;
     141        unsigned int : 1;
     142        unsigned int d64: 1;
     143        unsigned int sdram_cmd: 2;
     144        unsigned int sdram_colsz: 2;
     145        unsigned int sdram_banksz: 3;
     146        unsigned int tcas: 1;
     147        unsigned int trfc: 3;
     148        unsigned int trp: 1;
     149        unsigned int sdrf: 1;
     150} __attribute__((packed)) mctrl_mcfg2_t;
     151
    129152amba_device_t amba_devices[AMBAPP_MAX_DEVICES];
    130153int amba_devices_found;
     154bool amba_fake;
    131155uintptr_t amba_uart_base;
    132156
    133157void ambapp_scan(void);
     158bool ambapp_fake(void);
    134159void ambapp_qemu_fake_scan(void);
    135160void ambapp_print_devices(void);
Note: See TracChangeset for help on using the changeset viewer.