Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

int dam_set_internal_network_mode_mask ( dam_port  port,
unsigned char  bit_mask 
)

This function sets a bit mask that selects the port from which of the RxD signals are to be ANDed together for internal network mode. Bit 6 represents RxD from Port7 and bit0 represents RxD from Port1. 1 excludes RxDn from ANDing. 0 includes RxDn for ANDing.

Parameters:
port the DAM port to configure
bit_mask the bit mask
Returns:
This function returns the result of the operation (0 if successful, -1 otherwise).
This function sets a bit mask that selects the port from which of the RxD signals are to be ANDed together for internal network mode. Bit 6 represents RxD from Port7 and bit0 represents RxD from Port1. 1 excludes RxDn from ANDing. 0 includes RxDn for ANDing.

Parameters:
port the DAM port to configure
bit_mask the bit mask
Returns:
This function returns the result of the operation (0 if successful, -1 otherwise).

Definition at line 345 of file dam.c.

References dam_internal_network_mode_shift, and ModifyRegister32.

Referenced by configure_dam_pmic_master().

{
      int result;
      result = 0;

      ModifyRegister32(dam_internal_network_mode_mask <<
                   dam_internal_network_mode_shift,
                   bit_mask << dam_internal_network_mode_shift,
                   _reg_DAM_PDCR(port));

      return result;
}


Generated by  Doxygen 1.6.0   Back to index