Expose ioctl API to PCI device driver

Rebased patch, original work done by Jorn van Engelen
Original diff can be found from:
  http://ftp.quzart.com/minix/modular-xorg-server/2011.04.15_16.37/minix.src_pci-dev_2011.04.15_16.37.30.diff