#include <asm/sn/invent.h>
#include <asm/sn/hcl.h>
#include <asm/sn/labelcl.h>
-#include <asm//sn/sn_sal.h>
+#include <asm/sn/sn_sal.h>
#include <asm/sn/addrs.h>
#include <asm/sn/ioconfig_bus.h>
char *name;
char *temp;
char *next;
- char *current;
+ char *curr;
char *line;
struct ascii_moduleid *moduleid;
name = kmalloc(125, GFP_KERNEL);
memset(name, 0, 125);
moduleid = table;
- current = file_contents;
- while (nextline(current, &next, line)){
+ curr = file_contents;
+ while (nextline(curr, &next, line)){
- DBG("current 0x%lx next 0x%lx\n", current, next);
+ DBG("curr 0x%lx next 0x%lx\n", curr, next);
temp = line;
/*
break;
if (*temp == '\n') {
- current = next;
+ curr = next;
memset(line, 0, 256);
continue;
}
* Skip comment lines
*/
if (*temp == '#') {
- current = next;
+ curr = next;
memset(line, 0, 256);
continue;
}
DBG("Found %s\n", name);
moduleid++;
free_entry++;
- current = next;
+ curr = next;
memset(line, 0, 256);
}
pci_read_config_byte(device_dev, PCI_INTERRUPT_PIN,
(unsigned char *)&lines);
- irqpdaindr->current = device_dev;
+ irqpdaindr->curr = device_dev;
intr_handle = pciio_intr_alloc(device_vertex, NULL, lines, device_vertex);
irq = intr_handle->pi_irq;
min_shared = 256;
for (i=IA64_SN2_FIRST_DEVICE_VECTOR; i < IA64_SN2_LAST_DEVICE_VECTOR; i++) {
/* Share with the same device class */
- if (irqpdaindr->current->vendor == irqpdaindr->device_dev[i]->vendor &&
- irqpdaindr->current->device == irqpdaindr->device_dev[i]->device &&
+ if (irqpdaindr->curr->vendor == irqpdaindr->device_dev[i]->vendor &&
+ irqpdaindr->curr->device == irqpdaindr->device_dev[i]->device &&
irqpdaindr->share_count[i] < min_shared) {
min_shared = irqpdaindr->share_count[i];
bit = i;
char irq_flags[NR_IRQS];
struct pci_dev *device_dev[NR_IRQS];
char share_count[NR_IRQS];
- struct pci_dev *current;
+ struct pci_dev *curr;
};
typedef struct irqpda_s irqpda_t;