OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
arch
/
ia64
/
include
/
asm
/
sn
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:20 AM
rwxr-xr-x
📄
acpi.h
423 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
addrs.h
9.69 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
arch.h
2.72 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bte.h
7.61 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
clksupport.h
844 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
geo.h
3.51 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
intr.h
2.24 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
io.h
5.68 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ioc3.h
7.91 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
klconfig.h
10.15 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
l1.h
2.28 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
leds.h
819 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
module.h
4.01 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mspec.h
1.78 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
nodepda.h
2.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pcibr_provider.h
5.52 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pcibus_provider_defs.h
2.16 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pcidev.h
3.05 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pda.h
1.94 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pic.h
9.06 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
rw_mmr.h
944 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
shub_mmr.h
26.25 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
shubio.h
127.34 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
simulator.h
917 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📁
sn2
-
11/17/2022 06:42:19 AM
rwxr-xr-x
📄
sn_cpuid.h
4.24 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sn_feature_sets.h
1.61 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sn_sal.h
33.14 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tioca.h
20.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tioca_provider.h
6 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tioce.h
29.87 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tioce_provider.h
1.49 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tiocp.h
8.3 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tiocx.h
2.24 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
types.h
957 bytes
01/28/2018 09:20:33 PM
rw-r--r--
Editing: sn_cpuid.h
Close
/* * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2000-2005 Silicon Graphics, Inc. All rights reserved. */ #ifndef _ASM_IA64_SN_SN_CPUID_H #define _ASM_IA64_SN_SN_CPUID_H #include <linux/smp.h> #include <asm/sn/addrs.h> #include <asm/sn/pda.h> #include <asm/intrinsics.h> /* * Functions for converting between cpuids, nodeids and NASIDs. * * These are for SGI platforms only. * */ /* * Definitions of terms (these definitions are for IA64 ONLY. Other architectures * use cpuid/cpunum quite defferently): * * CPUID - a number in range of 0..NR_CPUS-1 that uniquely identifies * the cpu. The value cpuid has no significance on IA64 other than * the boot cpu is 0. * smp_processor_id() returns the cpuid of the current cpu. * * CPU_PHYSICAL_ID (also known as HARD_PROCESSOR_ID) * This is the same as 31:24 of the processor LID register * hard_smp_processor_id()- cpu_physical_id of current processor * cpu_physical_id(cpuid) - convert a <cpuid> to a <physical_cpuid> * cpu_logical_id(phy_id) - convert a <physical_cpuid> to a <cpuid> * * not real efficient - don't use in perf critical code * * SLICE - a number in the range of 0 - 3 (typically) that represents the * cpu number on a brick. * * SUBNODE - (almost obsolete) the number of the FSB that a cpu is * connected to. This is also the same as the PI number. Usually 0 or 1. * * NOTE!!!: the value of the bits in the cpu physical id (SAPICid or LID) of a cpu has no * significance. The SAPIC id (LID) is a 16-bit cookie that has meaning only to the PROM. * * * The macros convert between cpu physical ids & slice/nasid/cnodeid. * These terms are described below: * * * Brick * ----- ----- ----- ----- CPU * | 0 | | 1 | | 0 | | 1 | SLICE * ----- ----- ----- ----- * | | | | * | | | | * 0 | | 2 0 | | 2 FSB SLOT * ------- ------- * | | * | | * | | * ------------ ------------- * | | | | * | SHUB | | SHUB | NASID (0..MAX_NASIDS) * | |----- | | CNODEID (0..num_compact_nodes-1) * | | | | * | | | | * ------------ ------------- * | | * * */ #define get_node_number(addr) NASID_GET(addr) /* * NOTE: on non-MP systems, only cpuid 0 exists */ extern short physical_node_map[]; /* indexed by nasid to get cnode */ /* * Macros for retrieving info about current cpu */ #define get_nasid() (sn_nodepda->phys_cpuid[smp_processor_id()].nasid) #define get_subnode() (sn_nodepda->phys_cpuid[smp_processor_id()].subnode) #define get_slice() (sn_nodepda->phys_cpuid[smp_processor_id()].slice) #define get_cnode() (sn_nodepda->phys_cpuid[smp_processor_id()].cnode) #define get_sapicid() ((ia64_getreg(_IA64_REG_CR_LID) >> 16) & 0xffff) /* * Macros for retrieving info about an arbitrary cpu * cpuid - logical cpu id */ #define cpuid_to_nasid(cpuid) (sn_nodepda->phys_cpuid[cpuid].nasid) #define cpuid_to_subnode(cpuid) (sn_nodepda->phys_cpuid[cpuid].subnode) #define cpuid_to_slice(cpuid) (sn_nodepda->phys_cpuid[cpuid].slice) /* * Dont use the following in performance critical code. They require scans * of potentially large tables. */ extern int nasid_slice_to_cpuid(int, int); /* * cnodeid_to_nasid - convert a cnodeid to a NASID */ #define cnodeid_to_nasid(cnodeid) (sn_cnodeid_to_nasid[cnodeid]) /* * nasid_to_cnodeid - convert a NASID to a cnodeid */ #define nasid_to_cnodeid(nasid) (physical_node_map[nasid]) /* * partition_coherence_id - get the coherence ID of the current partition */ extern u8 sn_coherency_id; #define partition_coherence_id() (sn_coherency_id) #endif /* _ASM_IA64_SN_SN_CPUID_H */