15 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
17 #include <linux/netdevice.h>
18 #include <linux/hdlc.h>
19 #include <linux/if_arp.h>
20 #include <asm/uaccess.h>
21 #include <linux/rtnetlink.h>
22 #include <linux/pci.h>
34 #ifdef SBE_INCLUDE_SYMBOLS
64 ci = (
ci_t *)(netdev_priv(hi->
ndev));
79 sprintf (banner,
"%s: %s S/N %06X, MUSYCC Rev %02X",
81 ((sn[3] << 16) & 0xff0000) |
82 ((sn[4] << 8) & 0x00ff00) |
89 pr_info(
"%s: %s at v/p=%lx/%lx (%02x:%02x.%x) irq %d\n",
96 pr_info(
"%s: %s at v/p=%lx/%lx (%02x:%02x.%x) irq %d\n",
117 unsigned char *ucp = (
unsigned char *) &hi->
mfg_info.
data;
119 pr_info(
"eeprom[00]: %02x %02x %02x %02x %02x %02x %02x %02x\n",
120 *(ucp + 0), *(ucp + 1), *(ucp + 2), *(ucp + 3), *(ucp + 4), *(ucp + 5), *(ucp + 6), *(ucp + 7));
121 pr_info(
"eeprom[08]: %02x %02x %02x %02x %02x %02x %02x %02x\n",
122 *(ucp + 8), *(ucp + 9), *(ucp + 10), *(ucp + 11), *(ucp + 12), *(ucp + 13), *(ucp + 14), *(ucp + 15));
123 pr_info(
"eeprom[16]: %02x %02x %02x %02x %02x %02x %02x %02x\n",
124 *(ucp + 16), *(ucp + 17), *(ucp + 18), *(ucp + 19), *(ucp + 20), *(ucp + 21), *(ucp + 22), *(ucp + 23));
125 pr_info(
"eeprom[24]: %02x %02x %02x %02x %02x %02x %02x %02x\n",
126 *(ucp + 24), *(ucp + 25), *(ucp + 26), *(ucp + 27), *(ucp + 28), *(ucp + 29), *(ucp + 30), *(ucp + 31));
127 pr_info(
"eeprom[32]: %02x %02x %02x %02x %02x %02x %02x %02x\n",
128 *(ucp + 32), *(ucp + 33), *(ucp + 34), *(ucp + 35), *(ucp + 36), *(ucp + 37), *(ucp + 38), *(ucp + 39));
129 pr_info(
"eeprom[40]: %02x %02x %02x %02x %02x %02x %02x %02x\n",
130 *(ucp + 40), *(ucp + 41), *(ucp + 42), *(ucp + 43), *(ucp + 44), *(ucp + 45), *(ucp + 46), *(ucp + 47));
134 pr_info(
"sn: %x %x %x %x %x %x\n",
211 #ifdef CONFIG_PROC_FS
216 #ifdef CONFIG_SBE_PMCC4_NCOMM
230 unsigned char busno = 0xff;
239 busno = pdev->
bus->number;
242 slot = pdev->
devfn & ~0x07;
264 pr_warning(
"exceeded number of allowed devices (>%d)?\n", MAX_BOARDS);
286 strcpy (cp, KBUILD_MODNAME);
289 *cp++ =
'0' + (found / 2);
325 pr_warning(
"%s: something very wrong with pci_get_device\n",
335 for (j = 0; j < 2; j++)
339 pr_warning(
"%s: memory in use, addr=0x%lx, len=0x%lx ?\n",
347 pr_warning(
"%s: ioremap fails, addr=0x%lx, len=0x%lx ?\n",
353 pr_warning(
"%s: io remapped from phys %x to virt %x\n",
370 pr_warning(
"%s: failed to enable card %d slot %d\n",