vgaarb: fixup api and decode rsrc.
authorDave Airlie <airlied@redhat.com>
Thu, 4 Jun 2009 23:32:10 +0000 (09:32 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Jun 2009 23:32:10 +0000 (09:32 +1000)
commit9ae22c87743c624bda593a1ef4bd4eca01c65655
tree79e3338c68d20bbfa65c96fdaf8d71f2cc1bdc54
parent9ae66143550a6aee25d9a9620c5bebf93fa196e5
vgaarb: fixup api and decode rsrc.

This fixes up the API and stores the vga arb fd in the sys_pci structure,
instead of hiding it in a random dev struct.

It also reads back after setting the target and works out the decodes.

Signed-off-by: Dave Airlie <airlied@redhat.com>
include/pciaccess.h
src/common_vgaarb.c
src/pciaccess_private.h