OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-ia64/] [sn/] [geo.h] - Blame information for rev 1275

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/* $Id: geo.h,v 1.1.1.1 2004-04-15 02:42:28 phoenix Exp $
2
 *
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
5
 * for more details.
6
 *
7
 * Copyright (C) 1992 - 1997, 2000-2003 Silicon Graphics, Inc. All rights reserved.
8
 */
9
 
10
#ifndef __SYS_GEO_H__
11
#define __SYS_GEO_H__
12
 
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
18
 */
19
 
20
#include <asm/sn/sn2/geo.h>
21
 
22
/* Declarations applicable to all platforms */
23
 
24
/* parameter for hwcfg_format_geoid() */
25
#define GEO_FORMAT_HWGRAPH      1
26
#define GEO_FORMAT_BRIEF        2
27
 
28
/* (the parameter for hwcfg_format_geoid_compt() is defined in the
29
 * platform-specific geo.h file) */
30
 
31
/* Routines for manipulating geoid_t values */
32
 
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, ...);
39
 
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);
45
 
46
#endif /* __SYS_GEO_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.