patch-1.3.4 linux/include/asm-sparc/idprom.h
Next file: linux/include/asm-sparc/io.h
Previous file: linux/include/asm-sparc/head.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Thu Jun 8 23:44:28 1995
- Orig file:
v1.3.3/linux/include/asm-sparc/idprom.h
- Orig date:
Thu Feb 2 08:42:35 1995
diff -u --recursive --new-file v1.3.3/linux/include/asm-sparc/idprom.h linux/include/asm-sparc/idprom.h
@@ -3,10 +3,17 @@
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
*/
+#ifndef _SPARC_IDPROM_H
+#define _SPARC_IDPROM_H
+
extern struct linux_romvec *romvec;
-#define IDPROM_ADDR (0xffd04000 + 0x7d8)
-#define IDPROM_SIZE 36
+/* Offset into the EEPROM where the id PROM is located on the 4c */
+#define IDPROM_OFFSET 0x7d8
+
+/* On sun4m; physical. */
+/* MicroSPARC(-II) does not decode 31rd bit, but it works. */
+#define IDPROM_OFFSET_M 0xfd8
struct idp_struct
{
@@ -19,3 +26,8 @@
unsigned char dummy[16]; /* XXX */
};
+extern struct idp_struct *idprom;
+
+#define IDPROM_SIZE (sizeof(struct idp_struct))
+
+#endif /* !(_SPARC_IDPROM_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this