if (IS_LEGACY_VGA_IOPORT(port)) port += vga_console_iobase; 
void *sn_io_addr(unsigned long port){	if (!IS_RUNNING_ON_SIMULATOR()) {		/* On sn2, legacy I/O ports don't point at anything */		if (port < (64 * 1024))			return NULL;		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;	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/a9f9de7378e3a81f7266f542f2290399a298ef52/iomv.c/clean/arch/ia64/sn/kernel/iomv.c