Commit Graph

18 Commits

Author SHA1 Message Date
jruoho
396210649d acpi_pcidev_find_dev(): take struct acpi_devnode as a parameter. 2010-12-31 10:56:39 +00:00
jruoho
aa705fc95d Move the function that finds a device_t for the corresponding ACPI device
node from ACPIVERBOSE to the ACPI PCI code.
2010-12-31 10:23:44 +00:00
gsutre
af565a28d4 An _ADR object is not required for PCI root bridges. To solve
this, the structure acpi_pciinfo now tells whether the ACPI
device node is a PCI bridge, a regular PCI device, or both.

Problem reported by jmcneill@, who also suggested the solution.

ok jmcneill@, jruoho@
2010-10-26 22:27:44 +00:00
gsutre
a9c0568376 Do not discard ACPI PCI addresses with function number 0xFFFF: the
ACPI specification allows them (ACPI 4.0a, p. 200).

ok jruoho@
2010-09-24 07:48:59 +00:00
gsutre
474664a934 acpi_pcidev_scan: attach PCI information only to working devices.
ok jruoho@
2010-08-09 09:36:42 +00:00
gsutre
110cd99be7 acpi_pcidev_scan: discard invalid PCI addresses. 2010-08-08 16:26:47 +00:00
mrg
0196355634 pci_chipset_tag_t is opaque - don't compare it to NULL, just use it.
shouldn't be a problem because "acpi_softc" variable isn't setup until
the "sc_pc" member is set.

fixes ia64 build.  tested on amd64.  ok jruoho.
2010-06-09 04:20:10 +00:00
jruoho
727f1f57e9 Improve and rearrange comments. 2010-04-26 13:30:31 +00:00
jruoho
84377acda5 Simplify acpi_pcidev_find(): directly return a pointer to the device node. 2010-04-23 15:46:59 +00:00
jruoho
bdb6986f24 Some pretty printing for ACPIVERBOSE. 2010-04-22 21:58:08 +00:00
jruoho
e0aec4e102 Wrap long lines, add some white space for readability, remove unnecessary
variable assignments, misc KNF. No functional change.
2010-04-22 15:25:46 +00:00
jruoho
1af445da2a Shorten the long lines with two custom macros. 2010-04-22 15:14:24 +00:00
jruoho
b3ff23fb49 From Gregoire Sutre: rework the ACPI PCI support. This makes ACPI to
correctly pick PCI segment groups, PCI bus numbers, PCI root bridges,
PCI-to-PCI bridges, and PCI devices, among other things. In short: it is
more robust than the old code or anything in sys/arch/x86/x86/mpacpi.c.

ok cegger@, jmcneill@
2010-04-22 14:50:30 +00:00
jruoho
0c6bf9beea From Gregoire Sutre:
Modify the main ACPI namespace scan by including a parent-child
  relationship for each node. The result is a bi-directional tree.

ok jmcneill@
2010-04-18 14:05:26 +00:00
jruoho
320e1e3fb8 Remove the namespace scopes.
These are neither used nor useful beyond the parser and interpreter.

ok jmcneill@, joerg@
2010-03-09 18:15:21 +00:00
jruoho
5a425210a3 Remove <dev/acpi/acpica.h> from all files. It is included from
<dev/acpi/acpivar.h>. Ditto for <dev/sysmon/sysmonvar.h>, <sys/bus.h>,
<dev/pci/pcivar.h>, and <dev/isa/isavar.h>.

Also nuke a lot of unused and invalid headers. Some of these are audibly
provided by standard headers (namely <sys/param.h> and <sys/device.h>), some
have nothing to do with ACPI devices (e.g. <sys/syslog.h>), and some are
nonexistent local includes (e.g. "mpu_ym.h"). Moreoever, try to group the
includes into their respective blocks.

Tested with GENERIC and ALL (i386). No functional change.
2010-03-05 14:00:16 +00:00
njoly
5d456b9df1 Fix NetBSD keyword expansion. 2009-12-04 10:42:39 +00:00
cegger
82b81a0cd1 Enumerate ACPI PCI devices. Allows to link PCI with ACPI devices.
Patch presented on tech-kern@
http://mail-index.netbsd.org/tech-kern/2009/11/28/msg006552.html

'nice work' Jukka Ruohonen
2009-12-03 21:04:29 +00:00