OsdHardware.c (87036) | OsdHardware.c (92666) |
---|---|
1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/acpica/Osd/OsdHardware.c 87036 2001-11-28 04:36:29Z msmith $ | 27 * $FreeBSD: head/sys/dev/acpica/Osd/OsdHardware.c 92666 2002-03-19 11:02:06Z peter $ |
28 */ 29 30/* 31 * 6.7 : Hardware Abstraction 32 */ 33 34#include "acpi.h" 35 --- 34 unchanged lines hidden (view full) --- 70 case 16: 71 *(u_int16_t *)Value = bus_space_read_2(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, InPort); 72 break; 73 case 32: 74 *(u_int32_t *)Value = bus_space_read_4(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, InPort); 75 break; 76 default: 77 /* debug trap goes here */ | 28 */ 29 30/* 31 * 6.7 : Hardware Abstraction 32 */ 33 34#include "acpi.h" 35 --- 34 unchanged lines hidden (view full) --- 70 case 16: 71 *(u_int16_t *)Value = bus_space_read_2(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, InPort); 72 break; 73 case 32: 74 *(u_int32_t *)Value = bus_space_read_4(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, InPort); 75 break; 76 default: 77 /* debug trap goes here */ |
78 break; |
|
78 } 79 80 return(AE_OK); 81} 82 83ACPI_STATUS 84AcpiOsWritePort ( 85 ACPI_IO_ADDRESS OutPort, --- 7 unchanged lines hidden (view full) --- 93 case 16: 94 bus_space_write_2(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, OutPort, Value); 95 break; 96 case 32: 97 bus_space_write_4(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, OutPort, Value); 98 break; 99 default: 100 /* debug trap goes here */ | 79 } 80 81 return(AE_OK); 82} 83 84ACPI_STATUS 85AcpiOsWritePort ( 86 ACPI_IO_ADDRESS OutPort, --- 7 unchanged lines hidden (view full) --- 94 case 16: 95 bus_space_write_2(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, OutPort, Value); 96 break; 97 case 32: 98 bus_space_write_4(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, OutPort, Value); 99 break; 100 default: 101 /* debug trap goes here */ |
102 break; |
|
101 } 102 103 return(AE_OK); 104} 105 106ACPI_STATUS 107AcpiOsReadPciConfiguration ( 108 ACPI_PCI_ID *PciId, --- 15 unchanged lines hidden (view full) --- 124 case 16: 125 *(u_int16_t *)Value = val & 0xffff; 126 break; 127 case 32: 128 *(u_int32_t *)Value = val; 129 break; 130 default: 131 /* debug trap goes here */ | 103 } 104 105 return(AE_OK); 106} 107 108ACPI_STATUS 109AcpiOsReadPciConfiguration ( 110 ACPI_PCI_ID *PciId, --- 15 unchanged lines hidden (view full) --- 126 case 16: 127 *(u_int16_t *)Value = val & 0xffff; 128 break; 129 case 32: 130 *(u_int32_t *)Value = val; 131 break; 132 default: 133 /* debug trap goes here */ |
134 break; |
|
132 } 133 134 135 return(AE_OK); 136} 137 138 139ACPI_STATUS --- 15 unchanged lines hidden --- | 135 } 136 137 138 return(AE_OK); 139} 140 141 142ACPI_STATUS --- 15 unchanged lines hidden --- |