Subject: kern/32137: if_vge uses BUS_SPACE_MAP_LINEAR unnecessarily
To: None <email@example.com, firstname.lastname@example.org,>
From: None <email@example.com>
Date: 11/21/2005 17:42:00
>Synopsis: if_vge uses BUS_SPACE_MAP_LINEAR unnecessarily
>Arrival-Date: Mon Nov 21 17:42:00 +0000 2005
>Originator: Garrett D'Amore
Tadpole Computer, Inc.
evbmips Au1550 -- big-endian
While trying to locate devices that use linear bus_space mappings on the PCI bus, I identified vge as a device that performs a linear mapping. The driver however, never takes a vaddr and never accesses the mapped region directly -- which is good. So it should remove the requirement for a linear mapping from its mapping operation, because quite frankly this could limit the sorts of systems that the device can be used on.
(See the message http://mail-index.netbsd.org/tech-kern/2005/11/21/0008.html for more detail about why this is a problem.)
Just remove the BUS_SPACE_MAP_LINEAR flag from the bus_space_map flags.