Date: Sat, 5 Aug 2006 17:09:04 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 103259 for review Message-ID: <200608051709.k75H94iD023559@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103259 Change 103259 by gonzo@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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608051709.k75H94iD023559>