Lines Matching defs:port
25 * sn_io_addr - convert an in/out port to an i/o address
26 * @port: port to convert
29 * on IA64. This routine will convert a port number into a valid
33 void *sn_io_addr(unsigned long port)
36 if (IS_LEGACY_VGA_IOPORT(port))
37 return (__ia64_mk_io_addr(port));
39 if (port < (64 * 1024))
42 return (__ia64_mk_io_addr(port));
44 return ((void *)(port | __IA64_UNCACHED_OFFSET));
50 * word align port, but need more than 10 bits
52 * (so we don't do port&0xfff)
54 addr = (is_shub2() ? 0xc00000028c000000UL : 0xc0000087cc000000UL) | ((port >> 2) << 12);
55 if ((port >= 0x1f0 && port <= 0x1f7) || port == 0x3f6 || port == 0x3f7)
56 addr |= port;