Exemple #1
0
        private bool DetectSMSC(LPCPort port)
        {
            port.SMSCEnter();

            ushort chipID = port.ReadWord(CHIP_ID_REGISTER);
            Chip   chip;

            switch (chipID)
            {
            default: chip = Chip.Unknown; break;
            }
            if (chip == Chip.Unknown)
            {
                if (chipID != 0 && chipID != 0xffff)
                {
                    port.SMSCExit();

                    ReportUnknownChip(port, "SMSC", chipID);
                }
            }
            else
            {
                port.SMSCExit();
                return(true);
            }

            return(false);
        }