Re: newbus ioport usage
From: M. Warner Losh (imp_at_bsdimp.com)
Date: 01/26/04
- Previous message: Nate Lawson: "newbus ioport usage"
- In reply to: Nate Lawson: "newbus ioport usage"
- Next in thread: Nate Lawson: "Re: newbus ioport usage"
- Reply: Nate Lawson: "Re: newbus ioport usage"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Jan 2004 15:17:28 -0700 (MST) To: nate@root.org
In message: <20040126140100.T29680@root.org>
Nate Lawson <nate@root.org> writes:
: I have a driver that knows the IO port it wants. It's not set up by a
: parent bus, so I can't use bus_set_resource(). This call returns NULL.
: Any idea how to debug why newbus is rejecting this request? The io port
: is not in use and the rid is unique.
:
: bus_alloc_resource(dev, SYS_RES_IOPORT, rid, 0x101c, 0x101c, 1,
: RF_ACTIVE);
Ummm, you can use bus_set_resource() in the driver to do this (I've
done it before). bus_set_resource() should return 0 to indicate
success. bus_alloc_resource should then succeed. There may be one
other step to do as well to make this work, but I'm not sure if it is
an internal convention or actually required. The pci bus code does a
resource_list_add for each of the resources the child uses, but I
think that's an internal thing to the pci bus (that other busses do
also).
Warner
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Nate Lawson: "newbus ioport usage"
- In reply to: Nate Lawson: "newbus ioport usage"
- Next in thread: Nate Lawson: "Re: newbus ioport usage"
- Reply: Nate Lawson: "Re: newbus ioport usage"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- ACPI caused device timeout.
... pci0: <PCI bus> on pcib0 ... ppc0: parallel port not found. ...
ahc0: No resources allocated. ... (freebsd-current) - Re: NDIS WDM driver installation for multi-port NIC
... I would not think the one INF should be a problem. ... Windows 2k/XP/2k3 Filesystem
and Driver Consulting ... the miniport driver (the bus driver starts up fine). ...
identify the particular port you are communicating with. ... (microsoft.public.development.device.drivers) - Re: NDIS WDM driver installation for multi-port NIC
... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... miniport's inf and to
install the miniport driver. ... the miniport driver (the bus driver starts up fine).
... identify the particular port you are communicating with. ... (microsoft.public.development.device.drivers) - Re: NDIS WDM driver installation for multi-port NIC
... I also have some questions regarding which class the bus driver should be ...
PDO for each port, and have one IOCTL you can issue that will return the ... (microsoft.public.development.device.drivers) - Ati driver xorg 1.4, works badly
... driver works OK, but with ati or radeon driver, 3d acceletarion does not work ...
depth 24, visualID 0x23 ... <ACPI PCI bus> on pcib0 ... <Parallel
port bus> on ppc0 ... (freebsd-current)