H03381 s 00028/00000/00000 d D 1.1 02/03/13 20:31:03 patch 2 1 cC cF1 cK38592 cO-rw-rw-r-- e s 00000/00000/00000 d D 1.0 02/03/13 20:31:03 patch 1 0 c BitKeeper file /home/marcelo/bk/linux-2.4/arch/mips/hp-lj/asic.c cBtorvalds@athlon.transmeta.com|ChangeSet|20020205173056|16047|c1d11a41ed024864 cHplucky.distro.conectiva cK29982 cParch/mips/hp-lj/asic.c cRdf0abb181d4470b4 cV4 cX0x821 cZ-03:00 e u U f e 0 f x 0x821 t T I 2 #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()]; } E 2 I 1 E 1