/* Check if a CAN controller is present at the specified location by trying to set 'em into the PeliCAN mode  */
static int ems_pci_check_chan(const struct sja1000_priv *priv)
/* Check if a CAN controller is present at the specified location by trying to set 'em into the PeliCAN mode  */
static int ems_pci_check_chan(const struct sja1000_priv *priv)
{
	unsigned char res;
	priv->write_reg(priv, REG_MOD, 1);
	priv->write_reg(priv, REG_CDR, CDR_PELICAN);
	res = priv->read_reg(priv, REG_CDR);
	if (res == CDR_PELICAN)
		return 1;
	return 0;
}