enum dio200_layout layout;
};
+#define IS_ISA_BOARD(board) (DO_ISA && (board)->bustype == isa_bustype)
+#define IS_PCI_BOARD(board) (DO_PCI && (board)->bustype == pci_bustype)
+
static const struct dio200_board dio200_boards[] = {
#if DO_ISA
{
char tmpbuf[60];
int tmplen;
- if (DO_ISA && thisboard->bustype == isa_bustype)
+ if (IS_ISA_BOARD(thisboard))
tmplen = scnprintf(tmpbuf, sizeof(tmpbuf),
"(base %#lx) ", dev->iobase);
- else if (DO_PCI && thisboard->bustype == pci_bustype)
+ else if (IS_PCI_BOARD(thisboard))
tmplen = scnprintf(tmpbuf, sizeof(tmpbuf),
"(pci %s) ", pci_name(pcidev));
else
}
/* Process options and reserve resources according to bus type. */
- if (DO_ISA && thisboard->bustype == isa_bustype) {
+ if (IS_ISA_BOARD(thisboard)) {
unsigned long iobase;
unsigned int irq;
if (ret < 0)
return ret;
return dio200_common_attach(dev, iobase, irq, 0);
- } else if (DO_PCI && thisboard->bustype == pci_bustype) {
+ } else if (IS_PCI_BOARD(thisboard)) {
struct pci_dev *pci_dev;
pci_dev = dio200_find_pci_dev(dev, it);