PERFORCE change 103259 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Sat Aug 5 17:09:05 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103259
Change 103259 by gonzo at gonzo_hq on 2006/08/05 17:08:23
o Enable bus_space_write_X functions family.
Affected files ...
.. //depot/projects/mips2/src/sys/mips/include/bus.h#4 edit
Differences ...
==== //depot/projects/mips2/src/sys/mips/include/bus.h#4 (text+ko) ====
@@ -469,36 +469,21 @@
bus_space_write_1(bus_space_tag_t tag, bus_space_handle_t bsh,
bus_size_t offset, u_int8_t value)
{
-#if 0
- if (tag == MIPS_BUS_SPACE_IO)
- outb(bsh + offset, value);
- else
- *(volatile u_int8_t *)(bsh + offset) = value;
-#endif
+ *(volatile u_int8_t *)(bsh + offset) = value;
}
static __inline void
bus_space_write_2(bus_space_tag_t tag, bus_space_handle_t bsh,
bus_size_t offset, u_int16_t value)
{
-#if 0
- if (tag == MIPS_BUS_SPACE_IO)
- outw(bsh + offset, value);
- else
- *(volatile u_int16_t *)(bsh + offset) = value;
-#endif
+ *(volatile u_int16_t *)(bsh + offset) = value;
}
static __inline void
bus_space_write_4(bus_space_tag_t tag, bus_space_handle_t bsh,
bus_size_t offset, u_int32_t value)
{
-#if 0
- if (tag == MIPS_BUS_SPACE_IO)
- outl(bsh + offset, value);
- else
- *(volatile u_int32_t *)(bsh + offset) = value;
-#endif
+ *(volatile u_int32_t *)(bsh + offset) = value;
}
#if 0 /* Cause a link error for bus_space_write_8 */
More information about the p4-projects
mailing list