diff --git a/sys/alpha/include/bus_memio.h b/sys/alpha/include/bus_memio.h deleted file mode 100644 index d0b0ba38a61..00000000000 --- a/sys/alpha/include/bus_memio.h +++ /dev/null @@ -1,31 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ - */ - -#ifndef _ALPHA_BUS_MEMIO_H_ -#define _ALPHA_BUS_MEMIO_H_ -#endif /* _ALPHA_BUS_MEMIO_H_ */ diff --git a/sys/alpha/include/bus_pio.h b/sys/alpha/include/bus_pio.h deleted file mode 100644 index f51bf436642..00000000000 --- a/sys/alpha/include/bus_pio.h +++ /dev/null @@ -1,31 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ - */ - -#ifndef _ALPHA_BUS_PIO_H_ -#define _ALPHA_BUS_PIO_H_ -#endif /* _ALPHA_BUS_PIO_H_ */ diff --git a/sys/alpha/isa/mcclock_isa.c b/sys/alpha/isa/mcclock_isa.c index 3cddfa578ec..de13690c0bd 100644 --- a/sys/alpha/isa/mcclock_isa.c +++ b/sys/alpha/isa/mcclock_isa.c @@ -37,7 +37,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include diff --git a/sys/amd64/include/bus.h b/sys/amd64/include/bus.h index 41431736237..b1a91a27b2d 100644 --- a/sys/amd64/include/bus.h +++ b/sys/amd64/include/bus.h @@ -107,15 +107,6 @@ #include #include -/* - * To remain compatible with NetBSD's interface, default to both memio and - * pio when neither of them is defined. - */ -#if !defined(_AMD64_BUS_PIO_H_) && !defined(_AMD64_BUS_MEMIO_H_) -#define _AMD64_BUS_PIO_H_ -#define _AMD64_BUS_MEMIO_H_ -#endif - /* * Values for the amd64 bus space tag, not to be used directly by MI code. */ @@ -204,8 +195,6 @@ bus_space_free(bus_space_tag_t t __unused, bus_space_handle_t bsh __unused, } -#if defined(_AMD64_BUS_PIO_H_) || defined(_AMD64_BUS_MEMIO_H_) - /* * Read a 1, 2, 4, or 8 byte quantity from bus space * described by tag/handle/offset. @@ -226,45 +215,30 @@ static __inline u_int8_t bus_space_read_1(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t offset) { -#if defined (_AMD64_BUS_PIO_H_) -#if defined (_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif return (inb(handle + offset)); -#endif -#if defined (_AMD64_BUS_MEMIO_H_) return (*(volatile u_int8_t *)(handle + offset)); -#endif } static __inline u_int16_t bus_space_read_2(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t offset) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif return (inw(handle + offset)); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) return (*(volatile u_int16_t *)(handle + offset)); -#endif } static __inline u_int32_t bus_space_read_4(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t offset) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif return (inl(handle + offset)); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) return (*(volatile u_int32_t *)(handle + offset)); -#endif } #if 0 /* Cause a link error for bus_space_read_8 */ @@ -294,17 +268,10 @@ static __inline void bus_space_read_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int8_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif insb(bsh + offset, addr, count); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -316,24 +283,16 @@ bus_space_read_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh, "%eax", "memory"); #endif } -#endif } static __inline void bus_space_read_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int16_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif insw(bsh + offset, addr, count); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -345,24 +304,16 @@ bus_space_read_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh, "%eax", "memory"); #endif } -#endif } static __inline void bus_space_read_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int32_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif insl(bsh + offset, addr, count); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -374,7 +325,6 @@ bus_space_read_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh, "%eax", "memory"); #endif } -#endif } #if 0 /* Cause a link error for bus_space_read_multi_8 */ @@ -406,11 +356,8 @@ static __inline void bus_space_read_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int8_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) - if (tag == AMD64_BUS_SPACE_IO) -#endif - { + + if (tag == AMD64_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -423,13 +370,7 @@ bus_space_read_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, "0" (addr), "1" (count), "2" (_port_) : "%eax", "memory", "cc"); #endif - } -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + } else { bus_space_handle_t _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -441,18 +382,14 @@ bus_space_read_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, "memory", "cc"); #endif } -#endif } static __inline void bus_space_read_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int16_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) - if (tag == AMD64_BUS_SPACE_IO) -#endif - { + + if (tag == AMD64_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -465,13 +402,7 @@ bus_space_read_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, "0" (addr), "1" (count), "2" (_port_) : "%eax", "memory", "cc"); #endif - } -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + } else { bus_space_handle_t _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -483,18 +414,14 @@ bus_space_read_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, "memory", "cc"); #endif } -#endif } static __inline void bus_space_read_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int32_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) - if (tag == AMD64_BUS_SPACE_IO) -#endif - { + + if (tag == AMD64_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -507,13 +434,7 @@ bus_space_read_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, "0" (addr), "1" (count), "2" (_port_) : "%eax", "memory", "cc"); #endif - } -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + } else { bus_space_handle_t _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -525,7 +446,6 @@ bus_space_read_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, "memory", "cc"); #endif } -#endif } #if 0 /* Cause a link error for bus_space_read_region_8 */ @@ -553,54 +473,33 @@ static __inline void bus_space_write_1(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int8_t value) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif outb(bsh + offset, value); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) else -#endif *(volatile u_int8_t *)(bsh + offset) = value; -#endif } 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 defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif outw(bsh + offset, value); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) else -#endif *(volatile u_int16_t *)(bsh + offset) = value; -#endif } 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 defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif outl(bsh + offset, value); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) else -#endif *(volatile u_int32_t *)(bsh + offset) = value; -#endif } #if 0 /* Cause a link error for bus_space_write_8 */ @@ -633,17 +532,10 @@ static __inline void bus_space_write_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int8_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif outsb(bsh + offset, addr, count); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -655,24 +547,16 @@ bus_space_write_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh, "%eax", "memory", "cc"); #endif } -#endif } static __inline void bus_space_write_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int16_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif outsw(bsh + offset, addr, count); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -684,24 +568,16 @@ bus_space_write_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh, "%eax", "memory", "cc"); #endif } -#endif } static __inline void bus_space_write_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int32_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) + if (tag == AMD64_BUS_SPACE_IO) -#endif outsl(bsh + offset, addr, count); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -713,7 +589,6 @@ bus_space_write_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh, "%eax", "memory", "cc"); #endif } -#endif } #if 0 /* Cause a link error for bus_space_write_multi_8 */ @@ -746,11 +621,8 @@ static __inline void bus_space_write_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int8_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) - if (tag == AMD64_BUS_SPACE_IO) -#endif - { + + if (tag == AMD64_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -763,13 +635,7 @@ bus_space_write_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, "0" (_port_), "1" (addr), "2" (count) : "%eax", "memory", "cc"); #endif - } -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + } else { bus_space_handle_t _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -781,18 +647,14 @@ bus_space_write_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, "memory", "cc"); #endif } -#endif } static __inline void bus_space_write_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int16_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) - if (tag == AMD64_BUS_SPACE_IO) -#endif - { + + if (tag == AMD64_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -805,13 +667,7 @@ bus_space_write_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, "0" (_port_), "1" (addr), "2" (count) : "%eax", "memory", "cc"); #endif - } -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + } else { bus_space_handle_t _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -823,18 +679,14 @@ bus_space_write_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, "memory", "cc"); #endif } -#endif } static __inline void bus_space_write_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int32_t *addr, size_t count) { -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) - if (tag == AMD64_BUS_SPACE_IO) -#endif - { + + if (tag == AMD64_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -847,13 +699,7 @@ bus_space_write_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, "0" (_port_), "1" (addr), "2" (count) : "%eax", "memory", "cc"); #endif - } -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + } else { bus_space_handle_t _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -865,7 +711,6 @@ bus_space_write_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, "memory", "cc"); #endif } -#endif } #if 0 /* Cause a link error for bus_space_write_region_8 */ @@ -897,20 +742,12 @@ bus_space_set_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) if (tag == AMD64_BUS_SPACE_IO) -#endif while (count--) outb(addr, value); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) else -#endif while (count--) *(volatile u_int8_t *)(addr) = value; -#endif } static __inline void @@ -919,20 +756,12 @@ bus_space_set_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) if (tag == AMD64_BUS_SPACE_IO) -#endif while (count--) outw(addr, value); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) else -#endif while (count--) *(volatile u_int16_t *)(addr) = value; -#endif } static __inline void @@ -941,20 +770,12 @@ bus_space_set_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) if (tag == AMD64_BUS_SPACE_IO) -#endif while (count--) outl(addr, value); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) else -#endif while (count--) *(volatile u_int32_t *)(addr) = value; -#endif } #if 0 /* Cause a link error for bus_space_set_multi_8 */ @@ -985,20 +806,12 @@ bus_space_set_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) if (tag == AMD64_BUS_SPACE_IO) -#endif for (; count != 0; count--, addr++) outb(addr, value); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) else -#endif for (; count != 0; count--, addr++) *(volatile u_int8_t *)(addr) = value; -#endif } static __inline void @@ -1007,20 +820,12 @@ bus_space_set_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) if (tag == AMD64_BUS_SPACE_IO) -#endif for (; count != 0; count--, addr += 2) outw(addr, value); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) else -#endif for (; count != 0; count--, addr += 2) *(volatile u_int16_t *)(addr) = value; -#endif } static __inline void @@ -1029,20 +834,12 @@ bus_space_set_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) if (tag == AMD64_BUS_SPACE_IO) -#endif for (; count != 0; count--, addr += 4) outl(addr, value); -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) else -#endif for (; count != 0; count--, addr += 4) *(volatile u_int32_t *)(addr) = value; -#endif } #if 0 /* Cause a link error for bus_space_set_region_8 */ @@ -1080,11 +877,7 @@ bus_space_copy_region_1(bus_space_tag_t tag, bus_space_handle_t bsh1, bus_space_handle_t addr1 = bsh1 + off1; bus_space_handle_t addr2 = bsh2 + off2; -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) - if (tag == AMD64_BUS_SPACE_IO) -#endif - { + if (tag == AMD64_BUS_SPACE_IO) { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1++, addr2++) @@ -1095,13 +888,7 @@ bus_space_copy_region_1(bus_space_tag_t tag, bus_space_handle_t bsh1, count != 0; count--, addr1--, addr2--) outb(addr2, inb(addr1)); } - } -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + } else { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1++, addr2++) @@ -1115,7 +902,6 @@ bus_space_copy_region_1(bus_space_tag_t tag, bus_space_handle_t bsh1, *(volatile u_int8_t *)(addr1); } } -#endif } static __inline void @@ -1126,11 +912,7 @@ bus_space_copy_region_2(bus_space_tag_t tag, bus_space_handle_t bsh1, bus_space_handle_t addr1 = bsh1 + off1; bus_space_handle_t addr2 = bsh2 + off2; -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) - if (tag == AMD64_BUS_SPACE_IO) -#endif - { + if (tag == AMD64_BUS_SPACE_IO) { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1 += 2, addr2 += 2) @@ -1141,13 +923,7 @@ bus_space_copy_region_2(bus_space_tag_t tag, bus_space_handle_t bsh1, count != 0; count--, addr1 -= 2, addr2 -= 2) outw(addr2, inw(addr1)); } - } -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + } else { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1 += 2, addr2 += 2) @@ -1161,7 +937,6 @@ bus_space_copy_region_2(bus_space_tag_t tag, bus_space_handle_t bsh1, *(volatile u_int16_t *)(addr1); } } -#endif } static __inline void @@ -1172,11 +947,7 @@ bus_space_copy_region_4(bus_space_tag_t tag, bus_space_handle_t bsh1, bus_space_handle_t addr1 = bsh1 + off1; bus_space_handle_t addr2 = bsh2 + off2; -#if defined(_AMD64_BUS_PIO_H_) -#if defined(_AMD64_BUS_MEMIO_H_) - if (tag == AMD64_BUS_SPACE_IO) -#endif - { + if (tag == AMD64_BUS_SPACE_IO) { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1 += 4, addr2 += 4) @@ -1187,13 +958,7 @@ bus_space_copy_region_4(bus_space_tag_t tag, bus_space_handle_t bsh1, count != 0; count--, addr1 -= 4, addr2 -= 4) outl(addr2, inl(addr1)); } - } -#endif -#if defined(_AMD64_BUS_MEMIO_H_) -#if defined(_AMD64_BUS_PIO_H_) - else -#endif - { + } else { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1 += 4, addr2 += 4) @@ -1207,11 +972,8 @@ bus_space_copy_region_4(bus_space_tag_t tag, bus_space_handle_t bsh1, *(volatile u_int32_t *)(addr1); } } -#endif } -#endif /* defined(_AMD64_BUS_PIO_H_) || defined(_AMD64_MEM_IO_H_) */ - #if 0 /* Cause a link error for bus_space_copy_8 */ #define bus_space_copy_region_8 !!! bus_space_copy_region_8 unimplemented !!! #endif diff --git a/sys/amd64/include/bus_memio.h b/sys/amd64/include/bus_memio.h deleted file mode 100644 index 6a0d4f8a95d..00000000000 --- a/sys/amd64/include/bus_memio.h +++ /dev/null @@ -1,31 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ - */ - -#ifndef _AMD64_BUS_MEMIO_H_ -#define _AMD64_BUS_MEMIO_H_ -#endif /* _AMD64_BUS_MEMIO_H_ */ diff --git a/sys/amd64/include/bus_pio.h b/sys/amd64/include/bus_pio.h deleted file mode 100644 index 2044adf0763..00000000000 --- a/sys/amd64/include/bus_pio.h +++ /dev/null @@ -1,31 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ - */ - -#ifndef _AMD64_BUS_PIO_H_ -#define _AMD64_BUS_PIO_H_ -#endif /* _AMD64_BUS_PIO_H_ */ diff --git a/sys/arm/include/bus_memio.h b/sys/arm/include/bus_memio.h deleted file mode 100644 index 24410006b93..00000000000 --- a/sys/arm/include/bus_memio.h +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: FreeBSD: src/sys/i386/include/bus_memio.h,v 1.2 1999/08/28 - * - * $FreeBSD$ - */ - -#ifndef _MACHINE_BUS_MEMIO_H_ -#define _MACHINE_BUS_MEMIO_H_ -#endif /* _MACHINE_BUS_MEMIO_H_ */ diff --git a/sys/arm/include/bus_pio.h b/sys/arm/include/bus_pio.h deleted file mode 100644 index aba61dfddfc..00000000000 --- a/sys/arm/include/bus_pio.h +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: FreeBSD: src/sys/i386/include/bus_pio.h,v 1.2 1999/08/28 - * - * $FreeBSD$ - */ - -#ifndef _MACHINE_BUS_PIO_H_ -#define _MACHINE_BUS_PIO_H_ -#endif /* _MACHINE_BUS_PIO_H_ */ diff --git a/sys/compat/ndis/subr_hal.c b/sys/compat/ndis/subr_hal.c index c6508ed17b5..ca8f009f913 100644 --- a/sys/compat/ndis/subr_hal.c +++ b/sys/compat/ndis/subr_hal.c @@ -47,8 +47,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include diff --git a/sys/compat/ndis/subr_ndis.c b/sys/compat/ndis/subr_ndis.c index f7927c104f1..c1418a461a7 100644 --- a/sys/compat/ndis/subr_ndis.c +++ b/sys/compat/ndis/subr_ndis.c @@ -82,8 +82,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include diff --git a/sys/compat/ndis/subr_ntoskrnl.c b/sys/compat/ndis/subr_ntoskrnl.c index 19f55fc198f..948f17748fa 100644 --- a/sys/compat/ndis/subr_ntoskrnl.c +++ b/sys/compat/ndis/subr_ntoskrnl.c @@ -56,8 +56,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c index 466c290f42b..ea71528fe9d 100644 --- a/sys/dev/aac/aac.c +++ b/sys/dev/aac/aac.c @@ -52,7 +52,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/aac/aac_pci.c b/sys/dev/aac/aac_pci.c index b57756fc582..15c4416a164 100644 --- a/sys/dev/aac/aac_pci.c +++ b/sys/dev/aac/aac_pci.c @@ -46,7 +46,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/acpica/Osd/OsdHardware.c b/sys/dev/acpica/Osd/OsdHardware.c index e8f933d5af2..e239325fa5c 100644 --- a/sys/dev/acpica/Osd/OsdHardware.c +++ b/sys/dev/acpica/Osd/OsdHardware.c @@ -33,7 +33,6 @@ #include "acpi.h" -#include #include #include #include diff --git a/sys/dev/acpica/acpi_package.c b/sys/dev/acpica/acpi_package.c index 0cad9a01fa9..78c1759cac5 100644 --- a/sys/dev/acpica/acpi_package.c +++ b/sys/dev/acpica/acpi_package.c @@ -31,7 +31,6 @@ #include #include -#include #include #include #include diff --git a/sys/dev/acpica/acpi_perf.c b/sys/dev/acpica/acpi_perf.c index 19a12d92502..22b11bb8ece 100644 --- a/sys/dev/acpica/acpi_perf.c +++ b/sys/dev/acpica/acpi_perf.c @@ -40,7 +40,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/advansys/adv_eisa.c b/sys/dev/advansys/adv_eisa.c index e56cf29653f..6d6fa70ca29 100644 --- a/sys/dev/advansys/adv_eisa.c +++ b/sys/dev/advansys/adv_eisa.c @@ -44,7 +44,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/advansys/adv_isa.c b/sys/dev/advansys/adv_isa.c index 8a3a0790843..e0b7c1591ba 100644 --- a/sys/dev/advansys/adv_isa.c +++ b/sys/dev/advansys/adv_isa.c @@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/advansys/adv_pci.c b/sys/dev/advansys/adv_pci.c index 909a85c20ed..455e2044555 100644 --- a/sys/dev/advansys/adv_pci.c +++ b/sys/dev/advansys/adv_pci.c @@ -68,7 +68,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/advansys/advansys.c b/sys/dev/advansys/advansys.c index 7b9cfb1e3fb..aa6541dfa99 100644 --- a/sys/dev/advansys/advansys.c +++ b/sys/dev/advansys/advansys.c @@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/advansys/advlib.c b/sys/dev/advansys/advlib.c index 4604571da52..e89829f962e 100644 --- a/sys/dev/advansys/advlib.c +++ b/sys/dev/advansys/advlib.c @@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/advansys/adw_pci.c b/sys/dev/advansys/adw_pci.c index 2e5e2e76637..4d40ae3eb7c 100644 --- a/sys/dev/advansys/adw_pci.c +++ b/sys/dev/advansys/adw_pci.c @@ -44,7 +44,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include diff --git a/sys/dev/advansys/adwcam.c b/sys/dev/advansys/adwcam.c index c6c14fd99cc..3b9ce175eb8 100644 --- a/sys/dev/advansys/adwcam.c +++ b/sys/dev/advansys/adwcam.c @@ -54,8 +54,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include diff --git a/sys/dev/advansys/adwlib.c b/sys/dev/advansys/adwlib.c index 518d76bc367..b926bba2c15 100644 --- a/sys/dev/advansys/adwlib.c +++ b/sys/dev/advansys/adwlib.c @@ -49,8 +49,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c index 4300dbac7b2..b828a9daf84 100644 --- a/sys/dev/aha/aha.c +++ b/sys/dev/aha/aha.c @@ -68,7 +68,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include diff --git a/sys/dev/aha/aha_isa.c b/sys/dev/aha/aha_isa.c index 177b5cd4c1f..8805a60c6bc 100644 --- a/sys/dev/aha/aha_isa.c +++ b/sys/dev/aha/aha_isa.c @@ -63,7 +63,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c index 4d7249c5aaa..cafcd1a765e 100644 --- a/sys/dev/ahb/ahb.c +++ b/sys/dev/ahb/ahb.c @@ -37,7 +37,6 @@ #include #include -#include #include #include #include diff --git a/sys/dev/aic/aic.c b/sys/dev/aic/aic.c index 31f4283cb2b..b09d3e82bc0 100644 --- a/sys/dev/aic/aic.c +++ b/sys/dev/aic/aic.c @@ -32,7 +32,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include diff --git a/sys/dev/aic/aic_isa.c b/sys/dev/aic/aic_isa.c index 0fd2125d07a..71736f21d66 100644 --- a/sys/dev/aic/aic_isa.c +++ b/sys/dev/aic/aic_isa.c @@ -32,7 +32,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/aic/aic_pccard.c b/sys/dev/aic/aic_pccard.c index 55831508a96..04e92ab0be1 100644 --- a/sys/dev/aic/aic_pccard.c +++ b/sys/dev/aic/aic_pccard.c @@ -32,7 +32,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/aic7xxx/aic79xx_osm.h b/sys/dev/aic7xxx/aic79xx_osm.h index c6f36f1d870..66153321a06 100644 --- a/sys/dev/aic7xxx/aic79xx_osm.h +++ b/sys/dev/aic7xxx/aic79xx_osm.h @@ -53,8 +53,6 @@ #include #define AIC_PCI_CONFIG 1 -#include -#include #include #include #include diff --git a/sys/dev/aic7xxx/aic7xxx_osm.h b/sys/dev/aic7xxx/aic7xxx_osm.h index 07752a3b5bc..159f9f9c31b 100644 --- a/sys/dev/aic7xxx/aic7xxx_osm.h +++ b/sys/dev/aic7xxx/aic7xxx_osm.h @@ -59,9 +59,7 @@ #if NPCI > 0 #define AIC_PCI_CONFIG 1 -#include #endif -#include #include #include #include diff --git a/sys/dev/amd/amd.c b/sys/dev/amd/amd.c index b1b615ceeaf..a91bd68487c 100644 --- a/sys/dev/amd/amd.c +++ b/sys/dev/amd/amd.c @@ -62,7 +62,6 @@ #include #include -#include #include #include #include diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c index a20a580b096..e6fa569214b 100644 --- a/sys/dev/amr/amr.c +++ b/sys/dev/amr/amr.c @@ -72,8 +72,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/amr/amr_pci.c b/sys/dev/amr/amr_pci.c index 6fab69855b8..0fdfd8c82b7 100644 --- a/sys/dev/amr/amr_pci.c +++ b/sys/dev/amr/amr_pci.c @@ -66,8 +66,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/ar/if_ar.c b/sys/dev/ar/if_ar.c index a459d926737..70741c0a085 100644 --- a/sys/dev/ar/if_ar.c +++ b/sys/dev/ar/if_ar.c @@ -58,8 +58,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #include diff --git a/sys/dev/ar/if_ar_isa.c b/sys/dev/ar/if_ar_isa.c index 81c001f35e8..afe36153d0d 100644 --- a/sys/dev/ar/if_ar_isa.c +++ b/sys/dev/ar/if_ar_isa.c @@ -52,8 +52,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #include diff --git a/sys/dev/ar/if_ar_pci.c b/sys/dev/ar/if_ar_pci.c index 9b88c7c0bf5..3715c8b8ee3 100644 --- a/sys/dev/ar/if_ar_pci.c +++ b/sys/dev/ar/if_ar_pci.c @@ -38,8 +38,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #include diff --git a/sys/dev/arcmsr/arcmsr.c b/sys/dev/arcmsr/arcmsr.c index e94e9887c67..b7d985175ac 100644 --- a/sys/dev/arcmsr/arcmsr.c +++ b/sys/dev/arcmsr/arcmsr.c @@ -67,7 +67,6 @@ #include -#include #include #include #include diff --git a/sys/dev/atkbdc/atkbdc.c b/sys/dev/atkbdc/atkbdc.c index 7fc2325c0dd..c0cee013e6c 100644 --- a/sys/dev/atkbdc/atkbdc.c +++ b/sys/dev/atkbdc/atkbdc.c @@ -40,7 +40,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include diff --git a/sys/dev/atkbdc/atkbdc_isa.c b/sys/dev/atkbdc/atkbdc_isa.c index d0476a315d4..5f1408c8ddb 100644 --- a/sys/dev/atkbdc/atkbdc_isa.c +++ b/sys/dev/atkbdc/atkbdc_isa.c @@ -35,8 +35,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #include diff --git a/sys/dev/atkbdc/atkbdc_subr.c b/sys/dev/atkbdc/atkbdc_subr.c index d0476a315d4..5f1408c8ddb 100644 --- a/sys/dev/atkbdc/atkbdc_subr.c +++ b/sys/dev/atkbdc/atkbdc_subr.c @@ -35,8 +35,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #include diff --git a/sys/dev/awi/am79c930.c b/sys/dev/awi/am79c930.c index 90f85c0b1ac..a2eddd4bd76 100644 --- a/sys/dev/awi/am79c930.c +++ b/sys/dev/awi/am79c930.c @@ -76,10 +76,6 @@ __FBSDID("$FreeBSD$"); #endif #include -#ifdef __FreeBSD__ -#include -#include -#endif #include #ifdef __NetBSD__ #include diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index 1f3cc7f4577..c83d17d3947 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -54,7 +54,6 @@ __FBSDID("$FreeBSD$"); #include #include /* for DELAY */ -#include #include #include #include diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 8502e116831..62a2cf63c88 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -93,7 +93,6 @@ __FBSDID("$FreeBSD$"); #include #include /* for DELAY */ -#include #include #include #include diff --git a/sys/dev/bktr/bktr_audio.c b/sys/dev/bktr/bktr_audio.c index 7c6965d6a08..efc63da05bf 100644 --- a/sys/dev/bktr/bktr_audio.c +++ b/sys/dev/bktr/bktr_audio.c @@ -66,7 +66,6 @@ __FBSDID("$FreeBSD$"); #include #endif -#include /* for bus space */ #include #include #endif diff --git a/sys/dev/bktr/bktr_card.c b/sys/dev/bktr/bktr_card.c index c0493fff2b6..f08f810733a 100644 --- a/sys/dev/bktr/bktr_card.c +++ b/sys/dev/bktr/bktr_card.c @@ -64,7 +64,6 @@ __FBSDID("$FreeBSD$"); #include #endif -#include /* for bus space */ #include #include #endif diff --git a/sys/dev/bktr/bktr_core.c b/sys/dev/bktr/bktr_core.c index 5daca971a03..41f0b09ad6e 100644 --- a/sys/dev/bktr/bktr_core.c +++ b/sys/dev/bktr/bktr_core.c @@ -131,7 +131,6 @@ __FBSDID("$FreeBSD$"); #include #endif -#include /* for bus space */ #include #include diff --git a/sys/dev/bktr/bktr_i2c.c b/sys/dev/bktr/bktr_i2c.c index 807144d6fe1..20802f46058 100644 --- a/sys/dev/bktr/bktr_i2c.c +++ b/sys/dev/bktr/bktr_i2c.c @@ -58,7 +58,6 @@ __FBSDID("$FreeBSD$"); #include #endif -#include /* for bus space */ #include #include diff --git a/sys/dev/bktr/bktr_os.c b/sys/dev/bktr/bktr_os.c index 27519bc1e22..f5552722336 100644 --- a/sys/dev/bktr/bktr_os.c +++ b/sys/dev/bktr/bktr_os.c @@ -80,7 +80,6 @@ __FBSDID("$FreeBSD$"); #include /* used by smbus and newbus */ -#include /* used by bus space */ #include /* used by bus space and newbus */ #include diff --git a/sys/dev/bktr/bktr_tuner.c b/sys/dev/bktr/bktr_tuner.c index a9b42ad76b4..a74dd4faf01 100644 --- a/sys/dev/bktr/bktr_tuner.c +++ b/sys/dev/bktr/bktr_tuner.c @@ -61,7 +61,6 @@ __FBSDID("$FreeBSD$"); #include #endif -#include /* for bus space */ #include #include #endif diff --git a/sys/dev/buslogic/bt.c b/sys/dev/buslogic/bt.c index 74ad13b8187..37441f4a5da 100644 --- a/sys/dev/buslogic/bt.c +++ b/sys/dev/buslogic/bt.c @@ -51,14 +51,6 @@ __FBSDID("$FreeBSD$"); #include #include -/* - * XXX It appears that BusLogic PCI adapters go out to lunch if you - * attempt to perform memory mapped I/O. - */ -#if 0 -#include -#endif -#include #include #include diff --git a/sys/dev/buslogic/bt_eisa.c b/sys/dev/buslogic/bt_eisa.c index b1c40107aa7..cef2e53d61c 100644 --- a/sys/dev/buslogic/bt_eisa.c +++ b/sys/dev/buslogic/bt_eisa.c @@ -39,7 +39,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/buslogic/bt_isa.c b/sys/dev/buslogic/bt_isa.c index 78f4b2e1133..17638b22374 100644 --- a/sys/dev/buslogic/bt_isa.c +++ b/sys/dev/buslogic/bt_isa.c @@ -39,7 +39,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/buslogic/bt_pci.c b/sys/dev/buslogic/bt_pci.c index fe9d3f02ba1..51d15cb3ca4 100644 --- a/sys/dev/buslogic/bt_pci.c +++ b/sys/dev/buslogic/bt_pci.c @@ -41,8 +41,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 0b23fbf5202..62d296c8244 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -94,7 +94,6 @@ #include #include -#include #include #include #include diff --git a/sys/dev/cnw/if_cnw.c b/sys/dev/cnw/if_cnw.c index 9e2fdd4bea0..d1891c3d5ab 100644 --- a/sys/dev/cnw/if_cnw.c +++ b/sys/dev/cnw/if_cnw.c @@ -248,7 +248,6 @@ struct cfattach cnw_ca = { #include #include #include -#include #include #include diff --git a/sys/dev/dc/dcphy.c b/sys/dev/dc/dcphy.c index ddf9b7e2a60..3a6a5de27e4 100644 --- a/sys/dev/dc/dcphy.c +++ b/sys/dev/dc/dcphy.c @@ -60,8 +60,6 @@ __FBSDID("$FreeBSD$"); #include #include "miidevs.h" -#include -#include #include #include #include diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index 4fe664d1c8c..ae92c8dc920 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -112,8 +112,6 @@ __FBSDID("$FreeBSD$"); #include -#include -#include #include #include #include diff --git a/sys/dev/dc/pnphy.c b/sys/dev/dc/pnphy.c index 63891f58e5e..98d269a34e6 100644 --- a/sys/dev/dc/pnphy.c +++ b/sys/dev/dc/pnphy.c @@ -58,8 +58,6 @@ __FBSDID("$FreeBSD$"); #include #include "miidevs.h" -#include -#include #include #include #include diff --git a/sys/dev/dpt/dpt_eisa.c b/sys/dev/dpt/dpt_eisa.c index 5e2a039f687..1a6ef9a7bb6 100644 --- a/sys/dev/dpt/dpt_eisa.c +++ b/sys/dev/dpt/dpt_eisa.c @@ -36,7 +36,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/dpt/dpt_isa.c b/sys/dev/dpt/dpt_isa.c index c0ede88cf9d..c9264af3708 100644 --- a/sys/dev/dpt/dpt_isa.c +++ b/sys/dev/dpt/dpt_isa.c @@ -34,7 +34,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c index d3b1190f721..c91ab25b1ef 100644 --- a/sys/dev/dpt/dpt_pci.c +++ b/sys/dev/dpt/dpt_pci.c @@ -38,8 +38,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index db2f7b06603..129c95b9482 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -58,8 +58,6 @@ __FBSDID("$FreeBSD$"); #include -#include -#include #include #include diff --git a/sys/dev/fb/boot_font.c b/sys/dev/fb/boot_font.c index 77090c5f38b..436ae40f466 100644 --- a/sys/dev/fb/boot_font.c +++ b/sys/dev/fb/boot_font.c @@ -62,7 +62,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include diff --git a/sys/dev/fb/gfb.c b/sys/dev/fb/gfb.c index b0cf5a927f9..6a14dca6de8 100644 --- a/sys/dev/fb/gfb.c +++ b/sys/dev/fb/gfb.c @@ -71,7 +71,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include diff --git a/sys/dev/fb/s3_pci.c b/sys/dev/fb/s3_pci.c index 70f3b6bfc0a..854a68549ce 100644 --- a/sys/dev/fb/s3_pci.c +++ b/sys/dev/fb/s3_pci.c @@ -34,8 +34,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #include diff --git a/sys/dev/fb/tga.c b/sys/dev/fb/tga.c index b55dc5a5cf3..84923ef7784 100644 --- a/sys/dev/fb/tga.c +++ b/sys/dev/fb/tga.c @@ -77,7 +77,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include diff --git a/sys/dev/gfb/gfb_pci.c b/sys/dev/gfb/gfb_pci.c index c58ae0e021e..9dc31aa4544 100644 --- a/sys/dev/gfb/gfb_pci.c +++ b/sys/dev/gfb/gfb_pci.c @@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include diff --git a/sys/dev/hfa/hfa_freebsd.c b/sys/dev/hfa/hfa_freebsd.c index 34db172bb4c..9b8d69caac4 100644 --- a/sys/dev/hfa/hfa_freebsd.c +++ b/sys/dev/hfa/hfa_freebsd.c @@ -67,7 +67,6 @@ #include #include -#include #include #include #include diff --git a/sys/dev/hfa/hfa_pci.c b/sys/dev/hfa/hfa_pci.c index 8fc59ed780d..fb28478fac6 100644 --- a/sys/dev/hfa/hfa_pci.c +++ b/sys/dev/hfa/hfa_pci.c @@ -69,7 +69,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/hptmv/osbsd.h b/sys/dev/hptmv/osbsd.h index 5637c44c5e9..d81229ec875 100644 --- a/sys/dev/hptmv/osbsd.h +++ b/sys/dev/hptmv/osbsd.h @@ -32,7 +32,6 @@ #include #include -#include #include #include #include diff --git a/sys/dev/ida/ida.c b/sys/dev/ida/ida.c index cd3a95fec3d..663b816a71d 100644 --- a/sys/dev/ida/ida.c +++ b/sys/dev/ida/ida.c @@ -46,8 +46,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c index 794cb90b90c..2446dddbe18 100644 --- a/sys/dev/ida/ida_disk.c +++ b/sys/dev/ida/ida_disk.c @@ -40,8 +40,6 @@ #include #include -#include -#include #include #include diff --git a/sys/dev/ida/ida_eisa.c b/sys/dev/ida/ida_eisa.c index 719d38c3327..864b1700a01 100644 --- a/sys/dev/ida/ida_eisa.c +++ b/sys/dev/ida/ida_eisa.c @@ -37,7 +37,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/ida/ida_pci.c b/sys/dev/ida/ida_pci.c index 0f2fd2a6fe0..3c9810537c2 100644 --- a/sys/dev/ida/ida_pci.c +++ b/sys/dev/ida/ida_pci.c @@ -36,8 +36,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/idt/idt_harp.c b/sys/dev/idt/idt_harp.c index 4659c468903..84e52eb7b07 100644 --- a/sys/dev/idt/idt_harp.c +++ b/sys/dev/idt/idt_harp.c @@ -54,7 +54,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/idt/idt_pci.c b/sys/dev/idt/idt_pci.c index 26b1e5a9329..1a77c4bb060 100644 --- a/sys/dev/idt/idt_pci.c +++ b/sys/dev/idt/idt_pci.c @@ -52,7 +52,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c index f30d7752f11..71845e94324 100644 --- a/sys/dev/ie/if_ie.c +++ b/sys/dev/ie/if_ie.c @@ -124,7 +124,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/ie/if_ie_isa.c b/sys/dev/ie/if_ie_isa.c index b8448c86bcf..53ed25635d6 100644 --- a/sys/dev/ie/if_ie_isa.c +++ b/sys/dev/ie/if_ie_isa.c @@ -47,7 +47,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c index af7e02c5312..77eb9eee10b 100644 --- a/sys/dev/if_ndis/if_ndis.c +++ b/sys/dev/if_ndis/if_ndis.c @@ -60,8 +60,6 @@ __FBSDID("$FreeBSD$"); #include -#include -#include #include #include #include diff --git a/sys/dev/iir/iir.c b/sys/dev/iir/iir.c index 60b2962e64f..4e3cef6b902 100644 --- a/sys/dev/iir/iir.c +++ b/sys/dev/iir/iir.c @@ -56,8 +56,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/iir/iir_pci.c b/sys/dev/iir/iir_pci.c index 2edfc91e042..4ad5d0cbf4d 100644 --- a/sys/dev/iir/iir_pci.c +++ b/sys/dev/iir/iir_pci.c @@ -54,8 +54,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/ips/ips.h b/sys/dev/ips/ips.h index 0e5e658336e..829bb46d6ad 100644 --- a/sys/dev/ips/ips.h +++ b/sys/dev/ips/ips.h @@ -43,7 +43,6 @@ #include #include -#include #include #include #include diff --git a/sys/dev/ips/ips_disk.h b/sys/dev/ips/ips_disk.h index 0b0fe65d403..b841eeaeea2 100644 --- a/sys/dev/ips/ips_disk.h +++ b/sys/dev/ips/ips_disk.h @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h index 8b467c602e4..ede1fe14b2d 100644 --- a/sys/dev/isp/isp_freebsd.h +++ b/sys/dev/isp/isp_freebsd.h @@ -42,8 +42,6 @@ #include #include -#include -#include #include #include #include diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 3a9c041872b..55a0ef7058a 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -38,8 +38,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/kbd/atkbdc.c b/sys/dev/kbd/atkbdc.c index 7fc2325c0dd..c0cee013e6c 100644 --- a/sys/dev/kbd/atkbdc.c +++ b/sys/dev/kbd/atkbdc.c @@ -40,7 +40,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include diff --git a/sys/dev/lge/if_lge.c b/sys/dev/lge/if_lge.c index 9c01ca4db2d..ace667df091 100644 --- a/sys/dev/lge/if_lge.c +++ b/sys/dev/lge/if_lge.c @@ -89,8 +89,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ #include /* for DELAY */ -#include -#include #include #include #include diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index 401781c9543..86e40c47443 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -56,7 +56,6 @@ static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; #include #include -#include #include #include #include diff --git a/sys/dev/mcd/mcd_isa.c b/sys/dev/mcd/mcd_isa.c index f63167246f4..8b71f105977 100644 --- a/sys/dev/mcd/mcd_isa.c +++ b/sys/dev/mcd/mcd_isa.c @@ -17,7 +17,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/mii/dcphy.c b/sys/dev/mii/dcphy.c index ddf9b7e2a60..3a6a5de27e4 100644 --- a/sys/dev/mii/dcphy.c +++ b/sys/dev/mii/dcphy.c @@ -60,8 +60,6 @@ __FBSDID("$FreeBSD$"); #include #include "miidevs.h" -#include -#include #include #include #include diff --git a/sys/dev/mii/pnphy.c b/sys/dev/mii/pnphy.c index 63891f58e5e..98d269a34e6 100644 --- a/sys/dev/mii/pnphy.c +++ b/sys/dev/mii/pnphy.c @@ -58,8 +58,6 @@ __FBSDID("$FreeBSD$"); #include #include "miidevs.h" -#include -#include #include #include #include diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c index dcee43c6576..d8cc79ac7b3 100644 --- a/sys/dev/mlx/mlx.c +++ b/sys/dev/mlx/mlx.c @@ -40,8 +40,6 @@ #include #include -#include -#include #include #include #include diff --git a/sys/dev/mlx/mlx_pci.c b/sys/dev/mlx/mlx_pci.c index da04278eb4c..732fed8697e 100644 --- a/sys/dev/mlx/mlx_pci.c +++ b/sys/dev/mlx/mlx_pci.c @@ -35,8 +35,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c index c7fa06844aa..074d6fa2017 100644 --- a/sys/dev/mly/mly.c +++ b/sys/dev/mly/mly.c @@ -37,7 +37,6 @@ #include #include -#include #include #include #include diff --git a/sys/dev/mpt/mpt_freebsd.h b/sys/dev/mpt/mpt_freebsd.h index 49e6f4e0c37..50cd28289de 100644 --- a/sys/dev/mpt/mpt_freebsd.h +++ b/sys/dev/mpt/mpt_freebsd.h @@ -52,8 +52,6 @@ #include #include -#include -#include #include #include #include diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c index cdb128747e8..828d6e15df9 100644 --- a/sys/dev/mpt/mpt_pci.c +++ b/sys/dev/mpt/mpt_pci.c @@ -42,8 +42,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/my/if_my.c b/sys/dev/my/if_my.c index c9835e55e62..20b57e8345c 100644 --- a/sys/dev/my/if_my.c +++ b/sys/dev/my/if_my.c @@ -56,8 +56,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ #include /* for DELAY */ -#include -#include #include #include #include diff --git a/sys/dev/ncv/ncr53c500.c b/sys/dev/ncv/ncr53c500.c index 346c09aebda..32bd9021fac 100644 --- a/sys/dev/ncv/ncr53c500.c +++ b/sys/dev/ncv/ncr53c500.c @@ -75,7 +75,6 @@ __FBSDID("$FreeBSD$"); #ifdef __FreeBSD__ #include #include -#include #include #include diff --git a/sys/dev/ncv/ncr53c500_pccard.c b/sys/dev/ncv/ncr53c500_pccard.c index 6434f6a8170..7472e625f32 100644 --- a/sys/dev/ncv/ncr53c500_pccard.c +++ b/sys/dev/ncv/ncr53c500_pccard.c @@ -46,7 +46,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/nge/if_nge.c b/sys/dev/nge/if_nge.c index 0fc0fca782a..f480cb5cf87 100644 --- a/sys/dev/nge/if_nge.c +++ b/sys/dev/nge/if_nge.c @@ -110,8 +110,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ #include /* for DELAY */ -#include -#include #include #include #include diff --git a/sys/dev/nsp/nsp.c b/sys/dev/nsp/nsp.c index d955ff2938b..cad74162fe5 100644 --- a/sys/dev/nsp/nsp.c +++ b/sys/dev/nsp/nsp.c @@ -74,8 +74,6 @@ __FBSDID("$FreeBSD$"); #ifdef __FreeBSD__ #include #include -#include -#include #include #include diff --git a/sys/dev/nve/if_nve.c b/sys/dev/nve/if_nve.c index c4d3b393edd..0963a6b49c1 100644 --- a/sys/dev/nve/if_nve.c +++ b/sys/dev/nve/if_nve.c @@ -95,7 +95,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include diff --git a/sys/dev/pbio/pbio.c b/sys/dev/pbio/pbio.c index e4c2b0ea185..32f50a9cd8f 100644 --- a/sys/dev/pbio/pbio.c +++ b/sys/dev/pbio/pbio.c @@ -41,7 +41,6 @@ __FBSDID("$FreeBSD$"); #include /* cdevsw stuff */ #include /* malloc region definitions */ #include -#include #include #include #include /* DELAY() */ diff --git a/sys/dev/pdq/if_fpa.c b/sys/dev/pdq/if_fpa.c index cfb6f89fc48..6ed271aa1fc 100644 --- a/sys/dev/pdq/if_fpa.c +++ b/sys/dev/pdq/if_fpa.c @@ -41,8 +41,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/pdq/pdq_freebsd.h b/sys/dev/pdq/pdq_freebsd.h index ba2a993faf9..6dc7c6c9345 100644 --- a/sys/dev/pdq/pdq_freebsd.h +++ b/sys/dev/pdq/pdq_freebsd.h @@ -48,8 +48,6 @@ #include #include -#include -#include #include #include #include diff --git a/sys/dev/pdq/pdq_ifsubr.c b/sys/dev/pdq/pdq_ifsubr.c index 1971a208ff2..d3a64e223a1 100644 --- a/sys/dev/pdq/pdq_ifsubr.c +++ b/sys/dev/pdq/pdq_ifsubr.c @@ -55,8 +55,6 @@ __KERNEL_RCSID(0, "$NetBSD: pdq_ifsubr.c,v 1.38 2001/12/21 23:21:47 matt Exp $") #include #include -#include -#include #include #include #include diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index a887f1887ac..ea52ef30207 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -127,8 +127,6 @@ __FBSDID("$FreeBSD$"); #include -#include -#include #include #include #include diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c index 2c5f7966f50..136c900973e 100644 --- a/sys/dev/scd/scd.c +++ b/sys/dev/scd/scd.c @@ -58,7 +58,6 @@ __FBSDID("$FreeBSD$"); #include -#include #include #include #include diff --git a/sys/dev/scd/scd_isa.c b/sys/dev/scd/scd_isa.c index da2fe6a0d5e..082d0d8461a 100644 --- a/sys/dev/scd/scd_isa.c +++ b/sys/dev/scd/scd_isa.c @@ -16,7 +16,6 @@ __FBSDID("$FreeBSD$"); #include -#include #include #include #include diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index ed91f015aad..5593d525ece 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -98,8 +98,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include -#include #include #include #include diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 2a9240b0936..4dfabc0c888 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -67,7 +67,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include diff --git a/sys/dev/sio/sio_isa.c b/sys/dev/sio/sio_isa.c index 40541e66252..afb6fac79cf 100644 --- a/sys/dev/sio/sio_isa.c +++ b/sys/dev/sio/sio_isa.c @@ -35,7 +35,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include diff --git a/sys/dev/sio/sio_pccard.c b/sys/dev/sio/sio_pccard.c index 713393a8709..b71582842ee 100644 --- a/sys/dev/sio/sio_pccard.c +++ b/sys/dev/sio/sio_pccard.c @@ -35,7 +35,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include diff --git a/sys/dev/sio/sio_pci.c b/sys/dev/sio/sio_pci.c index 05d42268f65..459baa16936 100644 --- a/sys/dev/sio/sio_pci.c +++ b/sys/dev/sio/sio_pci.c @@ -35,7 +35,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include diff --git a/sys/dev/sio/sio_puc.c b/sys/dev/sio/sio_puc.c index 877a03966d0..dd80e68f5d3 100644 --- a/sys/dev/sio/sio_puc.c +++ b/sys/dev/sio/sio_puc.c @@ -36,7 +36,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 9f148a1c72f..1703e2f36f5 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -106,8 +106,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include -#include #include #include #include diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c index 7382fdc0bac..db4eafb6091 100644 --- a/sys/dev/sr/if_sr.c +++ b/sys/dev/sr/if_sr.c @@ -65,8 +65,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #include diff --git a/sys/dev/sr/if_sr_isa.c b/sys/dev/sr/if_sr_isa.c index 510a32b7419..3f68e001295 100644 --- a/sys/dev/sr/if_sr_isa.c +++ b/sys/dev/sr/if_sr_isa.c @@ -42,8 +42,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #include diff --git a/sys/dev/sr/if_sr_pci.c b/sys/dev/sr/if_sr_pci.c index dbb8a83a46b..8f62513b360 100644 --- a/sys/dev/sr/if_sr_pci.c +++ b/sys/dev/sr/if_sr_pci.c @@ -39,8 +39,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #include diff --git a/sys/dev/stg/tmc18c30.c b/sys/dev/stg/tmc18c30.c index c07c4c8b516..a0e7139b496 100644 --- a/sys/dev/stg/tmc18c30.c +++ b/sys/dev/stg/tmc18c30.c @@ -73,7 +73,6 @@ __FBSDID("$FreeBSD$"); #ifdef __FreeBSD__ #include #include -#include #include #include diff --git a/sys/dev/stg/tmc18c30_isa.c b/sys/dev/stg/tmc18c30_isa.c index 40966697dc4..7165a817db9 100644 --- a/sys/dev/stg/tmc18c30_isa.c +++ b/sys/dev/stg/tmc18c30_isa.c @@ -49,7 +49,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/stg/tmc18c30_pccard.c b/sys/dev/stg/tmc18c30_pccard.c index 67bffd3f40c..a66f65c8841 100644 --- a/sys/dev/stg/tmc18c30_pccard.c +++ b/sys/dev/stg/tmc18c30_pccard.c @@ -49,7 +49,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include diff --git a/sys/dev/stg/tmc18c30_pci.c b/sys/dev/stg/tmc18c30_pci.c index cda2ed7e63d..1edda5af141 100644 --- a/sys/dev/stg/tmc18c30_pci.c +++ b/sys/dev/stg/tmc18c30_pci.c @@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/dev/stg/tmc18c30_subr.c b/sys/dev/stg/tmc18c30_subr.c index c2cfd44b42a..152fd11bbbd 100644 --- a/sys/dev/stg/tmc18c30_subr.c +++ b/sys/dev/stg/tmc18c30_subr.c @@ -47,8 +47,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c index 54abca694bd..e8f10f0f05b 100644 --- a/sys/dev/sym/sym_hipd.c +++ b/sys/dev/sym/sym_hipd.c @@ -86,17 +86,7 @@ __FBSDID("$FreeBSD$"); #include #include -#include -/* - * Only include bus_pio if needed. - * This avoids bus space primitives to be uselessly bloated - * by out-of-age PIO operations. - */ -#ifdef SYM_CONF_IOMAPPED -#include -#endif #include - #include #include diff --git a/sys/dev/tga/tga_pci.c b/sys/dev/tga/tga_pci.c index 25afbfd006f..47f32f43852 100644 --- a/sys/dev/tga/tga_pci.c +++ b/sys/dev/tga/tga_pci.c @@ -49,7 +49,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 86cea7c7475..4af3b292bde 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -108,7 +108,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include #include #include #include diff --git a/sys/dev/trm/trm.c b/sys/dev/trm/trm.c index 0c03791c676..500c3076f6b 100644 --- a/sys/dev/trm/trm.c +++ b/sys/dev/trm/trm.c @@ -82,7 +82,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include diff --git a/sys/dev/twe/twe_compat.h b/sys/dev/twe/twe_compat.h index 37291004113..1bd46f0022a 100644 --- a/sys/dev/twe/twe_compat.h +++ b/sys/dev/twe/twe_compat.h @@ -51,7 +51,6 @@ #include #include -#include #include #include #include diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c index a7be0290c22..18fe63f2cc5 100644 --- a/sys/dev/tx/if_tx.c +++ b/sys/dev/tx/if_tx.c @@ -58,8 +58,6 @@ __FBSDID("$FreeBSD$"); #include -#include -#include #include #include #include /* for DELAY */ diff --git a/sys/dev/txp/if_txp.c b/sys/dev/txp/if_txp.c index 8e708ebfb75..749ea448748 100644 --- a/sys/dev/txp/if_txp.c +++ b/sys/dev/txp/if_txp.c @@ -74,8 +74,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ #include /* for DELAY */ -#include -#include #include #include #include diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index 27680c48375..5870c4fa8f5 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -72,8 +72,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #if defined(DIAGNOSTIC) && defined(__i386__) && defined(__FreeBSD__) #include diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index e0db856e797..4821cc6a625 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -70,8 +70,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #if defined(DIAGNOSTIC) && defined(__i386__) && defined(__FreeBSD__) #include #endif diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 4340a252340..05fdd1eddb1 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -72,7 +72,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #if defined(DIAGNOSTIC) && defined(__i386__) #include #endif diff --git a/sys/dev/vge/if_vge.c b/sys/dev/vge/if_vge.c index ef6040ec255..5607c9bbe05 100644 --- a/sys/dev/vge/if_vge.c +++ b/sys/dev/vge/if_vge.c @@ -100,8 +100,6 @@ __FBSDID("$FreeBSD$"); #include -#include -#include #include #include #include diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index 843be854f4f..502deb1d212 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -79,8 +79,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include -#include #include #include #include diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c index 9fd6f5167cb..e5265675f39 100644 --- a/sys/dev/vx/if_vx.c +++ b/sys/dev/vx/if_vx.c @@ -69,7 +69,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include diff --git a/sys/dev/vx/if_vx_pci.c b/sys/dev/vx/if_vx_pci.c index 3afe2385e0c..c0694f1978d 100644 --- a/sys/dev/vx/if_vx_pci.c +++ b/sys/dev/vx/if_vx_pci.c @@ -39,7 +39,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/i386/include/bus.h b/sys/i386/include/bus.h index 4fd13ea046c..b3a99511e13 100644 --- a/sys/i386/include/bus.h +++ b/sys/i386/include/bus.h @@ -107,15 +107,6 @@ #include #include -/* - * To remain compatible with NetBSD's interface, default to both memio and - * pio when neither of them is defined. - */ -#if !defined(_I386_BUS_PIO_H_) && !defined(_I386_BUS_MEMIO_H_) -#define _I386_BUS_PIO_H_ -#define _I386_BUS_MEMIO_H_ -#endif - /* * Values for the i386 bus space tag, not to be used directly by MI code. */ @@ -208,8 +199,6 @@ bus_space_free(bus_space_tag_t t __unused, bus_space_handle_t bsh __unused, } -#if defined(_I386_BUS_PIO_H_) || defined(_I386_BUS_MEMIO_H_) - /* * Read a 1, 2, 4, or 8 byte quantity from bus space * described by tag/handle/offset. @@ -230,45 +219,30 @@ static __inline u_int8_t bus_space_read_1(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t offset) { -#if defined (_I386_BUS_PIO_H_) -#if defined (_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif return (inb(handle + offset)); -#endif -#if defined (_I386_BUS_MEMIO_H_) return (*(volatile u_int8_t *)(handle + offset)); -#endif } static __inline u_int16_t bus_space_read_2(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t offset) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif return (inw(handle + offset)); -#endif -#if defined(_I386_BUS_MEMIO_H_) return (*(volatile u_int16_t *)(handle + offset)); -#endif } static __inline u_int32_t bus_space_read_4(bus_space_tag_t tag, bus_space_handle_t handle, bus_size_t offset) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif return (inl(handle + offset)); -#endif -#if defined(_I386_BUS_MEMIO_H_) return (*(volatile u_int32_t *)(handle + offset)); -#endif } #if 0 /* Cause a link error for bus_space_read_8 */ @@ -298,17 +272,10 @@ static __inline void bus_space_read_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int8_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif insb(bsh + offset, addr, count); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -324,24 +291,16 @@ bus_space_read_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } static __inline void bus_space_read_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int16_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif insw(bsh + offset, addr, count); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -357,24 +316,16 @@ bus_space_read_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } static __inline void bus_space_read_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int32_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif insl(bsh + offset, addr, count); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -390,7 +341,6 @@ bus_space_read_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } #if 0 /* Cause a link error for bus_space_read_multi_8 */ @@ -422,11 +372,8 @@ static __inline void bus_space_read_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int8_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) - if (tag == I386_BUS_SPACE_IO) -#endif - { + + if (tag == I386_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -443,13 +390,7 @@ bus_space_read_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, # error "no assembler code for your compiler" # endif #endif - } -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + } else { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -465,18 +406,14 @@ bus_space_read_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } static __inline void bus_space_read_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int16_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) - if (tag == I386_BUS_SPACE_IO) -#endif - { + + if (tag == I386_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -493,13 +430,7 @@ bus_space_read_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, # error "no assembler code for your compiler" # endif #endif - } -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + } else { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -515,18 +446,14 @@ bus_space_read_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } static __inline void bus_space_read_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int32_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) - if (tag == I386_BUS_SPACE_IO) -#endif - { + + if (tag == I386_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -543,13 +470,7 @@ bus_space_read_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, # error "no assembler code for your compiler" # endif #endif - } -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + } else { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -565,7 +486,6 @@ bus_space_read_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } #if 0 /* Cause a link error for bus_space_read_region_8 */ @@ -593,54 +513,33 @@ static __inline void bus_space_write_1(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, u_int8_t value) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif outb(bsh + offset, value); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) else -#endif *(volatile u_int8_t *)(bsh + offset) = value; -#endif } 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 defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif outw(bsh + offset, value); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) else -#endif *(volatile u_int16_t *)(bsh + offset) = value; -#endif } 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 defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif outl(bsh + offset, value); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) else -#endif *(volatile u_int32_t *)(bsh + offset) = value; -#endif } #if 0 /* Cause a link error for bus_space_write_8 */ @@ -673,17 +572,10 @@ static __inline void bus_space_write_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int8_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif outsb(bsh + offset, addr, count); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -699,24 +591,16 @@ bus_space_write_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } static __inline void bus_space_write_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int16_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif outsw(bsh + offset, addr, count); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -732,24 +616,16 @@ bus_space_write_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } static __inline void bus_space_write_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int32_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) + if (tag == I386_BUS_SPACE_IO) -#endif outsl(bsh + offset, addr, count); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + else { #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ cld \n\ @@ -765,7 +641,6 @@ bus_space_write_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } #if 0 /* Cause a link error for bus_space_write_multi_8 */ @@ -798,11 +673,8 @@ static __inline void bus_space_write_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int8_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) - if (tag == I386_BUS_SPACE_IO) -#endif - { + + if (tag == I386_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -819,13 +691,7 @@ bus_space_write_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, # error "no assembler code for your compiler" # endif #endif - } -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + } else { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -841,18 +707,14 @@ bus_space_write_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } static __inline void bus_space_write_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int16_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) - if (tag == I386_BUS_SPACE_IO) -#endif - { + + if (tag == I386_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -869,13 +731,7 @@ bus_space_write_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, # error "no assembler code for your compiler" # endif #endif - } -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + } else { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -891,18 +747,14 @@ bus_space_write_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } static __inline void bus_space_write_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, const u_int32_t *addr, size_t count) { -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) - if (tag == I386_BUS_SPACE_IO) -#endif - { + + if (tag == I386_BUS_SPACE_IO) { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -919,13 +771,7 @@ bus_space_write_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, # error "no assembler code for your compiler" # endif #endif - } -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + } else { int _port_ = bsh + offset; #ifdef __GNUCLIKE_ASM __asm __volatile(" \n\ @@ -941,7 +787,6 @@ bus_space_write_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, # endif #endif } -#endif } #if 0 /* Cause a link error for bus_space_write_region_8 */ @@ -973,20 +818,12 @@ bus_space_set_multi_1(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) if (tag == I386_BUS_SPACE_IO) -#endif while (count--) outb(addr, value); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) else -#endif while (count--) *(volatile u_int8_t *)(addr) = value; -#endif } static __inline void @@ -995,20 +832,12 @@ bus_space_set_multi_2(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) if (tag == I386_BUS_SPACE_IO) -#endif while (count--) outw(addr, value); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) else -#endif while (count--) *(volatile u_int16_t *)(addr) = value; -#endif } static __inline void @@ -1017,20 +846,12 @@ bus_space_set_multi_4(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) if (tag == I386_BUS_SPACE_IO) -#endif while (count--) outl(addr, value); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) else -#endif while (count--) *(volatile u_int32_t *)(addr) = value; -#endif } #if 0 /* Cause a link error for bus_space_set_multi_8 */ @@ -1061,20 +882,12 @@ bus_space_set_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) if (tag == I386_BUS_SPACE_IO) -#endif for (; count != 0; count--, addr++) outb(addr, value); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) else -#endif for (; count != 0; count--, addr++) *(volatile u_int8_t *)(addr) = value; -#endif } static __inline void @@ -1083,20 +896,12 @@ bus_space_set_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) if (tag == I386_BUS_SPACE_IO) -#endif for (; count != 0; count--, addr += 2) outw(addr, value); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) else -#endif for (; count != 0; count--, addr += 2) *(volatile u_int16_t *)(addr) = value; -#endif } static __inline void @@ -1105,20 +910,12 @@ bus_space_set_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, { bus_space_handle_t addr = bsh + offset; -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) if (tag == I386_BUS_SPACE_IO) -#endif for (; count != 0; count--, addr += 4) outl(addr, value); -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) else -#endif for (; count != 0; count--, addr += 4) *(volatile u_int32_t *)(addr) = value; -#endif } #if 0 /* Cause a link error for bus_space_set_region_8 */ @@ -1156,11 +953,7 @@ bus_space_copy_region_1(bus_space_tag_t tag, bus_space_handle_t bsh1, bus_space_handle_t addr1 = bsh1 + off1; bus_space_handle_t addr2 = bsh2 + off2; -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) - if (tag == I386_BUS_SPACE_IO) -#endif - { + if (tag == I386_BUS_SPACE_IO) { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1++, addr2++) @@ -1171,13 +964,7 @@ bus_space_copy_region_1(bus_space_tag_t tag, bus_space_handle_t bsh1, count != 0; count--, addr1--, addr2--) outb(addr2, inb(addr1)); } - } -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + } else { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1++, addr2++) @@ -1191,7 +978,6 @@ bus_space_copy_region_1(bus_space_tag_t tag, bus_space_handle_t bsh1, *(volatile u_int8_t *)(addr1); } } -#endif } static __inline void @@ -1202,11 +988,7 @@ bus_space_copy_region_2(bus_space_tag_t tag, bus_space_handle_t bsh1, bus_space_handle_t addr1 = bsh1 + off1; bus_space_handle_t addr2 = bsh2 + off2; -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) - if (tag == I386_BUS_SPACE_IO) -#endif - { + if (tag == I386_BUS_SPACE_IO) { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1 += 2, addr2 += 2) @@ -1217,13 +999,7 @@ bus_space_copy_region_2(bus_space_tag_t tag, bus_space_handle_t bsh1, count != 0; count--, addr1 -= 2, addr2 -= 2) outw(addr2, inw(addr1)); } - } -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + } else { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1 += 2, addr2 += 2) @@ -1237,7 +1013,6 @@ bus_space_copy_region_2(bus_space_tag_t tag, bus_space_handle_t bsh1, *(volatile u_int16_t *)(addr1); } } -#endif } static __inline void @@ -1248,11 +1023,7 @@ bus_space_copy_region_4(bus_space_tag_t tag, bus_space_handle_t bsh1, bus_space_handle_t addr1 = bsh1 + off1; bus_space_handle_t addr2 = bsh2 + off2; -#if defined(_I386_BUS_PIO_H_) -#if defined(_I386_BUS_MEMIO_H_) - if (tag == I386_BUS_SPACE_IO) -#endif - { + if (tag == I386_BUS_SPACE_IO) { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1 += 4, addr2 += 4) @@ -1263,13 +1034,7 @@ bus_space_copy_region_4(bus_space_tag_t tag, bus_space_handle_t bsh1, count != 0; count--, addr1 -= 4, addr2 -= 4) outl(addr2, inl(addr1)); } - } -#endif -#if defined(_I386_BUS_MEMIO_H_) -#if defined(_I386_BUS_PIO_H_) - else -#endif - { + } else { if (addr1 >= addr2) { /* src after dest: copy forward */ for (; count != 0; count--, addr1 += 4, addr2 += 4) @@ -1283,11 +1048,8 @@ bus_space_copy_region_4(bus_space_tag_t tag, bus_space_handle_t bsh1, *(volatile u_int32_t *)(addr1); } } -#endif } -#endif /* defined(_I386_BUS_PIO_H_) || defined(_I386_MEM_IO_H_) */ - #if 0 /* Cause a link error for bus_space_copy_8 */ #define bus_space_copy_region_8 !!! bus_space_copy_region_8 unimplemented !!! #endif diff --git a/sys/i386/include/bus_memio.h b/sys/i386/include/bus_memio.h deleted file mode 100644 index fe943c7e6ff..00000000000 --- a/sys/i386/include/bus_memio.h +++ /dev/null @@ -1,31 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ - */ - -#ifndef _I386_BUS_MEMIO_H_ -#define _I386_BUS_MEMIO_H_ -#endif /* _I386_BUS_MEMIO_H_ */ diff --git a/sys/i386/include/bus_pio.h b/sys/i386/include/bus_pio.h deleted file mode 100644 index 15b5762ee9f..00000000000 --- a/sys/i386/include/bus_pio.h +++ /dev/null @@ -1,31 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ - */ - -#ifndef _I386_BUS_PIO_H_ -#define _I386_BUS_PIO_H_ -#endif /* _I386_BUS_PIO_H_ */ diff --git a/sys/i386/isa/if_el.c b/sys/i386/isa/if_el.c index 80e4a3653bd..cea72ab2d94 100644 --- a/sys/i386/isa/if_el.c +++ b/sys/i386/isa/if_el.c @@ -43,7 +43,6 @@ __FBSDID("$FreeBSD$"); #include -#include #include #include #include diff --git a/sys/i4b/layer1/itjc/i4b_itjc_pci.c b/sys/i4b/layer1/itjc/i4b_itjc_pci.c index 2033e523089..773a84d55d7 100644 --- a/sys/i4b/layer1/itjc/i4b_itjc_pci.c +++ b/sys/i4b/layer1/itjc/i4b_itjc_pci.c @@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include diff --git a/sys/ia64/include/bus.h b/sys/ia64/include/bus.h index 7e823f473ea..02fe8bee105 100644 --- a/sys/ia64/include/bus.h +++ b/sys/ia64/include/bus.h @@ -72,17 +72,6 @@ #ifndef _MACHINE_BUS_H_ #define _MACHINE_BUS_H_ -/* - * Platform notes: - * o We don't use the _MACHINE_BUS_PIO_H_ and _MACHINE_BUS_MEMIO_H_ - * macros to conditionally compile for I/O port, memory mapped I/O - * or both. It's a micro-optimization that is not worth the pain - * because there is no I/O port space. I/O ports are emulated by - * doing memory mapped I/O in a special memory range. The address - * translation is slightly magic for I/O port accesses, but it does - * not warrant the overhead. - */ - #include #include diff --git a/sys/ia64/include/bus_memio.h b/sys/ia64/include/bus_memio.h deleted file mode 100644 index 0b02084abec..00000000000 --- a/sys/ia64/include/bus_memio.h +++ /dev/null @@ -1,31 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ - */ - -#ifndef _MACHINE_BUS_MEMIO_H_ -#define _MACHINE_BUS_MEMIO_H_ -#endif /* _MACHINE_BUS_MEMIO_H_ */ diff --git a/sys/ia64/include/bus_pio.h b/sys/ia64/include/bus_pio.h deleted file mode 100644 index 5fdb891485a..00000000000 --- a/sys/ia64/include/bus_pio.h +++ /dev/null @@ -1,31 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ - */ - -#ifndef _MACHINE_BUS_PIO_H_ -#define _MACHINE_BUS_PIO_H_ -#endif /* _MACHINE_BUS_PIO_H_ */ diff --git a/sys/isa/atkbdc_isa.c b/sys/isa/atkbdc_isa.c index d0476a315d4..5f1408c8ddb 100644 --- a/sys/isa/atkbdc_isa.c +++ b/sys/isa/atkbdc_isa.c @@ -35,8 +35,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #include diff --git a/sys/pc98/include/bus_memio.h b/sys/pc98/include/bus_memio.h deleted file mode 100644 index 5221cfcd7be..00000000000 --- a/sys/pc98/include/bus_memio.h +++ /dev/null @@ -1,4 +0,0 @@ -/*- - * This file is in the public domain. - */ -/* $FreeBSD$ */ diff --git a/sys/pc98/include/bus_pio.h b/sys/pc98/include/bus_pio.h deleted file mode 100644 index 5221cfcd7be..00000000000 --- a/sys/pc98/include/bus_pio.h +++ /dev/null @@ -1,4 +0,0 @@ -/*- - * This file is in the public domain. - */ -/* $FreeBSD$ */ diff --git a/sys/pci/alpm.c b/sys/pci/alpm.c index 9a0e5374f6b..e6f81493a80 100644 --- a/sys/pci/alpm.c +++ b/sys/pci/alpm.c @@ -38,8 +38,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/pci/amdpm.c b/sys/pci/amdpm.c index 22ca1031338..2c8af6266ed 100644 --- a/sys/pci/amdpm.c +++ b/sys/pci/amdpm.c @@ -42,8 +42,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include #include diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c index 4fe664d1c8c..ae92c8dc920 100644 --- a/sys/pci/if_dc.c +++ b/sys/pci/if_dc.c @@ -112,8 +112,6 @@ __FBSDID("$FreeBSD$"); #include -#include -#include #include #include #include diff --git a/sys/pci/if_pcn.c b/sys/pci/if_pcn.c index 006072429cc..640c827c2f7 100644 --- a/sys/pci/if_pcn.c +++ b/sys/pci/if_pcn.c @@ -71,8 +71,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include -#include #include #include #include diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c index e71cbb8471c..4f2fd9b42f2 100644 --- a/sys/pci/if_rl.c +++ b/sys/pci/if_rl.c @@ -101,8 +101,6 @@ __FBSDID("$FreeBSD$"); #include -#include -#include #include #include #include diff --git a/sys/pci/if_sf.c b/sys/pci/if_sf.c index ed91f015aad..5593d525ece 100644 --- a/sys/pci/if_sf.c +++ b/sys/pci/if_sf.c @@ -98,8 +98,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include -#include #include #include #include diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c index 0e461ba7ea0..ad7e1b321bc 100644 --- a/sys/pci/if_sis.c +++ b/sys/pci/if_sis.c @@ -78,8 +78,6 @@ __FBSDID("$FreeBSD$"); #include -#include -#include #include #include #include diff --git a/sys/pci/if_sk.c b/sys/pci/if_sk.c index 9f148a1c72f..1703e2f36f5 100644 --- a/sys/pci/if_sk.c +++ b/sys/pci/if_sk.c @@ -106,8 +106,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include -#include #include #include #include diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c index ac5a2b52caf..7c51421049c 100644 --- a/sys/pci/if_ste.c +++ b/sys/pci/if_ste.c @@ -54,8 +54,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include -#include #include #include #include diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c index 86cea7c7475..4af3b292bde 100644 --- a/sys/pci/if_ti.c +++ b/sys/pci/if_ti.c @@ -108,7 +108,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include #include #include #include diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c index 1415f210ff5..0f70a32d10c 100644 --- a/sys/pci/if_tl.c +++ b/sys/pci/if_tl.c @@ -196,8 +196,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include -#include #include #include #include diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c index 843be854f4f..502deb1d212 100644 --- a/sys/pci/if_vr.c +++ b/sys/pci/if_vr.c @@ -79,8 +79,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include -#include #include #include #include diff --git a/sys/pci/if_wb.c b/sys/pci/if_wb.c index e22d61c2a8a..8b460ec58a7 100644 --- a/sys/pci/if_wb.c +++ b/sys/pci/if_wb.c @@ -105,8 +105,6 @@ __FBSDID("$FreeBSD$"); #include /* for vtophys */ #include /* for vtophys */ -#include -#include #include #include #include diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index 07416679310..272b70bb3a6 100644 --- a/sys/pci/if_xl.c +++ b/sys/pci/if_xl.c @@ -119,8 +119,6 @@ __FBSDID("$FreeBSD$"); #include -#include -#include #include #include #include diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c index cbe622b9332..1e454bb8413 100644 --- a/sys/pci/intpm.c +++ b/sys/pci/intpm.c @@ -30,8 +30,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include #include #include diff --git a/sys/pci/viapm.c b/sys/pci/viapm.c index 522d057637e..685eccd468f 100644 --- a/sys/pci/viapm.c +++ b/sys/pci/viapm.c @@ -34,8 +34,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include #include #include /* for DELAY */ #include diff --git a/sys/powerpc/include/bus_memio.h b/sys/powerpc/include/bus_memio.h deleted file mode 100644 index 24410006b93..00000000000 --- a/sys/powerpc/include/bus_memio.h +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: FreeBSD: src/sys/i386/include/bus_memio.h,v 1.2 1999/08/28 - * - * $FreeBSD$ - */ - -#ifndef _MACHINE_BUS_MEMIO_H_ -#define _MACHINE_BUS_MEMIO_H_ -#endif /* _MACHINE_BUS_MEMIO_H_ */ diff --git a/sys/powerpc/include/bus_pio.h b/sys/powerpc/include/bus_pio.h deleted file mode 100644 index aba61dfddfc..00000000000 --- a/sys/powerpc/include/bus_pio.h +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: FreeBSD: src/sys/i386/include/bus_pio.h,v 1.2 1999/08/28 - * - * $FreeBSD$ - */ - -#ifndef _MACHINE_BUS_PIO_H_ -#define _MACHINE_BUS_PIO_H_ -#endif /* _MACHINE_BUS_PIO_H_ */ diff --git a/sys/powerpc/psim/sio_iobus.c b/sys/powerpc/psim/sio_iobus.c index cb6cffa79a4..1d6c6017cf1 100644 --- a/sys/powerpc/psim/sio_iobus.c +++ b/sys/powerpc/psim/sio_iobus.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include diff --git a/sys/powerpc/psim/uart_iobus.c b/sys/powerpc/psim/uart_iobus.c index cb6cffa79a4..1d6c6017cf1 100644 --- a/sys/powerpc/psim/uart_iobus.c +++ b/sys/powerpc/psim/uart_iobus.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include diff --git a/sys/sparc64/include/bus_memio.h b/sys/sparc64/include/bus_memio.h deleted file mode 100644 index 24410006b93..00000000000 --- a/sys/sparc64/include/bus_memio.h +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: FreeBSD: src/sys/i386/include/bus_memio.h,v 1.2 1999/08/28 - * - * $FreeBSD$ - */ - -#ifndef _MACHINE_BUS_MEMIO_H_ -#define _MACHINE_BUS_MEMIO_H_ -#endif /* _MACHINE_BUS_MEMIO_H_ */ diff --git a/sys/sparc64/include/bus_pio.h b/sys/sparc64/include/bus_pio.h deleted file mode 100644 index aba61dfddfc..00000000000 --- a/sys/sparc64/include/bus_pio.h +++ /dev/null @@ -1,33 +0,0 @@ -/*- - * Copyright (c) 1997 Justin Gibbs. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * from: FreeBSD: src/sys/i386/include/bus_pio.h,v 1.2 1999/08/28 - * - * $FreeBSD$ - */ - -#ifndef _MACHINE_BUS_PIO_H_ -#define _MACHINE_BUS_PIO_H_ -#endif /* _MACHINE_BUS_PIO_H_ */