3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
7 * Copyright (C) 1992 - 1997, 2000-2003 Silicon Graphics, Inc. All rights reserved.
13 /* Include a platform-specific geo.h. It must define at least:
14 * geoid_t: Geographic identifier data type
15 * geo_type_t: Data type for the kind of geoid this is
16 * GEO_TYPE_xxx: Values for geo_type_t vars, eg. GEO_TYPE_NODE
17 * GEO_MAX_LEN: The maximum length of a geoid, formatted for printing
20 #include <asm/sn/sn2/geo.h>
22 /* Declarations applicable to all platforms */
24 /* parameter for hwcfg_format_geoid() */
25 #define GEO_FORMAT_HWGRAPH 1
26 #define GEO_FORMAT_BRIEF 2
28 /* (the parameter for hwcfg_format_geoid_compt() is defined in the
29 * platform-specific geo.h file) */
31 /* Routines for manipulating geoid_t values */
33 extern moduleid_t geo_module(geoid_t g);
34 extern slabid_t geo_slab(geoid_t g);
35 extern geo_type_t geo_type(geoid_t g);
36 extern int geo_valid(geoid_t g);
37 extern int geo_cmp(geoid_t g0, geoid_t g1);
38 extern geoid_t geo_new(geo_type_t type, ...);
40 extern geoid_t hwcfg_parse_geoid(char *buffer);
41 extern void hwcfg_format_geoid(char *buffer, geoid_t m, int fmt);
42 extern void hwcfg_format_geoid_compt(char *buffer, geoid_t m, int compt);
43 extern geoid_t hwcfg_geo_get_self(geo_type_t type);
44 extern geoid_t hwcfg_geo_get_by_nasid(geo_type_t type, nasid_t nasid);
46 #endif /* __SYS_GEO_H__ */