OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [mips/] [hp-lj/] [asic.c] - Rev 1765

Compare with Previous | Blame | View Log

 
 
#include "asm/hp-lj/asic.h"
 
AsicId GetAsicId(void)
{
   static int asic = IllegalAsic;
 
   if (asic == IllegalAsic) {
      if (*(unsigned int *)0xbff70000 == 0x1114103c)
         asic = HarmonyAsic;
      else if (*(unsigned int *)0xbff80000 == 0x110d103c)
         asic = AndrosAsic;
      else
	 asic = UnknownAsic;
   }
   return asic;
}
 
 
const char* const GetAsicName(void)
{
   static const char* const Names[] =
        { "Illegal", "Unknown", "Andros", "Harmony" };
 
   return Names[(int)GetAsicId()];
}
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.