/*
 * findpci -- determine Revision of Winbond 553 IDE chip.
 * 		Rev 05 is "F", Rev 10 is "G".  The latter is DMA capable.
 *
 * 22-Nov-1999 Ralph Siemsen
 */

#define __KERNEL__
#include <linux/config.h>
#include <linux/pci.h>
#define MODULE
#include <linux/module.h>

#define VENDOR_ID PCI_VENDOR_ID_WINBOND
#define DEVICE_ID PCI_DEVICE_ID_WINBOND_83C553

int init_module (void) {
    u8 rev;
    struct pci_dev *dev = 0;

    while (dev = pci_find_device (VENDOR_ID, DEVICE_ID, dev)) {
	pci_read_config_byte (dev, PCI_REVISION_ID, &rev);
    	printk (KERN_DEBUG "Found Winbond 553 (%04x:%04x) Rev %02x\n",
    	    VENDOR_ID, DEVICE_ID, rev);
    }
    return 0; 
}

void cleanup_module (void) {
}

