Meteor driver with new PCI interface for NetBSD 1.3 and up


Changes

In NetBSD 1.3 and up, PCI device drivers use memory different and interrupt mapping methods than the previous versions. As meteor driver was originally ported to earlier version of NetBSD from FreeBSD, changes are needed to make it work for latest versions of NetBSD.


Source code


Install/update notes

  1. Download meteor.c to src/sys/dev/pci/.
  2. Edit src/sys/dev/pci/files.pci to add the following lines:

    	# Matrox Meteor Framegrabber
    	device  meteor
    	attach  meteor at pci
    	file    dev/pci/meteor.c	meteor  needs-flag
    	
  3. Add meteor support intp your kernel config file as follows:

    	# Meteor grabber
    	options METEOR          # Enable meteor grabber driver
    	...
    	meteor* at pci? dev ?   #Matrox Meteor framegrabber
    	
  4. Rebuild your kernel, see NetBSD kernel guide for details.
  5. Reboot with newly built lernel.
  6. Make device node with the following commands:

    	# cd /dev
    	# mknod meteor0 b 67 0
    	# chmod a+rw meteor0
    	
  7. That's it.

Ruibiao
Last updated: 2/17/2000