NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/43520: ral(4) at usb(4) doesn't compile on ports without pci(4)



        Note: There was a bad value `' for the field `Class'.
        It was set to the default value of `sw-bug'.

>Number:         43520
>Category:       kern
>Synopsis:       ral(4) at usb(4) doesn't compile on ports without pci(4)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 25 16:35:00 +0000 2010
>Originator:     Izumi Tsutsui
>Release:        NetBSD 5.99.30
>Organization:
>Environment:
System: NetBSD mirage 5.99.30 hpcarm on W-ZERO3 WS003SH
Architecture: arm
Machine: hpcarm, but probably affects more ports
>Description:
ral(4) requires MI src/sys/dev/rt2661.c, but it includes <dev/pci/pcidevs.h>
to refer PCI device IDs for ral(4) at pci(4).
The pcidevs.h includes <machine/pci_machpdep.h> which is not provided
on ports that don't have PCI, so ral(4) at usb(4) doesn't compile
on such ports.

>How-To-Repeat:
Configure ral(4) at usb(4) on hpcarm (or other PXA27x based ports
without PCI) and build a kernel.

>Fix:
 - move PCI dependent code from MI source to a bus dependent hook function?
 - define and use ral(4) own IDs instead of IDs from pcidevs.h?

---
Izumi Tsutsui



Home | Main Index | Thread Index | Old Index