Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2010 14:17:46 -0500
From:      Alexander Kabaev <kabaev@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: bus_space_tag, bus_space_handle
Message-ID:  <20100311141746.7bce7b98@kan.dnsalias.net>
In-Reply-To: <201003110814.31009.jhb@freebsd.org>
References:  <9f206d1a1003110104p2f329103mc882c99bcc15ea51@mail.gmail.com> <201003110814.31009.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/KkWBbKu+E5NGgF+tVYd=RJW
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Thu, 11 Mar 2010 08:14:30 -0500
John Baldwin <jhb@freebsd.org> wrote:

> On Thursday 11 March 2010 4:04:52 am Cole wrote:
> > Hi.
> >=20
> > Im currently needing to write to a few registers for a PCI device.
> > The driver is provided, but it does not contain support for writing
> > specific registers itself. I also do not with to modify the driver.
> >=20
> > I would like to know what the best method would be for writing to
> > these registers, the best way to go about getting bus_space_tag, and
> > handle for the connected pci device.
> >=20
> > Im currently using FreeBSD 7.x.
>=20
> You will most likely need to modify the driver.  The PCI bus code
> only hands out valid resources for a given BAR to the device_t for a
> given device.
>=20
> --=20
> John Baldwin

I used /dev/mem and dd in the past for this purpose. Not pretty and
custom tool beats it any day, but it does work.

--=20
Alexander Kabaev

--Sig_/KkWBbKu+E5NGgF+tVYd=RJW
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iD8DBQFLmUHeQ6z1jMm+XZYRAuT1AKDA7Ac2GZxICvQyyc/qgZySPjdudACeIvJh
89txqnr8KKl5cjAQ3z/P2Lg=
=8xmK
-----END PGP SIGNATURE-----

--Sig_/KkWBbKu+E5NGgF+tVYd=RJW--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100311141746.7bce7b98>