Exemplo n.º 1
0
class ClockConfigDescriptor(FruAreaBase):
    ''' PICMG AMC.0 Specification R2.0, Table 3-36 '''
    
    _schema = [
        ('clk_id', fixed_field('u8', constants=_clock_id_constants)),
        ('_reserved', fixed_field('u7', default=0)),
        ('activation', fixed_field('u1', constants={
            'by_carrier': 0,
            'by_application': 1
        })),
        ('_indirect_clk_desc_count', fixed_field('u8', default=0)),
        ('_direct_clk_desc_count', fixed_field('u8', default=0)),
        ('indirect_clk_desc', array_field(IndirectClockDescriptor, num_elems_field='_indirect_clk_desc_count')),
        ('direct_clk_desc', array_field(DirectClockDescriptor, num_elems_field='_direct_clk_desc_count')),
    ]
Exemplo n.º 2
0
class CarrierClkP2pConnectivity(PicmgEntry):
    ''' PICMG AMC.0 Specification R2.0, Table 3-29 '''

    _schema = [
        ('_clk_p2p_resource_desc_count', fixed_field('u8', default=0)),
        ('clk_p2p_resource_descriptors', array_field(ClockP2pResourceDescriptor, num_elems_field='_clk_p2p_resource_desc_count')),
    ]
Exemplo n.º 3
0
class PowerPolicyRecord(PicmgEntry):
    ''' PICMG Specification MTCA.0 R1.0, Table 3-23 '''

    _schema = [
        ('_num_descriptors', fixed_field('u8', default=0)),
        ('descriptors', array_field(PowerPolicyDescriptor, num_elems_field='_num_descriptors')),
    ]
Exemplo n.º 4
0
class FruPartition(PicmgEntry):
    ''' PICMG Specification MTCA.0 R1.0, Table 3-10 '''

    _schema = [
        ('_desc_count', fixed_field('u8', default=0)),
        ('descriptors', array_field(PartitionDescriptor, num_elems_field='_desc_count')),
    ]
Exemplo n.º 5
0
class PointToPointConnectivity(PicmgEntry):
    ''' PICMG AMC.0 Specification R2.0, Table 3-16 '''

    _schema = [
        ('_guid_count', fixed_field('u8', default=0)),
        ('guids', array_field(GuidField, num_elems_field='_guid_count')),
        ('record_type', fixed_field('u1', constants={
            'amc_module': 1,
            'on_carrier_device': 0
        })),
        ('_reserved', fixed_field('u3', default=0)),
        ('connected_dev_id', fixed_field('u4', default=0)),
        ('_channel_desc_count', fixed_field('u8', default=0)),
        ('channel_descriptors', array_field(AmcChannelDescriptor, num_elems_field='_channel_desc_count')),
        ('link_descriptors', array_field(AmcLinkDescriptor)),
    ]
Exemplo n.º 6
0
class MtcaCarrierActivationPm(PicmgEntry):
    ''' PICMG Specification MTCA.0 R1.0, Table 3-25 '''

    _schema = [
        ('readiness_allowance', fixed_field('u8')),
        ('_num_descriptors', fixed_field('u8', default=0)),
        ('descriptors', array_field(MtcaCarrierActivCurrDescriptor, num_elems_field='_num_descriptors')),
    ]
Exemplo n.º 7
0
class ClockP2pResourceDescriptor(FruAreaBase):
    ''' PICMG AMC.0 Specification R2.0, Table 3-30 '''

    _schema = [
        ('resource_type', fixed_field('u2', constants=_resource_type_constants)),
        ('_reserved', fixed_field('u2', default=0)),
        ('dev_id', fixed_field('u4')),
        ('_p2p_clk_conn_count', fixed_field('u8', default=0)),
        ('p2p_clk_conn_descriptors', array_field(P2pClockConnectionDescriptor, num_elems_field='_p2p_clk_conn_count'))
    ]
Exemplo n.º 8
0
class ClockConfig(PicmgEntry):
    ''' PICMG AMC.0 Specification R2.0, Table 3-35 '''

    _schema = [
        ('resource_type', fixed_field('u2', constants=_resource_type_constants)),
        ('_reserved', fixed_field('u2', default=0)),
        ('dev_id', fixed_field('u4')),
        ('_conf_desc_count', fixed_field('u8', default=0)),
        ('conf_desc', array_field(ClockConfigDescriptor, num_elems_field='_conf_desc_count')),
    ]
Exemplo n.º 9
0
class MtcaCarrierInformation(PicmgEntry):
    ''' PICMG Specification MTCA.0 R1.0, Table 3-16 '''

    _schema = [
        ('number', fixed_field('u8', default=0xff)),
        ('orientation', fixed_field('u1', constants={
            'l2r': 0,
            'b2t': 1
        })),
        ('_slot_entry_count', fixed_field('u7', default=0)),
        ('slot_entries', array_field(SlotEntry, num_elems_field='_slot_entry_count')),
    ]
Exemplo n.º 10
0
class P2pAmcResourceDescriptor(FruAreaBase):
    ''' PICMG AMC.0 Specification R2.0, Table 3-14 '''

    _schema = [
        ('resource_type', fixed_field('u1', constants={
            'amc': 1,
            'carrier': 0
        })),
        ('_reserved', fixed_field('u3', default=0)),
        ('site_no', fixed_field('u4')),
        ('_port_count', fixed_field('u8')),
        ('port_descriptors', array_field(P2pPortDescriptor, num_elems_field='_port_count')),
    ]
Exemplo n.º 11
0
class CarrierP2pConnectivity(PicmgEntry):
    ''' PICMG AMC.0 Specification R2.0, Table 3-13 '''

    _schema = [
        ('resource_descriptors', array_field(P2pAmcResourceDescriptor)),
    ]