Fix Sparc64 insw and outsw

git-svn-id: svn://coreboot.org/openbios/openbios-devel@161 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2007-07-09 16:25:32 +00:00
parent ff220a1322
commit d77b4ab701

View File

@@ -43,8 +43,8 @@ pa2va(unsigned long pa)
* are arrays of bytes, and byte-swapping is not appropriate in * are arrays of bytes, and byte-swapping is not appropriate in
* that case. - paulus * that case. - paulus
*/ */
#define insw(port, buf, ns) _insw_ns((uint16_t *)((port)+_IO_BASE), (buf), (ns)) #define insw(port, buf, ns) _insw((uint16_t *)((port)+_IO_BASE), (buf), (ns))
#define outsw(port, buf, ns) _outsw_ns((uint16_t *)((port)+_IO_BASE), (buf), (ns)) #define outsw(port, buf, ns) _outsw((uint16_t *)((port)+_IO_BASE), (buf), (ns))
#define inb(port) in_8((uint8_t *)((port)+_IO_BASE)) #define inb(port) in_8((uint8_t *)((port)+_IO_BASE))
#define outb(val, port) out_8((uint8_t *)((port)+_IO_BASE), (val)) #define outb(val, port) out_8((uint8_t *)((port)+_IO_BASE), (val))