Deleted Added
full compact
OsdHardware.c (80071) OsdHardware.c (84446)
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 80071 2001-07-21 04:10:01Z msmith $
27 * $FreeBSD: head/sys/dev/acpica/Osd/OsdHardware.c 84446 2001-10-04 08:33:16Z dfr $
28 */
29
30/*
31 * 6.7 : Hardware Abstraction
32 */
33
34#include "acpi.h"
35

--- 7 unchanged lines hidden (view full) ---

43 * exactly which I/O resources it's going to want to use.
44 *
45 * In order to deal with this, we ignore resource ownership entirely, and simply
46 * use the native I/O space accessor functionality. This is Evil, but it works.
47 *
48 * XXX use an intermediate #define for the tag/handle
49 */
50
28 */
29
30/*
31 * 6.7 : Hardware Abstraction
32 */
33
34#include "acpi.h"
35

--- 7 unchanged lines hidden (view full) ---

43 * exactly which I/O resources it's going to want to use.
44 *
45 * In order to deal with this, we ignore resource ownership entirely, and simply
46 * use the native I/O space accessor functionality. This is Evil, but it works.
47 *
48 * XXX use an intermediate #define for the tag/handle
49 */
50
51#ifdef __i386__
51#define ACPI_BUS_SPACE_IO I386_BUS_SPACE_IO
52#define ACPI_BUS_HANDLE 0
52#define ACPI_BUS_SPACE_IO I386_BUS_SPACE_IO
53#define ACPI_BUS_HANDLE 0
54#endif
55#ifdef __ia64__
56#define ACPI_BUS_SPACE_IO IA64_BUS_SPACE_IO
57#define ACPI_BUS_HANDLE 0
58#endif
53
54ACPI_STATUS
55AcpiOsReadPort (
56 ACPI_IO_ADDRESS InPort,
57 void *Value,
58 UINT32 Width)
59{
60 switch (Width) {

--- 88 unchanged lines hidden ---
59
60ACPI_STATUS
61AcpiOsReadPort (
62 ACPI_IO_ADDRESS InPort,
63 void *Value,
64 UINT32 Width)
65{
66 switch (Width) {

--- 88 unchanged lines hidden ---