diff options
Diffstat (limited to 'drivers/net/npe/IxFeatureCtrl.c')
| -rw-r--r-- | drivers/net/npe/IxFeatureCtrl.c | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/drivers/net/npe/IxFeatureCtrl.c b/drivers/net/npe/IxFeatureCtrl.c index 2e196a19a..b6728e4a4 100644 --- a/drivers/net/npe/IxFeatureCtrl.c +++ b/drivers/net/npe/IxFeatureCtrl.c @@ -72,7 +72,7 @@ IX_OSAL_WRITE_LONG(ixFeatureCtrlRegister, (value)); \  /* Boolean to mark the fact that the EXP_CONFIG address space was mapped */ -PRIVATE BOOL ixFeatureCtrlExpCfgRegionMapped = FALSE; +PRIVATE BOOL ixFeatureCtrlExpCfgRegionMapped = false;  /* Pointer holding the virtual address of the Feature Control Register */  PRIVATE VUINT32 *ixFeatureCtrlRegister = NULL; @@ -81,7 +81,7 @@ PRIVATE VUINT32 *ixFeatureCtrlRegister = NULL;  PRIVATE BOOL swConfiguration[IX_FEATURECTRL_SWCONFIG_MAX];  /* Flag to control swConfiguration[] is initialized once */ -PRIVATE BOOL swConfigurationFlag = FALSE ; +PRIVATE BOOL swConfigurationFlag = false ;  /* Array containing component mask values */  #ifdef __ixp42X @@ -158,7 +158,7 @@ void ixFeatureCtrlExpMap(void)      /* If the EXP Configuration space has already been mapped then       * return */ -    if (ixFeatureCtrlExpCfgRegionMapped == TRUE) +    if (ixFeatureCtrlExpCfgRegionMapped == true)      {  	return;      } @@ -176,7 +176,7 @@ void ixFeatureCtrlExpMap(void)  	(VUINT32 *) (expCfgBaseAddress + IX_FEATURE_CTRL_REG_OFFSET);      /* Mark the fact that the EXP_CONFIG space has already been mapped */ -    ixFeatureCtrlExpCfgRegionMapped = TRUE; +    ixFeatureCtrlExpCfgRegionMapped = true;  }  /** @@ -186,15 +186,15 @@ void ixFeatureCtrlExpMap(void)  PRIVATE void ixFeatureCtrlSwConfigurationInit(void)  {    UINT32 i; -  if (FALSE == swConfigurationFlag) +  if (false == swConfigurationFlag)    {      for (i=0; i<IX_FEATURECTRL_SWCONFIG_MAX ; i++)      {          /* By default, all software configuration are enabled */ -        swConfiguration[i]= TRUE ; +        swConfiguration[i]= true ;      }      /*Make sure this function only initializes swConfiguration[] once*/ -    swConfigurationFlag = TRUE ; +    swConfigurationFlag = true ;    }    } @@ -326,7 +326,7 @@ ixFeatureCtrlProductIdRead ()      extern  IxFeatureCtrlProductId AsmixFeatureCtrlProductIdRead();  #ifndef IN_KERNEL -    mode = SetKMode(TRUE); +    mode = SetKMode(true);  #endif      pdId = AsmixFeatureCtrlProductIdRead();  #ifndef IN_KERNEL @@ -372,7 +372,7 @@ ixFeatureCtrlSwConfigurationCheck (IxFeatureCtrlSwConfig swConfigType)    ixFeatureCtrlSwConfigurationInit();    /* Check and return software configuration */ -  return  ((swConfiguration[(UINT32)swConfigType] == TRUE) ? IX_FEATURE_CTRL_SWCONFIG_ENABLED: IX_FEATURE_CTRL_SWCONFIG_DISABLED); +  return  ((swConfiguration[(UINT32)swConfigType] == true) ? IX_FEATURE_CTRL_SWCONFIG_ENABLED: IX_FEATURE_CTRL_SWCONFIG_DISABLED);  }  /** |