OSDN Git Service

Solaris: refactor pci_device_solx_devfs_map_range to reduce code duplication
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Thu, 19 Apr 2012 05:17:54 +0000 (22:17 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 24 Apr 2012 02:37:41 +0000 (19:37 -0700)
commit9f2d95e61896f41adb8087fb805eb37899cce55f
tree15cf432a3a3029a90a7141a8462512fd4f367ed9
parentd50292ca8cbbaa5e0c92627f3d7813194c7c83ac
Solaris: refactor pci_device_solx_devfs_map_range to reduce code duplication

The sparc & x86 cases were doing essentially the same things with
different paths, so make the path setup be inside the platform
specific #ifdefs, make the open, mmap, & error handling common code.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
src/solx_devfs.c