patch-2.4.21 linux-2.4.21/include/asm-ia64/sn/eeprom.h
Next file: linux-2.4.21/include/asm-ia64/sn/fetchop.h
Previous file: linux-2.4.21/include/asm-ia64/sn/dmamap.h
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/asm-ia64/sn/eeprom.h
- Orig date:
2002-08-02 17:39:45.000000000 -0700
diff -urN linux-2.4.20/include/asm-ia64/sn/eeprom.h linux-2.4.21/include/asm-ia64/sn/eeprom.h
@@ -11,6 +11,7 @@
#ifndef _ASM_IA64_SN_EEPROM_H
#define _ASM_IA64_SN_EEPROM_H
+#include <linux/config.h>
#include <asm/sn/sgi.h>
#include <asm/sn/vector.h>
#include <asm/sn/xtalk/xbow.h>
@@ -291,6 +292,8 @@
/* functions & macros for obtaining "NIC-like" strings from EEPROMs
*/
+#ifdef CONFIG_IA64_SGI_SN1
+
int eeprom_str( char *nic_str, nasid_t nasid, int component );
int vector_eeprom_str( char *nic_str, nasid_t nasid,
int component, net_vec_t path );
@@ -300,6 +303,7 @@
#define RBRICK_EEPROM_STR(s,n,p) vector_eeprom_str((s),(n),R_BRICK,p)
#define VECTOR_EEPROM_STR(s,n,p) vector_eeprom_str((s),(n),VECTOR,p)
+#endif /* CONFIG_IA64_SGI_SN1 */
/* functions for obtaining formatted records from EEPROMs
@@ -313,13 +317,6 @@
net_vec_t path, int component );
-/* functions providing unique id's for duplonet and i/o discovery
- */
-
-int cbrick_uid_get( nasid_t nasid, uint64_t *uid );
-int rbrick_uid_get( nasid_t nasid, net_vec_t path, uint64_t *uid );
-int iobrick_uid_get( nasid_t nasid, uint64_t *uid );
-
/* retrieve the ethernet MAC address for an I-brick
*/
@@ -384,8 +381,4 @@
( IO_BRICK, NASID_GET((r)), (v), 0 ) \
: nic_bridge_vertex_info((v), (r)) )
-#define HUB_UID_GET(n,v,p) cbrick_uid_get((n),(p))
-#define ROUTER_UID_GET(d,p) rbrick_uid_get(get_nasid(),(d),(p))
-#define XBOW_UID_GET(n,p) iobrick_uid_get((n),(p))
-
#endif /* _ASM_IA64_SN_EEPROM_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)