Ignore:
Timestamp:
Apr 26, 2017, 2:14:33 PM (5 years ago)
Author:
alain
Message:

Modify the boot_info_t struct to describe external peripherals in all clusters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/arch_info/arch_info.h

    r1 r6  
    6363 * The 16 MSB bits define the functionnal type.
    6464 * The 16 LSB bits define the implementation type.
    65  * It must be consistent with values defined in file arch_class.py
     65 * It must be consistent with values defined in files arch_class.py, and device.*
    6666 ***************************************************************************************/
    6767
    6868enum deviceTypes
    6969{
    70     DEV_TYPE_RAM       = 0x00000000,
    71     DEV_TYPE_DMA       = 0x00010000,
    72     DEV_TYPE_FBF       = 0x00020000,
    73     DEV_TYPE_IOB       = 0x00030000,
     70    DEV_TYPE_RAM_SCL   = 0x00000000,
     71    DEV_TYPE_ROM_SCL   = 0x00010000,
     72    DEV_TYPE_FBF_SCL   = 0x00020000,
     73    DEV_TYPE_IOB_TSR   = 0x00030000,
    7474    DEV_TYPE_IOC_BDV   = 0x00040000,
    7575    DEV_TYPE_IOC_HBA   = 0x00040001,
     
    7777    DEV_TYPE_IOC_SPI   = 0x00040003,
    7878    DEV_TYPE_IOC_RDK   = 0x00040004,
    79     DEV_TYPE_MMC       = 0x00050000,
    80     DEV_TYPE_MWR_CPY   = 0x00060000,
    81     DEV_TYPE_MWR_GCD   = 0x00060001,
    82     DEV_TYPE_MWR_DCT   = 0x00060002,
    83     DEV_TYPE_NIC       = 0x00070000,
    84     DEV_TYPE_ROM       = 0x00080000,
    85     DEV_TYPE_SIM       = 0x00090000,
    86     DEV_TYPE_TIM       = 0x000A0000,
    87     DEV_TYPE_TTY       = 0x000B0000,
    88     DEV_TYPE_XCU       = 0x000C0000,
    89     DEV_TYPE_PIC       = 0x000D0000,
    90     DEV_TYPE_CMA       = 0x000E0000,
     79    DEV_TYPE_MMC_TSR   = 0x00050000,
     80    DEV_TYPE_DMA_SCL   = 0x00060000,
     81    DEV_TYPE_NIC_CBF   = 0x00070000,
     82    DEV_TYPE_TIM_SCL   = 0x00080000,
     83    DEV_TYPE_TXT_TTY   = 0x00090000,
     84    DEV_TYPE_ICU_XCU   = 0x000A0000,
     85    DEV_TYPE_PIC_TSR   = 0x000B0000,
    9186};
    9287
     
    143138{
    144139    uint32_t    gid;             // core hardware identifier
     140    uint16_t    cxy;             // cluster identifier         
    145141    uint16_t    lid;             // core local index in cluster
    146     uint16_t    cxy;             // cluster identifier         
    147142}
    148143archinfo_core_t;
     
    154149typedef struct __attribute__((packed))  archinfo_device_s
    155150{
     151    uint64_t    base;            // base address in physical space
     152    uint64_t    size;            // channel size (bytes)
    156153    uint32_t    type;            // supported values defined above
    157     uint64_t    base;            // base address in physical space
    158     uint64_t    size;            // size (bytes)
    159154    uint32_t    channels;        // number of channels
    160155    uint32_t    arg0;            // semantic depends on device type
     
    162157    uint32_t    arg2;            // semantic depends on device type
    163158    uint32_t    arg3;            // semantic depends on device type
    164     uint32_t    irqs;            // number of input IRQs (for XCU or PIC)
     159    uint32_t    irqs;            // number of input IRQs (for ICU or PIC)
    165160    uint32_t    irq_offset;      // global index of first IRQ
    166161}
Note: See TracChangeset for help on using the changeset viewer.