/* bfa_sgpg_mod BFA SGPG Mode module Compute and return memory needed by FCP(im) module.  */
static void bfa_sgpg_meminfo(struct bfa_iocfc_cfg_s *cfg, u32 *km_len, u32 *dm_len)
/* bfa_sgpg_mod BFA SGPG Mode module Compute and return memory needed by FCP(im) module.  */
static void bfa_sgpg_meminfo(struct bfa_iocfc_cfg_s *cfg, u32 *km_len, u32 *dm_len)
{
	if (cfg->drvcfg.num_sgpgs < BFA_SGPG_MIN)
		cfg->drvcfg.num_sgpgs = BFA_SGPG_MIN;
	*km_len += (cfg->drvcfg.num_sgpgs + 1) * sizeof(struct bfa_sgpg_s);
	*dm_len += (cfg->drvcfg.num_sgpgs + 1) * sizeof(struct bfi_sgpg_s);
}