TagResp = 1<<31,
TagGetfwrev = 0x00000001,
+ TagGetbrdrev = 0x00010002,
TagGetmac = 0x00010003,
TagGetram = 0x00010005,
TagGetpower = 0x00020001,
return buf[0];
}
+uint
+getrevision(void)
+{
+ u32int buf[1];
+ if(vcreq(TagGetbrdrev, buf, 0, sizeof buf) != sizeof buf)
+ return 0;
+ return buf[0];
+}
+
/*
* Get ARM ram
*/
return 0;
return buf[1];
}
+
+uint
+gettemp(int tempid)
+{
+ u32int buf[2];
+ buf[0] = tempid;
+ if(vcreq(0x00030006, buf, sizeof(buf[0]), sizeof(buf)) != sizeof buf)
+ return 0;
+
+ return buf[1];
+}