Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337881
b: refs/heads/master
c: 9138de6
h: refs/heads/master
i:
  337879: 16a3b67
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent f1d0eeb commit 44dce93
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42e07ce63e181c9a6bd7166f55c5dbb9a984a776
refs/heads/master: 9138de6b6befaae36b1074ce01c37517aceda061
19 changes: 13 additions & 6 deletions trunk/drivers/staging/comedi/drivers/addi_apci_1516.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
#include "../comedidev.h"
#include "comedi_fc.h"

/*
* PCI device ids supported by this driver
*/
#define PCI_DEVICE_ID_APCI1016 0x1000
#define PCI_DEVICE_ID_APCI1516 0x1001
#define PCI_DEVICE_ID_APCI2016 0x1002

/*
* PCI bar 1 I/O Register map
*/
Expand Down Expand Up @@ -60,17 +67,17 @@ struct apci1516_boardinfo {
static const struct apci1516_boardinfo apci1516_boardtypes[] = {
{
.name = "apci1016",
.device = 0x1000,
.device = PCI_DEVICE_ID_APCI1016,
.di_nchan = 16,
}, {
.name = "apci1516",
.device = 0x1001,
.device = PCI_DEVICE_ID_APCI1516,
.di_nchan = 8,
.do_nchan = 8,
.has_timer = 1,
}, {
.name = "apci2016",
.device = 0x1002,
.device = PCI_DEVICE_ID_APCI2016,
.do_nchan = 16,
.has_timer = 1,
},
Expand Down Expand Up @@ -309,9 +316,9 @@ static void __devexit apci1516_pci_remove(struct pci_dev *dev)
}

static DEFINE_PCI_DEVICE_TABLE(apci1516_pci_table) = {
{ PCI_DEVICE(PCI_VENDOR_ID_ADDIDATA, 0x1000) },
{ PCI_DEVICE(PCI_VENDOR_ID_ADDIDATA, 0x1001) },
{ PCI_DEVICE(PCI_VENDOR_ID_ADDIDATA, 0x1002) },
{ PCI_DEVICE(PCI_VENDOR_ID_ADDIDATA, PCI_DEVICE_ID_APCI1016) },
{ PCI_DEVICE(PCI_VENDOR_ID_ADDIDATA, PCI_DEVICE_ID_APCI1516) },
{ PCI_DEVICE(PCI_VENDOR_ID_ADDIDATA, PCI_DEVICE_ID_APCI2016) },
{ 0 }
};
MODULE_DEVICE_TABLE(pci, apci1516_pci_table);
Expand Down

0 comments on commit 44dce93

Please sign in to comment.