A89: Re: HW detection
[Prev][Next][Index][Thread]
A89: Re: HW detection
Hi!
> Could anybody please give me a method, or a piece of code, to detect
> HW type (1 or 2) ?
This is answered in the FAQ list for TIGCCLIB. This routine returns
the HW type:
unsigned long GetHardwareVersion ()
{
unsigned long hwpb, *rombase;
rombase = (unsigned long *)((*(unsigned long *)0xC8) & 0x600000);
hwpb = rombase[65];
return (hwpb - (unsigned long)rombase < 0x10000 &&
*(unsigned short *)hwpb > 22 ? *(unsigned long *)(hwpb + 22) : 1);
}
Cheers,
Zeljko Juric
Follow-Ups: