Commit cb3e9d86 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: comedidev.h: add PCI_VENDOR_ID_CB



Add a define for the ComputerBoards/Measurement Computing PCI
vendor id. Remove the duplicates in the drivers.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b9287a30
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -54,9 +54,13 @@
	COMEDI_MINORVERSION, COMEDI_MICROVERSION)
#define COMEDI_RELEASE VERSION

#define PCI_VENDOR_ID_ADLINK		0x144a
/*
 * PCI Vendor IDs not in <linux/pci_ids.h>
 */
#define PCI_VENDOR_ID_ICP		0x104c
#define PCI_VENDOR_ID_CONTEC		0x1221
#define PCI_VENDOR_ID_CB		0x1307	/* Measurement Computing */
#define PCI_VENDOR_ID_ADLINK		0x144a

#define COMEDI_NUM_MINORS 0x100
#define COMEDI_NUM_BOARD_MINORS 0x30
+0 −3
Original line number Diff line number Diff line
@@ -65,9 +65,6 @@ Configuration Options: not applicable, uses PCI auto config
#define PCI_DEVICE_ID_ADLINK_PCI7248	0x7248
#define PCI_DEVICE_ID_ADLINK_PCI7296	0x7296

/* ComputerBoards is now known as Measurement Computing */
#define PCI_VENDOR_ID_CB		0x1307

#define PCI_DEVICE_ID_CB_PCIDIO48H	0x000b
#define PCI_DEVICE_ID_CB_PCIDIO24H	0x0014
#define PCI_DEVICE_ID_CB_PCIDIO96H	0x0017
+0 −3
Original line number Diff line number Diff line
@@ -76,9 +76,6 @@ analog triggering on 1602 series
#include "amcc_s5933.h"
#include "comedi_fc.h"

/* PCI vendor number of ComputerBoards/MeasurementComputing */
#define PCI_VENDOR_ID_CB	0x1307

#define TIMER_BASE		100	/* 10MHz master clock */
#define AI_BUFFER_SIZE		1024	/* max ai fifo size */
#define AO_BUFFER_SIZE		1024	/* max ao fifo size */
+20 −22
Original line number Diff line number Diff line
@@ -105,8 +105,6 @@ TODO:
#define PRESCALED_TIMER_BASE	10000	/*  100kHz 'prescaled' clock for slow acquisition, maybe I'll support this someday */
#define DMA_BUFFER_SIZE 0x1000

#define PCI_VENDOR_ID_COMPUTERBOARDS	0x1307

/* maximum value that can be loaded into board's 24-bit counters*/
static const int max_counter_value = 0xffffff;

@@ -1661,7 +1659,7 @@ static struct pci_dev *cb_pcidas64_find_pci_dev(struct comedi_device *dev,
			    slot != PCI_SLOT(pcidev->devfn))
				continue;
		}
		if (pcidev->vendor != PCI_VENDOR_ID_COMPUTERBOARDS)
		if (pcidev->vendor != PCI_VENDOR_ID_CB)
			continue;

		for (i = 0; i < ARRAY_SIZE(pcidas64_boards); i++) {
@@ -4258,25 +4256,25 @@ static void __devexit cb_pcidas64_pci_remove(struct pci_dev *dev)
}

static DEFINE_PCI_DEVICE_TABLE(cb_pcidas64_pci_table) = {
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x001d) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x001e) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0035) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0036) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0037) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0052) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x005d) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x005e) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x005f) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0061) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0062) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0063) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0064) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0066) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0067) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0068) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x006f) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0078) },
	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0079) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x001d) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x001e) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0035) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0036) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0037) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0052) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x005d) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x005e) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x005f) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0061) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0062) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0063) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0064) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0066) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0067) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0068) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x006f) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0078) },
	{ PCI_DEVICE(PCI_VENDOR_ID_CB, 0x0079) },
	{ 0 }
};
MODULE_DEVICE_TABLE(pci, cb_pcidas64_pci_table);
+0 −1
Original line number Diff line number Diff line
@@ -54,7 +54,6 @@ Please report success/failure with other different cards to
/*
 * ComputerBoards PCI Device ID's supported by this driver
 */
#define PCI_VENDOR_ID_CB		0x1307
#define PCI_DEVICE_ID_DDA02_12		0x0020
#define PCI_DEVICE_ID_DDA04_12		0x0021
#define PCI_DEVICE_ID_DDA08_12		0x0022
Loading