/* * 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-2003, 2006 Silicon Graphics, Inc. All rights reserved. */ #include <linux/module.h> #include <linux/acpi.h> #include <asm/io.h> #include <asm/delay.h> #include <asm/vga.h> #include <asm/sn/nodepda.h> #include <asm/sn/simulator.h> #include <asm/sn/pda.h> #include <asm/sn/sn_cpuid.h> #include <asm/sn/shub_mmr.h> #include <asm/sn/acpi.h> #define IS_LEGACY_VGA_IOPORT(p) \ (((p) >= 0x3b0 && (p) <= 0x3bb) || ((p) >= 0x3c0 && (p) <= 0x3df)) /** * sn_io_addr - convert an in/out port to an i/o address * @port: port to convert * * Legacy in/out instructions are converted to ld/st instructions * on IA64. This routine will convert a port number into a valid * SN i/o address. Used by sn_in*() and sn_out*(). */
void *sn_io_addr(unsigned long port) { if (!IS_RUNNING_ON_SIMULATOR()) { if (IS_LEGACY_VGA_IOPORT(port)) return (__ia64_mk_io_addr(port)); /* On sn2, legacy I/O ports don't point at anything */ if (port < (64 * 1024)) return NULL; if (SN_ACPI_BASE_SUPPORT()) return (__ia64_mk_io_addr(port)); else return ((void *)(port | __IA64_UNCACHED_OFFSET)); } else { /* but the simulator uses them... */ unsigned long addr; /* * word align port, but need more than 10 bits * for accessing registers in bedrock local block * (so we don't do port&0xfff) */ addr = (is_shub2() ? 0xc00000028c000000UL : 0xc0000087cc000000UL) | ((port >> 2) << 12); if ((port >= 0x1f0 && port <= 0x1f7) || port == 0x3f6 || port == 0x3f7) addr |= port; return (void *)addr; } }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Patrick Gefre | 83 | 61.48% | 1 | 16.67% |
Jack Steiner | 22 | 16.30% | 1 | 16.67% |
John Keller | 20 | 14.81% | 1 | 16.67% |
Mark Maule | 8 | 5.93% | 1 | 16.67% |
Len Brown | 1 | 0.74% | 1 | 16.67% |
Jesse Barnes | 1 | 0.74% | 1 | 16.67% |
Total | 135 | 100.00% | 6 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jack Steiner | 19 | 48.72% | 1 | 25.00% |
Patrick Gefre | 17 | 43.59% | 1 | 25.00% |
Jesse Barnes | 3 | 7.69% | 2 | 50.00% |
Total | 39 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Patrick Gefre | 130 | 57.02% | 1 | 9.09% |
Jack Steiner | 44 | 19.30% | 3 | 27.27% |
John Keller | 23 | 10.09% | 1 | 9.09% |
Mark Maule | 19 | 8.33% | 1 | 9.09% |
Jesse Barnes | 5 | 2.19% | 2 | 18.18% |
Len Brown | 4 | 1.75% | 1 | 9.09% |
Alexey Y. Starikovskiy | 2 | 0.88% | 1 | 9.09% |
Mauro Carvalho Chehab | 1 | 0.44% | 1 | 9.09% |
Total | 228 | 100.00% | 11 | 100.00% |