mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-08-18 02:22:47 -07:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (46 commits) tcp: MD5: Fix IPv6 signatures skbuff: add missing kernel-doc for do_not_encrypt net/ipv4/route.c: fix build error tcp: MD5: Fix MD5 signatures on certain ACK packets ipv6: Fix ip6_xmit to send fragments if ipfragok is true ipvs: Move userspace definitions to include/linux/ip_vs.h netdev: Fix lockdep warnings in multiqueue configurations. netfilter: xt_hashlimit: fix race between htable_destroy and htable_gc netfilter: ipt_recent: fix race between recent_mt_destroy and proc manipulations netfilter: nf_conntrack_tcp: decrease timeouts while data in unacknowledged irda: replace __FUNCTION__ with __func__ nsc-ircc: default to dongle type 9 on IBM hardware bluetooth: add quirks for a few hci_usb devices hysdn: remove the packed attribute from PofTimStamp_tag isdn: use the common ascii hex helpers tg3: adapt tg3 to use reworked PCI PM code atm: fix direct casts of pointers to u32 in the InterPhase driver atm: fix const assignment/discard warnings in the ATM networking driver net: use the common ascii hex helpers random32: seeding improvement ...
This commit is contained in:
commit
9a5467fd60
73 files changed
+2008
-1292
No files matched your search
@@ -18,6 +18,7 @@
|
||||
#include <linux/timer.h>
|
||||
#include <linux/ata_platform.h>
|
||||
#include <linux/mv643xx_eth.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <asm/mach-types.h>
|
||||
#include <asm/mach/arch.h>
|
||||
#include <asm/mach/pci.h>
|
||||
@@ -69,6 +70,8 @@ static struct platform_device rd88f6281_nand_flash = {
|
||||
|
||||
static struct mv643xx_eth_platform_data rd88f6281_ge00_data = {
|
||||
.phy_addr = -1,
|
||||
.speed = SPEED_1000,
|
||||
.duplex = DUPLEX_FULL,
|
||||
};
|
||||
|
||||
static struct mv_sata_platform_data rd88f6281_sata_data = {
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <linux/irq.h>
|
||||
#include <linux/mtd/physmap.h>
|
||||
#include <linux/mv643xx_eth.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <asm/mach-types.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/leds.h>
|
||||
@@ -88,6 +89,8 @@ static struct orion5x_mpp_mode rd88f5181l_fxo_mpp_modes[] __initdata = {
|
||||
|
||||
static struct mv643xx_eth_platform_data rd88f5181l_fxo_eth_data = {
|
||||
.phy_addr = -1,
|
||||
.speed = SPEED_1000,
|
||||
.duplex = DUPLEX_FULL,
|
||||
};
|
||||
|
||||
static void __init rd88f5181l_fxo_init(void)
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <linux/irq.h>
|
||||
#include <linux/mtd/physmap.h>
|
||||
#include <linux/mv643xx_eth.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <asm/mach-types.h>
|
||||
#include <asm/gpio.h>
|
||||
@@ -89,6 +90,8 @@ static struct orion5x_mpp_mode rd88f5181l_ge_mpp_modes[] __initdata = {
|
||||
|
||||
static struct mv643xx_eth_platform_data rd88f5181l_ge_eth_data = {
|
||||
.phy_addr = -1,
|
||||
.speed = SPEED_1000,
|
||||
.duplex = DUPLEX_FULL,
|
||||
};
|
||||
|
||||
static struct i2c_board_info __initdata rd88f5181l_ge_i2c_rtc = {
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <linux/delay.h>
|
||||
#include <linux/mtd/physmap.h>
|
||||
#include <linux/mv643xx_eth.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <asm/mach-types.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/mach/arch.h>
|
||||
@@ -92,6 +93,8 @@ static struct platform_device wnr854t_nor_flash = {
|
||||
|
||||
static struct mv643xx_eth_platform_data wnr854t_eth_data = {
|
||||
.phy_addr = -1,
|
||||
.speed = SPEED_1000,
|
||||
.duplex = DUPLEX_FULL,
|
||||
};
|
||||
|
||||
static void __init wnr854t_init(void)
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <linux/delay.h>
|
||||
#include <linux/mtd/physmap.h>
|
||||
#include <linux/mv643xx_eth.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <asm/mach-types.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/mach/arch.h>
|
||||
@@ -100,6 +101,8 @@ static struct platform_device wrt350n_v2_nor_flash = {
|
||||
|
||||
static struct mv643xx_eth_platform_data wrt350n_v2_eth_data = {
|
||||
.phy_addr = -1,
|
||||
.speed = SPEED_1000,
|
||||
.duplex = DUPLEX_FULL,
|
||||
};
|
||||
|
||||
static void __init wrt350n_v2_init(void)
|
||||
|
||||
+20
-20
@@ -156,8 +156,8 @@ static void ia_hack_tcq(IADEV *dev) {
|
||||
}
|
||||
iavcc_r->vc_desc_cnt--;
|
||||
dev->desc_tbl[desc1 -1].timestamp = 0;
|
||||
IF_EVENT(printk("ia_hack: return_q skb = 0x%x desc = %d\n",
|
||||
(u32)dev->desc_tbl[desc1 -1].txskb, desc1);)
|
||||
IF_EVENT(printk("ia_hack: return_q skb = 0x%p desc = %d\n",
|
||||
dev->desc_tbl[desc1 -1].txskb, desc1);)
|
||||
if (iavcc_r->pcr < dev->rate_limit) {
|
||||
IA_SKB_STATE (dev->desc_tbl[desc1-1].txskb) |= IA_TX_DONE;
|
||||
if (ia_enque_rtn_q(&dev->tx_return_q, dev->desc_tbl[desc1 -1]) < 0)
|
||||
@@ -527,8 +527,8 @@ static int ia_cbr_setup (IADEV *dev, struct atm_vcc *vcc) {
|
||||
inc = 0;
|
||||
testSlot = idealSlot;
|
||||
TstSchedTbl = (u16*)(SchedTbl+testSlot); //set index and read in value
|
||||
IF_CBR(printk("CBR Testslot 0x%x AT Location 0x%x, NumToAssign=%d\n",
|
||||
testSlot, (u32)TstSchedTbl,toBeAssigned);)
|
||||
IF_CBR(printk("CBR Testslot 0x%x AT Location 0x%p, NumToAssign=%d\n",
|
||||
testSlot, TstSchedTbl,toBeAssigned);)
|
||||
memcpy((caddr_t)&cbrVC,(caddr_t)TstSchedTbl,sizeof(cbrVC));
|
||||
while (cbrVC) // If another VC at this location, we have to keep looking
|
||||
{
|
||||
@@ -536,8 +536,8 @@ static int ia_cbr_setup (IADEV *dev, struct atm_vcc *vcc) {
|
||||
testSlot = idealSlot - inc;
|
||||
if (testSlot < 0) { // Wrap if necessary
|
||||
testSlot += dev->CbrTotEntries;
|
||||
IF_CBR(printk("Testslot Wrap. STable Start=0x%x,Testslot=%d\n",
|
||||
(u32)SchedTbl,testSlot);)
|
||||
IF_CBR(printk("Testslot Wrap. STable Start=0x%p,Testslot=%d\n",
|
||||
SchedTbl,testSlot);)
|
||||
}
|
||||
TstSchedTbl = (u16 *)(SchedTbl + testSlot); // set table index
|
||||
memcpy((caddr_t)&cbrVC,(caddr_t)TstSchedTbl,sizeof(cbrVC));
|
||||
@@ -552,8 +552,8 @@ static int ia_cbr_setup (IADEV *dev, struct atm_vcc *vcc) {
|
||||
}
|
||||
// set table index and read in value
|
||||
TstSchedTbl = (u16*)(SchedTbl + testSlot);
|
||||
IF_CBR(printk("Reading CBR Tbl from 0x%x, CbrVal=0x%x Iteration %d\n",
|
||||
(u32)TstSchedTbl,cbrVC,inc);)
|
||||
IF_CBR(printk("Reading CBR Tbl from 0x%p, CbrVal=0x%x Iteration %d\n",
|
||||
TstSchedTbl,cbrVC,inc);)
|
||||
memcpy((caddr_t)&cbrVC,(caddr_t)TstSchedTbl,sizeof(cbrVC));
|
||||
} /* while */
|
||||
// Move this VCI number into this location of the CBR Sched table.
|
||||
@@ -1427,11 +1427,11 @@ static int rx_init(struct atm_dev *dev)
|
||||
/* We know this is 32bit bus addressed so the following is safe */
|
||||
writel(iadev->rx_dle_dma & 0xfffff000,
|
||||
iadev->dma + IPHASE5575_RX_LIST_ADDR);
|
||||
IF_INIT(printk("Tx Dle list addr: 0x%08x value: 0x%0x\n",
|
||||
(u32)(iadev->dma+IPHASE5575_TX_LIST_ADDR),
|
||||
IF_INIT(printk("Tx Dle list addr: 0x%p value: 0x%0x\n",
|
||||
iadev->dma+IPHASE5575_TX_LIST_ADDR,
|
||||
*(u32*)(iadev->dma+IPHASE5575_TX_LIST_ADDR));
|
||||
printk("Rx Dle list addr: 0x%08x value: 0x%0x\n",
|
||||
(u32)(iadev->dma+IPHASE5575_RX_LIST_ADDR),
|
||||
printk("Rx Dle list addr: 0x%p value: 0x%0x\n",
|
||||
iadev->dma+IPHASE5575_RX_LIST_ADDR,
|
||||
*(u32*)(iadev->dma+IPHASE5575_RX_LIST_ADDR));)
|
||||
|
||||
writew(0xffff, iadev->reass_reg+REASS_MASK_REG);
|
||||
@@ -1470,7 +1470,7 @@ static int rx_init(struct atm_dev *dev)
|
||||
buf_desc_ptr++;
|
||||
rx_pkt_start += iadev->rx_buf_sz;
|
||||
}
|
||||
IF_INIT(printk("Rx Buffer desc ptr: 0x%0x\n", (u32)(buf_desc_ptr));)
|
||||
IF_INIT(printk("Rx Buffer desc ptr: 0x%p\n", buf_desc_ptr);)
|
||||
i = FREE_BUF_DESC_Q*iadev->memSize;
|
||||
writew(i >> 16, iadev->reass_reg+REASS_QUEUE_BASE);
|
||||
writew(i, iadev->reass_reg+FREEQ_ST_ADR);
|
||||
@@ -1487,7 +1487,7 @@ static int rx_init(struct atm_dev *dev)
|
||||
*freeq_start = (u_short)i;
|
||||
freeq_start++;
|
||||
}
|
||||
IF_INIT(printk("freeq_start: 0x%0x\n", (u32)freeq_start);)
|
||||
IF_INIT(printk("freeq_start: 0x%p\n", freeq_start);)
|
||||
/* Packet Complete Queue */
|
||||
i = (PKT_COMP_Q * iadev->memSize) & 0xffff;
|
||||
writew(i, iadev->reass_reg+PCQ_ST_ADR);
|
||||
@@ -1713,7 +1713,7 @@ static void tx_dle_intr(struct atm_dev *dev)
|
||||
IA_SKB_STATE(skb) |= IA_DLED;
|
||||
skb_queue_tail(&iavcc->txing_skb, skb);
|
||||
}
|
||||
IF_EVENT(printk("tx_dle_intr: enque skb = 0x%x \n", (u32)skb);)
|
||||
IF_EVENT(printk("tx_dle_intr: enque skb = 0x%p \n", skb);)
|
||||
if (++dle == iadev->tx_dle_q.end)
|
||||
dle = iadev->tx_dle_q.start;
|
||||
}
|
||||
@@ -2044,8 +2044,8 @@ static int tx_init(struct atm_dev *dev)
|
||||
writew(tmp16, iadev->seg_reg+CBR_TAB_END+1); // CBR_PTR;
|
||||
tmp16 = (CBR_SCHED_TABLE*iadev->memSize + iadev->num_vc*6 - 2) >> 1;
|
||||
writew(tmp16, iadev->seg_reg+CBR_TAB_END);
|
||||
IF_INIT(printk("iadev->seg_reg = 0x%x CBR_PTR_BASE = 0x%x\n",
|
||||
(u32)iadev->seg_reg, readw(iadev->seg_reg+CBR_PTR_BASE));)
|
||||
IF_INIT(printk("iadev->seg_reg = 0x%p CBR_PTR_BASE = 0x%x\n",
|
||||
iadev->seg_reg, readw(iadev->seg_reg+CBR_PTR_BASE));)
|
||||
IF_INIT(printk("CBR_TAB_BEG = 0x%x, CBR_TAB_END = 0x%x, CBR_PTR = 0x%x\n",
|
||||
readw(iadev->seg_reg+CBR_TAB_BEG), readw(iadev->seg_reg+CBR_TAB_END),
|
||||
readw(iadev->seg_reg+CBR_TAB_END+1));)
|
||||
@@ -2963,8 +2963,8 @@ static int ia_pkt_tx (struct atm_vcc *vcc, struct sk_buff *skb) {
|
||||
|
||||
/* Put the packet in a tx buffer */
|
||||
trailer = iadev->tx_buf[desc-1].cpcs;
|
||||
IF_TX(printk("Sent: skb = 0x%x skb->data: 0x%x len: %d, desc: %d\n",
|
||||
(u32)skb, (u32)skb->data, skb->len, desc);)
|
||||
IF_TX(printk("Sent: skb = 0x%p skb->data: 0x%p len: %d, desc: %d\n",
|
||||
skb, skb->data, skb->len, desc);)
|
||||
trailer->control = 0;
|
||||
/*big endian*/
|
||||
trailer->length = ((skb->len & 0xff) << 8) | ((skb->len & 0xff00) >> 8);
|
||||
@@ -3181,7 +3181,7 @@ static int __devinit ia_init_one(struct pci_dev *pdev,
|
||||
}
|
||||
dev->dev_data = iadev;
|
||||
IF_INIT(printk(DEV_LABEL "registered at (itf :%d)\n", dev->number);)
|
||||
IF_INIT(printk("dev_id = 0x%x iadev->LineRate = %d \n", (u32)dev,
|
||||
IF_INIT(printk("dev_id = 0x%p iadev->LineRate = %d \n", dev,
|
||||
iadev->LineRate);)
|
||||
|
||||
pci_set_drvdata(pdev, dev);
|
||||
|
||||
@@ -134,6 +134,13 @@ static struct usb_device_id blacklist_ids[] = {
|
||||
|
||||
/* Dell laptop with Broadcom chip */
|
||||
{ USB_DEVICE(0x413c, 0x8126), .driver_info = HCI_RESET | HCI_WRONG_SCO_MTU },
|
||||
/* Dell Wireless 370 */
|
||||
{ USB_DEVICE(0x413c, 0x8156), .driver_info = HCI_RESET | HCI_WRONG_SCO_MTU },
|
||||
/* Dell Wireless 410 */
|
||||
{ USB_DEVICE(0x413c, 0x8152), .driver_info = HCI_RESET | HCI_WRONG_SCO_MTU },
|
||||
|
||||
/* Broadcom 2046 */
|
||||
{ USB_DEVICE(0x0a5c, 0x2151), .driver_info = HCI_RESET },
|
||||
|
||||
/* Microsoft Wireless Transceiver for Bluetooth 2.0 */
|
||||
{ USB_DEVICE(0x045e, 0x009c), .driver_info = HCI_RESET },
|
||||
|
||||
@@ -247,7 +247,6 @@ static inline void dump_bytes(enum debuglevel level, const char *tag,
|
||||
#ifdef CONFIG_GIGASET_DEBUG
|
||||
unsigned char c;
|
||||
static char dbgline[3 * 32 + 1];
|
||||
static const char hexdigit[] = "0123456789abcdef";
|
||||
int i = 0;
|
||||
while (count-- > 0) {
|
||||
if (i > sizeof(dbgline) - 4) {
|
||||
@@ -258,8 +257,8 @@ static inline void dump_bytes(enum debuglevel level, const char *tag,
|
||||
c = *bytes++;
|
||||
dbgline[i] = (i && !(i % 12)) ? '-' : ' ';
|
||||
i++;
|
||||
dbgline[i++] = hexdigit[(c >> 4) & 0x0f];
|
||||
dbgline[i++] = hexdigit[c & 0x0f];
|
||||
dbgline[i++] = hex_asc_hi(c);
|
||||
dbgline[i++] = hex_asc_lo(c);
|
||||
}
|
||||
dbgline[i] = '\0';
|
||||
gig_dbg(level, "%s:%s", tag, dbgline);
|
||||
|
||||
@@ -60,7 +60,7 @@ typedef struct PofRecHdr_tag { /* Pof record header */
|
||||
|
||||
typedef struct PofTimeStamp_tag {
|
||||
/*00 */ unsigned long UnixTime __attribute__((packed));
|
||||
/*04 */ unsigned char DateTimeText[0x28] __attribute__((packed));
|
||||
/*04 */ unsigned char DateTimeText[0x28];
|
||||
/* =40 */
|
||||
/*2C */
|
||||
} tPofTimeStamp;
|
||||
|
||||
+2
-2
@@ -510,14 +510,14 @@ config STNIC
|
||||
config SH_ETH
|
||||
tristate "Renesas SuperH Ethernet support"
|
||||
depends on SUPERH && \
|
||||
(CPU_SUBTYPE_SH7710 || CPU_SUBTYPE_SH7712)
|
||||
(CPU_SUBTYPE_SH7710 || CPU_SUBTYPE_SH7712 || CPU_SUBTYPE_SH7763)
|
||||
select CRC32
|
||||
select MII
|
||||
select MDIO_BITBANG
|
||||
select PHYLIB
|
||||
help
|
||||
Renesas SuperH Ethernet device driver.
|
||||
This driver support SH7710 and SH7712.
|
||||
This driver support SH7710, SH7712 and SH7763.
|
||||
|
||||
config SUNLANCE
|
||||
tristate "Sun LANCE support"
|
||||
|
||||
+81
-30
@@ -605,36 +605,87 @@ adjust_head:
|
||||
static int bfin_mac_hard_start_xmit(struct sk_buff *skb,
|
||||
struct net_device *dev)
|
||||
{
|
||||
unsigned int data;
|
||||
u16 *data;
|
||||
|
||||
current_tx_ptr->skb = skb;
|
||||
|
||||
/*
|
||||
* Is skb->data always 16-bit aligned?
|
||||
* Do we need to memcpy((char *)(tail->packet + 2), skb->data, len)?
|
||||
*/
|
||||
if ((((unsigned int)(skb->data)) & 0x02) == 2) {
|
||||
/* move skb->data to current_tx_ptr payload */
|
||||
data = (unsigned int)(skb->data) - 2;
|
||||
*((unsigned short *)data) = (unsigned short)(skb->len);
|
||||
current_tx_ptr->desc_a.start_addr = (unsigned long)data;
|
||||
/* this is important! */
|
||||
blackfin_dcache_flush_range(data, (data + (skb->len)) + 2);
|
||||
|
||||
if (ANOMALY_05000285) {
|
||||
/*
|
||||
* TXDWA feature is not avaible to older revision < 0.3 silicon
|
||||
* of BF537
|
||||
*
|
||||
* Only if data buffer is ODD WORD alignment, we do not
|
||||
* need to memcpy
|
||||
*/
|
||||
u32 data_align = (u32)(skb->data) & 0x3;
|
||||
if (data_align == 0x2) {
|
||||
/* move skb->data to current_tx_ptr payload */
|
||||
data = (u16 *)(skb->data) - 1;
|
||||
*data = (u16)(skb->len);
|
||||
current_tx_ptr->desc_a.start_addr = (u32)data;
|
||||
/* this is important! */
|
||||
blackfin_dcache_flush_range((u32)data,
|
||||
(u32)((u8 *)data + skb->len + 4));
|
||||
} else {
|
||||
*((u16 *)(current_tx_ptr->packet)) = (u16)(skb->len);
|
||||
memcpy((u8 *)(current_tx_ptr->packet + 2), skb->data,
|
||||
skb->len);
|
||||
current_tx_ptr->desc_a.start_addr =
|
||||
(u32)current_tx_ptr->packet;
|
||||
if (current_tx_ptr->status.status_word != 0)
|
||||
current_tx_ptr->status.status_word = 0;
|
||||
blackfin_dcache_flush_range(
|
||||
(u32)current_tx_ptr->packet,
|
||||
(u32)(current_tx_ptr->packet + skb->len + 2));
|
||||
}
|
||||
} else {
|
||||
*((unsigned short *)(current_tx_ptr->packet)) =
|
||||
(unsigned short)(skb->len);
|
||||
memcpy((char *)(current_tx_ptr->packet + 2), skb->data,
|
||||
(skb->len));
|
||||
current_tx_ptr->desc_a.start_addr =
|
||||
(unsigned long)current_tx_ptr->packet;
|
||||
if (current_tx_ptr->status.status_word != 0)
|
||||
current_tx_ptr->status.status_word = 0;
|
||||
blackfin_dcache_flush_range((unsigned int)current_tx_ptr->
|
||||
packet,
|
||||
(unsigned int)(current_tx_ptr->
|
||||
packet + skb->len) +
|
||||
2);
|
||||
/*
|
||||
* TXDWA feature is avaible to revision < 0.3 silicon of
|
||||
* BF537 and always avaible to BF52x
|
||||
*/
|
||||
u32 data_align = (u32)(skb->data) & 0x3;
|
||||
if (data_align == 0x0) {
|
||||
u16 sysctl = bfin_read_EMAC_SYSCTL();
|
||||
sysctl |= TXDWA;
|
||||
bfin_write_EMAC_SYSCTL(sysctl);
|
||||
|
||||
/* move skb->data to current_tx_ptr payload */
|
||||
data = (u16 *)(skb->data) - 2;
|
||||
*data = (u16)(skb->len);
|
||||
current_tx_ptr->desc_a.start_addr = (u32)data;
|
||||
/* this is important! */
|
||||
blackfin_dcache_flush_range(
|
||||
(u32)data,
|
||||
(u32)((u8 *)data + skb->len + 4));
|
||||
} else if (data_align == 0x2) {
|
||||
u16 sysctl = bfin_read_EMAC_SYSCTL();
|
||||
sysctl &= ~TXDWA;
|
||||
bfin_write_EMAC_SYSCTL(sysctl);
|
||||
|
||||
/* move skb->data to current_tx_ptr payload */
|
||||
data = (u16 *)(skb->data) - 1;
|
||||
*data = (u16)(skb->len);
|
||||
current_tx_ptr->desc_a.start_addr = (u32)data;
|
||||
/* this is important! */
|
||||
blackfin_dcache_flush_range(
|
||||
(u32)data,
|
||||
(u32)((u8 *)data + skb->len + 4));
|
||||
} else {
|
||||
u16 sysctl = bfin_read_EMAC_SYSCTL();
|
||||
sysctl &= ~TXDWA;
|
||||
bfin_write_EMAC_SYSCTL(sysctl);
|
||||
|
||||
*((u16 *)(current_tx_ptr->packet)) = (u16)(skb->len);
|
||||
memcpy((u8 *)(current_tx_ptr->packet + 2), skb->data,
|
||||
skb->len);
|
||||
current_tx_ptr->desc_a.start_addr =
|
||||
(u32)current_tx_ptr->packet;
|
||||
if (current_tx_ptr->status.status_word != 0)
|
||||
current_tx_ptr->status.status_word = 0;
|
||||
blackfin_dcache_flush_range(
|
||||
(u32)current_tx_ptr->packet,
|
||||
(u32)(current_tx_ptr->packet + skb->len + 2));
|
||||
}
|
||||
}
|
||||
|
||||
/* enable this packet's dma */
|
||||
@@ -691,7 +742,6 @@ static void bfin_mac_rx(struct net_device *dev)
|
||||
(unsigned long)skb->tail);
|
||||
|
||||
dev->last_rx = jiffies;
|
||||
skb->dev = dev;
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
#if defined(BFIN_MAC_CSUM_OFFLOAD)
|
||||
skb->csum = current_rx_ptr->status.ip_payload_csum;
|
||||
@@ -920,6 +970,7 @@ static int bfin_mac_open(struct net_device *dev)
|
||||
phy_start(lp->phydev);
|
||||
phy_write(lp->phydev, MII_BMCR, BMCR_RESET);
|
||||
setup_system_regs(dev);
|
||||
setup_mac_addr(dev->dev_addr);
|
||||
bfin_mac_disable();
|
||||
bfin_mac_enable();
|
||||
pr_debug("hardware init finished\n");
|
||||
@@ -955,7 +1006,7 @@ static int bfin_mac_close(struct net_device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __init bfin_mac_probe(struct platform_device *pdev)
|
||||
static int __devinit bfin_mac_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct net_device *ndev;
|
||||
struct bfin_mac_local *lp;
|
||||
@@ -1081,7 +1132,7 @@ out_err_probe_mac:
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int bfin_mac_remove(struct platform_device *pdev)
|
||||
static int __devexit bfin_mac_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct net_device *ndev = platform_get_drvdata(pdev);
|
||||
struct bfin_mac_local *lp = netdev_priv(ndev);
|
||||
@@ -1128,7 +1179,7 @@ static int bfin_mac_resume(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver bfin_mac_driver = {
|
||||
.probe = bfin_mac_probe,
|
||||
.remove = bfin_mac_remove,
|
||||
.remove = __devexit_p(bfin_mac_remove),
|
||||
.resume = bfin_mac_resume,
|
||||
.suspend = bfin_mac_suspend,
|
||||
.driver = {
|
||||
|
||||
@@ -683,7 +683,7 @@ enum {
|
||||
SF_ERASE_SECTOR = 0xd8, /* erase sector */
|
||||
|
||||
FW_FLASH_BOOT_ADDR = 0x70000, /* start address of FW in flash */
|
||||
FW_VERS_ADDR = 0x77ffc, /* flash address holding FW version */
|
||||
FW_VERS_ADDR = 0x7fffc, /* flash address holding FW version */
|
||||
FW_MIN_SIZE = 8 /* at least version and csum */
|
||||
};
|
||||
|
||||
|
||||
@@ -2937,9 +2937,9 @@ static void ehea_rereg_mrs(struct work_struct *work)
|
||||
}
|
||||
}
|
||||
}
|
||||
mutex_unlock(&dlpar_mem_lock);
|
||||
ehea_info("re-initializing driver complete");
|
||||
ehea_info("re-initializing driver complete");
|
||||
out:
|
||||
mutex_unlock(&dlpar_mem_lock);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1547,8 +1547,10 @@ static int __devinit enc28j60_probe(struct spi_device *spi)
|
||||
random_ether_addr(dev->dev_addr);
|
||||
enc28j60_set_hw_macaddr(dev);
|
||||
|
||||
ret = request_irq(spi->irq, enc28j60_irq, IRQF_TRIGGER_FALLING,
|
||||
DRV_NAME, priv);
|
||||
/* Board setup must set the relevant edge trigger type;
|
||||
* level triggers won't currently work.
|
||||
*/
|
||||
ret = request_irq(spi->irq, enc28j60_irq, 0, DRV_NAME, priv);
|
||||
if (ret < 0) {
|
||||
if (netif_msg_probe(priv))
|
||||
dev_err(&spi->dev, DRV_NAME ": request irq %d failed "
|
||||
|
||||
+58
-6
@@ -333,6 +333,7 @@ enum {
|
||||
NvRegPowerState2 = 0x600,
|
||||
#define NVREG_POWERSTATE2_POWERUP_MASK 0x0F11
|
||||
#define NVREG_POWERSTATE2_POWERUP_REV_A3 0x0001
|
||||
#define NVREG_POWERSTATE2_PHY_RESET 0x0004
|
||||
};
|
||||
|
||||
/* Big endian: should work, but is untested */
|
||||
@@ -529,6 +530,7 @@ union ring_type {
|
||||
#define PHY_REALTEK_INIT_REG4 0x14
|
||||
#define PHY_REALTEK_INIT_REG5 0x18
|
||||
#define PHY_REALTEK_INIT_REG6 0x11
|
||||
#define PHY_REALTEK_INIT_REG7 0x01
|
||||
#define PHY_REALTEK_INIT1 0x0000
|
||||
#define PHY_REALTEK_INIT2 0x8e00
|
||||
#define PHY_REALTEK_INIT3 0x0001
|
||||
@@ -537,6 +539,9 @@ union ring_type {
|
||||
#define PHY_REALTEK_INIT6 0xf5c7
|
||||
#define PHY_REALTEK_INIT7 0x1000
|
||||
#define PHY_REALTEK_INIT8 0x0003
|
||||
#define PHY_REALTEK_INIT9 0x0008
|
||||
#define PHY_REALTEK_INIT10 0x0005
|
||||
#define PHY_REALTEK_INIT11 0x0200
|
||||
#define PHY_REALTEK_INIT_MSK1 0x0003
|
||||
|
||||
#define PHY_GIGABIT 0x0100
|
||||
@@ -1149,6 +1154,42 @@ static int phy_init(struct net_device *dev)
|
||||
return PHY_ERROR;
|
||||
}
|
||||
}
|
||||
if (np->phy_model == PHY_MODEL_REALTEK_8211 &&
|
||||
np->phy_rev == PHY_REV_REALTEK_8211C) {
|
||||
u32 powerstate = readl(base + NvRegPowerState2);
|
||||
|
||||
/* need to perform hw phy reset */
|
||||
powerstate |= NVREG_POWERSTATE2_PHY_RESET;
|
||||
writel(powerstate, base + NvRegPowerState2);
|
||||
msleep(25);
|
||||
|
||||
powerstate &= ~NVREG_POWERSTATE2_PHY_RESET;
|
||||
writel(powerstate, base + NvRegPowerState2);
|
||||
msleep(25);
|
||||
|
||||
reg = mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG6, MII_READ);
|
||||
reg |= PHY_REALTEK_INIT9;
|
||||
if (mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG6, reg)) {
|
||||
printk(KERN_INFO "%s: phy init failed.\n", pci_name(np->pci_dev));
|
||||
return PHY_ERROR;
|
||||
}
|
||||
if (mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG1, PHY_REALTEK_INIT10)) {
|
||||
printk(KERN_INFO "%s: phy init failed.\n", pci_name(np->pci_dev));
|
||||
return PHY_ERROR;
|
||||
}
|
||||
reg = mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG7, MII_READ);
|
||||
if (!(reg & PHY_REALTEK_INIT11)) {
|
||||
reg |= PHY_REALTEK_INIT11;
|
||||
if (mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG7, reg)) {
|
||||
printk(KERN_INFO "%s: phy init failed.\n", pci_name(np->pci_dev));
|
||||
return PHY_ERROR;
|
||||
}
|
||||
}
|
||||
if (mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG1, PHY_REALTEK_INIT1)) {
|
||||
printk(KERN_INFO "%s: phy init failed.\n", pci_name(np->pci_dev));
|
||||
return PHY_ERROR;
|
||||
}
|
||||
}
|
||||
if (np->phy_model == PHY_MODEL_REALTEK_8201) {
|
||||
if (np->device_id == PCI_DEVICE_ID_NVIDIA_NVENET_32 ||
|
||||
np->device_id == PCI_DEVICE_ID_NVIDIA_NVENET_33 ||
|
||||
@@ -1201,12 +1242,23 @@ static int phy_init(struct net_device *dev)
|
||||
mii_control = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ);
|
||||
mii_control |= BMCR_ANENABLE;
|
||||
|
||||
/* reset the phy
|
||||
* (certain phys need bmcr to be setup with reset)
|
||||
*/
|
||||
if (phy_reset(dev, mii_control)) {
|
||||
printk(KERN_INFO "%s: phy reset failed\n", pci_name(np->pci_dev));
|
||||
return PHY_ERROR;
|
||||
if (np->phy_oui == PHY_OUI_REALTEK &&
|
||||
np->phy_model == PHY_MODEL_REALTEK_8211 &&
|
||||
np->phy_rev == PHY_REV_REALTEK_8211C) {
|
||||
/* start autoneg since we already performed hw reset above */
|
||||
mii_control |= BMCR_ANRESTART;
|
||||
if (mii_rw(dev, np->phyaddr, MII_BMCR, mii_control)) {
|
||||
printk(KERN_INFO "%s: phy init failed\n", pci_name(np->pci_dev));
|
||||
return PHY_ERROR;
|
||||
}
|
||||
} else {
|
||||
/* reset the phy
|
||||
* (certain phys need bmcr to be setup with reset)
|
||||
*/
|
||||
if (phy_reset(dev, mii_control)) {
|
||||
printk(KERN_INFO "%s: phy reset failed\n", pci_name(np->pci_dev));
|
||||
return PHY_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
/* phy vendor specific configuration */
|
||||
|
||||
+7
-5
@@ -69,18 +69,20 @@ static void ri_tasklet(unsigned long dev)
|
||||
struct net_device *_dev = (struct net_device *)dev;
|
||||
struct ifb_private *dp = netdev_priv(_dev);
|
||||
struct net_device_stats *stats = &_dev->stats;
|
||||
struct netdev_queue *txq;
|
||||
struct sk_buff *skb;
|
||||
|
||||
txq = netdev_get_tx_queue(_dev, 0);
|
||||
dp->st_task_enter++;
|
||||
if ((skb = skb_peek(&dp->tq)) == NULL) {
|
||||
dp->st_txq_refl_try++;
|
||||
if (netif_tx_trylock(_dev)) {
|
||||
if (__netif_tx_trylock(txq)) {
|
||||
dp->st_rxq_enter++;
|
||||
while ((skb = skb_dequeue(&dp->rq)) != NULL) {
|
||||
skb_queue_tail(&dp->tq, skb);
|
||||
dp->st_rx2tx_tran++;
|
||||
}
|
||||
netif_tx_unlock(_dev);
|
||||
__netif_tx_unlock(txq);
|
||||
} else {
|
||||
/* reschedule */
|
||||
dp->st_rxq_notenter++;
|
||||
@@ -115,7 +117,7 @@ static void ri_tasklet(unsigned long dev)
|
||||
BUG();
|
||||
}
|
||||
|
||||
if (netif_tx_trylock(_dev)) {
|
||||
if (__netif_tx_trylock(txq)) {
|
||||
dp->st_rxq_check++;
|
||||
if ((skb = skb_peek(&dp->rq)) == NULL) {
|
||||
dp->tasklet_pending = 0;
|
||||
@@ -123,10 +125,10 @@ static void ri_tasklet(unsigned long dev)
|
||||
netif_wake_queue(_dev);
|
||||
} else {
|
||||
dp->st_rxq_rsch++;
|
||||
netif_tx_unlock(_dev);
|
||||
__netif_tx_unlock(txq);
|
||||
goto resched;
|
||||
}
|
||||
netif_tx_unlock(_dev);
|
||||
__netif_tx_unlock(txq);
|
||||
} else {
|
||||
resched:
|
||||
dp->tasklet_pending = 1;
|
||||
|
||||
@@ -107,7 +107,7 @@ static int act200l_open(struct sir_dev *dev)
|
||||
{
|
||||
struct qos_info *qos = &dev->qos;
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __FUNCTION__ );
|
||||
IRDA_DEBUG(2, "%s()\n", __func__ );
|
||||
|
||||
/* Power on the dongle */
|
||||
sirdev_set_dtr_rts(dev, TRUE, TRUE);
|
||||
@@ -124,7 +124,7 @@ static int act200l_open(struct sir_dev *dev)
|
||||
|
||||
static int act200l_close(struct sir_dev *dev)
|
||||
{
|
||||
IRDA_DEBUG(2, "%s()\n", __FUNCTION__ );
|
||||
IRDA_DEBUG(2, "%s()\n", __func__ );
|
||||
|
||||
/* Power off the dongle */
|
||||
sirdev_set_dtr_rts(dev, FALSE, FALSE);
|
||||
@@ -143,7 +143,7 @@ static int act200l_change_speed(struct sir_dev *dev, unsigned speed)
|
||||
u8 control[3];
|
||||
int ret = 0;
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __FUNCTION__ );
|
||||
IRDA_DEBUG(2, "%s()\n", __func__ );
|
||||
|
||||
/* Clear DTR and set RTS to enter command mode */
|
||||
sirdev_set_dtr_rts(dev, FALSE, TRUE);
|
||||
@@ -212,7 +212,7 @@ static int act200l_reset(struct sir_dev *dev)
|
||||
};
|
||||
int ret = 0;
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __FUNCTION__ );
|
||||
IRDA_DEBUG(2, "%s()\n", __func__ );
|
||||
|
||||
switch (state) {
|
||||
case SIRDEV_STATE_DONGLE_RESET:
|
||||
@@ -240,7 +240,7 @@ static int act200l_reset(struct sir_dev *dev)
|
||||
dev->speed = 9600;
|
||||
break;
|
||||
default:
|
||||
IRDA_ERROR("%s(), unknown state %d\n", __FUNCTION__, state);
|
||||
IRDA_ERROR("%s(), unknown state %d\n", __func__, state);
|
||||
ret = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ static int actisys_change_speed(struct sir_dev *dev, unsigned speed)
|
||||
int ret = 0;
|
||||
int i = 0;
|
||||
|
||||
IRDA_DEBUG(4, "%s(), speed=%d (was %d)\n", __FUNCTION__,
|
||||
IRDA_DEBUG(4, "%s(), speed=%d (was %d)\n", __func__,
|
||||
speed, dev->speed);
|
||||
|
||||
/* dongle was already resetted from irda_request state machine,
|
||||
|
||||
+123
-123
File diff suppressed because it is too large.
Load diff
+34
-34
@@ -245,7 +245,7 @@ toshoboe_dumpregs (struct toshoboe_cb *self)
|
||||
{
|
||||
__u32 ringbase;
|
||||
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
ringbase = INB (OBOE_RING_BASE0) << 10;
|
||||
ringbase |= INB (OBOE_RING_BASE1) << 18;
|
||||
@@ -293,7 +293,7 @@ static void
|
||||
toshoboe_disablebm (struct toshoboe_cb *self)
|
||||
{
|
||||
__u8 command;
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
pci_read_config_byte (self->pdev, PCI_COMMAND, &command);
|
||||
command &= ~PCI_COMMAND_MASTER;
|
||||
@@ -305,7 +305,7 @@ toshoboe_disablebm (struct toshoboe_cb *self)
|
||||
static void
|
||||
toshoboe_stopchip (struct toshoboe_cb *self)
|
||||
{
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
/*Disable interrupts */
|
||||
OUTB (0x0, OBOE_IER);
|
||||
@@ -350,7 +350,7 @@ toshoboe_setbaud (struct toshoboe_cb *self)
|
||||
__u16 pconfig = 0;
|
||||
__u8 config0l = 0;
|
||||
|
||||
IRDA_DEBUG (2, "%s(%d/%d)\n", __FUNCTION__, self->speed, self->io.speed);
|
||||
IRDA_DEBUG (2, "%s(%d/%d)\n", __func__, self->speed, self->io.speed);
|
||||
|
||||
switch (self->speed)
|
||||
{
|
||||
@@ -482,7 +482,7 @@ toshoboe_setbaud (struct toshoboe_cb *self)
|
||||
static void
|
||||
toshoboe_enablebm (struct toshoboe_cb *self)
|
||||
{
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
pci_set_master (self->pdev);
|
||||
}
|
||||
|
||||
@@ -492,7 +492,7 @@ toshoboe_initring (struct toshoboe_cb *self)
|
||||
{
|
||||
int i;
|
||||
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
for (i = 0; i < TX_SLOTS; ++i)
|
||||
{
|
||||
@@ -550,7 +550,7 @@ toshoboe_startchip (struct toshoboe_cb *self)
|
||||
{
|
||||
__u32 physaddr;
|
||||
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
toshoboe_initring (self);
|
||||
toshoboe_enablebm (self);
|
||||
@@ -824,7 +824,7 @@ toshoboe_probe (struct toshoboe_cb *self)
|
||||
#endif
|
||||
unsigned long flags;
|
||||
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
if (request_irq (self->io.irq, toshoboe_probeinterrupt,
|
||||
self->io.irqflags, "toshoboe", (void *) self))
|
||||
@@ -983,10 +983,10 @@ toshoboe_hard_xmit (struct sk_buff *skb, struct net_device *dev)
|
||||
|
||||
IRDA_ASSERT (self != NULL, return 0; );
|
||||
|
||||
IRDA_DEBUG (1, "%s.tx:%x(%x)%x\n", __FUNCTION__
|
||||
IRDA_DEBUG (1, "%s.tx:%x(%x)%x\n", __func__
|
||||
,skb->len,self->txpending,INB (OBOE_ENABLEH));
|
||||
if (!cb->magic) {
|
||||
IRDA_DEBUG (2, "%s.Not IrLAP:%x\n", __FUNCTION__, cb->magic);
|
||||
IRDA_DEBUG (2, "%s.Not IrLAP:%x\n", __func__, cb->magic);
|
||||
#ifdef DUMP_PACKETS
|
||||
_dumpbufs(skb->data,skb->len,'>');
|
||||
#endif
|
||||
@@ -1015,7 +1015,7 @@ toshoboe_hard_xmit (struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
self->new_speed = speed;
|
||||
IRDA_DEBUG (1, "%s: Queued TxDone scheduled speed change %d\n" ,
|
||||
__FUNCTION__, speed);
|
||||
__func__, speed);
|
||||
/* if no data, that's all! */
|
||||
if (!skb->len)
|
||||
{
|
||||
@@ -1057,7 +1057,7 @@ toshoboe_hard_xmit (struct sk_buff *skb, struct net_device *dev)
|
||||
/* which we will add a wrong checksum to */
|
||||
|
||||
mtt = toshoboe_makemttpacket (self, self->tx_bufs[self->txs], mtt);
|
||||
IRDA_DEBUG (1, "%s.mtt:%x(%x)%d\n", __FUNCTION__
|
||||
IRDA_DEBUG (1, "%s.mtt:%x(%x)%d\n", __func__
|
||||
,skb->len,mtt,self->txpending);
|
||||
if (mtt)
|
||||
{
|
||||
@@ -1101,7 +1101,7 @@ dumpbufs(skb->data,skb->len,'>');
|
||||
|
||||
if (self->ring->tx[self->txs].control & OBOE_CTL_TX_HW_OWNS)
|
||||
{
|
||||
IRDA_DEBUG (0, "%s.ful:%x(%x)%x\n", __FUNCTION__
|
||||
IRDA_DEBUG (0, "%s.ful:%x(%x)%x\n", __func__
|
||||
,skb->len, self->ring->tx[self->txs].control, self->txpending);
|
||||
toshoboe_start_DMA(self, OBOE_CONFIG0H_ENTX);
|
||||
spin_unlock_irqrestore(&self->spinlock, flags);
|
||||
@@ -1179,7 +1179,7 @@ toshoboe_interrupt (int irq, void *dev_id)
|
||||
if (self->ring->tx[i].control & OBOE_CTL_TX_HW_OWNS)
|
||||
self->txpending++;
|
||||
}
|
||||
IRDA_DEBUG (1, "%s.txd(%x)%x/%x\n", __FUNCTION__
|
||||
IRDA_DEBUG (1, "%s.txd(%x)%x/%x\n", __func__
|
||||
,irqstat,txp,self->txpending);
|
||||
|
||||
txp = INB (OBOE_TXSLOT) & OBOE_SLOT_MASK;
|
||||
@@ -1209,7 +1209,7 @@ toshoboe_interrupt (int irq, void *dev_id)
|
||||
{
|
||||
self->speed = self->new_speed;
|
||||
IRDA_DEBUG (1, "%s: Executed TxDone scheduled speed change %d\n",
|
||||
__FUNCTION__, self->speed);
|
||||
__func__, self->speed);
|
||||
toshoboe_setbaud (self);
|
||||
}
|
||||
|
||||
@@ -1224,7 +1224,7 @@ toshoboe_interrupt (int irq, void *dev_id)
|
||||
{
|
||||
int len = self->ring->rx[self->rxs].len;
|
||||
skb = NULL;
|
||||
IRDA_DEBUG (3, "%s.rcv:%x(%x)\n", __FUNCTION__
|
||||
IRDA_DEBUG (3, "%s.rcv:%x(%x)\n", __func__
|
||||
,len,self->ring->rx[self->rxs].control);
|
||||
|
||||
#ifdef DUMP_PACKETS
|
||||
@@ -1246,7 +1246,7 @@ dumpbufs(self->rx_bufs[self->rxs],len,'<');
|
||||
len -= 2;
|
||||
else
|
||||
len = 0;
|
||||
IRDA_DEBUG (1, "%s.SIR:%x(%x)\n", __FUNCTION__, len,enable);
|
||||
IRDA_DEBUG (1, "%s.SIR:%x(%x)\n", __func__, len,enable);
|
||||
}
|
||||
|
||||
#ifdef USE_MIR
|
||||
@@ -1256,7 +1256,7 @@ dumpbufs(self->rx_bufs[self->rxs],len,'<');
|
||||
len -= 2;
|
||||
else
|
||||
len = 0;
|
||||
IRDA_DEBUG (2, "%s.MIR:%x(%x)\n", __FUNCTION__, len,enable);
|
||||
IRDA_DEBUG (2, "%s.MIR:%x(%x)\n", __func__, len,enable);
|
||||
}
|
||||
#endif
|
||||
else if (enable & OBOE_ENABLEH_FIRON)
|
||||
@@ -1265,10 +1265,10 @@ dumpbufs(self->rx_bufs[self->rxs],len,'<');
|
||||
len -= 4; /*FIXME: check this */
|
||||
else
|
||||
len = 0;
|
||||
IRDA_DEBUG (1, "%s.FIR:%x(%x)\n", __FUNCTION__, len,enable);
|
||||
IRDA_DEBUG (1, "%s.FIR:%x(%x)\n", __func__, len,enable);
|
||||
}
|
||||
else
|
||||
IRDA_DEBUG (0, "%s.?IR:%x(%x)\n", __FUNCTION__, len,enable);
|
||||
IRDA_DEBUG (0, "%s.?IR:%x(%x)\n", __func__, len,enable);
|
||||
|
||||
if (len)
|
||||
{
|
||||
@@ -1289,7 +1289,7 @@ dumpbufs(self->rx_bufs[self->rxs],len,'<');
|
||||
{
|
||||
printk (KERN_INFO
|
||||
"%s(), memory squeeze, dropping frame.\n",
|
||||
__FUNCTION__);
|
||||
__func__);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1301,7 +1301,7 @@ dumpbufs(self->rx_bufs[self->rxs],len,'<');
|
||||
/* (SIR) data is splitted in several slots. */
|
||||
/* we have to join all the received buffers received */
|
||||
/*in a large buffer before checking CRC. */
|
||||
IRDA_DEBUG (0, "%s.err:%x(%x)\n", __FUNCTION__
|
||||
IRDA_DEBUG (0, "%s.err:%x(%x)\n", __func__
|
||||
,len,self->ring->rx[self->rxs].control);
|
||||
}
|
||||
|
||||
@@ -1329,7 +1329,7 @@ dumpbufs(self->rx_bufs[self->rxs],len,'<');
|
||||
if (irqstat & OBOE_INT_SIP)
|
||||
{
|
||||
self->int_sip++;
|
||||
IRDA_DEBUG (1, "%s.sip:%x(%x)%x\n", __FUNCTION__
|
||||
IRDA_DEBUG (1, "%s.sip:%x(%x)%x\n", __func__
|
||||
,self->int_sip,irqstat,self->txpending);
|
||||
}
|
||||
return IRQ_HANDLED;
|
||||
@@ -1343,7 +1343,7 @@ toshoboe_net_open (struct net_device *dev)
|
||||
unsigned long flags;
|
||||
int rc;
|
||||
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
self = netdev_priv(dev);
|
||||
|
||||
@@ -1381,7 +1381,7 @@ toshoboe_net_close (struct net_device *dev)
|
||||
{
|
||||
struct toshoboe_cb *self;
|
||||
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
IRDA_ASSERT (dev != NULL, return -1; );
|
||||
self = (struct toshoboe_cb *) dev->priv;
|
||||
@@ -1426,7 +1426,7 @@ toshoboe_net_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
|
||||
|
||||
IRDA_ASSERT (self != NULL, return -1; );
|
||||
|
||||
IRDA_DEBUG (5, "%s(), %s, (cmd=0x%X)\n", __FUNCTION__, dev->name, cmd);
|
||||
IRDA_DEBUG (5, "%s(), %s, (cmd=0x%X)\n", __func__, dev->name, cmd);
|
||||
|
||||
/* Disable interrupts & save flags */
|
||||
spin_lock_irqsave(&self->spinlock, flags);
|
||||
@@ -1438,7 +1438,7 @@ toshoboe_net_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
|
||||
* speed, so we still must allow for speed change within
|
||||
* interrupt context.
|
||||
*/
|
||||
IRDA_DEBUG (1, "%s(BANDWIDTH), %s, (%X/%ld\n", __FUNCTION__
|
||||
IRDA_DEBUG (1, "%s(BANDWIDTH), %s, (%X/%ld\n", __func__
|
||||
,dev->name, INB (OBOE_STATUS), irq->ifr_baudrate );
|
||||
if (!in_interrupt () && !capable (CAP_NET_ADMIN)) {
|
||||
ret = -EPERM;
|
||||
@@ -1451,7 +1451,7 @@ toshoboe_net_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
|
||||
self->new_speed = irq->ifr_baudrate;
|
||||
break;
|
||||
case SIOCSMEDIABUSY: /* Set media busy */
|
||||
IRDA_DEBUG (1, "%s(MEDIABUSY), %s, (%X/%x)\n", __FUNCTION__
|
||||
IRDA_DEBUG (1, "%s(MEDIABUSY), %s, (%X/%x)\n", __func__
|
||||
,dev->name, INB (OBOE_STATUS), capable (CAP_NET_ADMIN) );
|
||||
if (!capable (CAP_NET_ADMIN)) {
|
||||
ret = -EPERM;
|
||||
@@ -1461,11 +1461,11 @@ toshoboe_net_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
|
||||
break;
|
||||
case SIOCGRECEIVING: /* Check if we are receiving right now */
|
||||
irq->ifr_receiving = (INB (OBOE_STATUS) & OBOE_STATUS_RXBUSY) ? 1 : 0;
|
||||
IRDA_DEBUG (3, "%s(RECEIVING), %s, (%X/%x)\n", __FUNCTION__
|
||||
IRDA_DEBUG (3, "%s(RECEIVING), %s, (%X/%x)\n", __func__
|
||||
,dev->name, INB (OBOE_STATUS), irq->ifr_receiving );
|
||||
break;
|
||||
default:
|
||||
IRDA_DEBUG (1, "%s(?), %s, (cmd=0x%X)\n", __FUNCTION__, dev->name, cmd);
|
||||
IRDA_DEBUG (1, "%s(?), %s, (cmd=0x%X)\n", __func__, dev->name, cmd);
|
||||
ret = -EOPNOTSUPP;
|
||||
}
|
||||
out:
|
||||
@@ -1492,7 +1492,7 @@ toshoboe_close (struct pci_dev *pci_dev)
|
||||
int i;
|
||||
struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
|
||||
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
IRDA_ASSERT (self != NULL, return; );
|
||||
|
||||
@@ -1533,7 +1533,7 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
|
||||
int ok = 0;
|
||||
int err;
|
||||
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
if ((err=pci_enable_device(pci_dev)))
|
||||
return err;
|
||||
@@ -1700,7 +1700,7 @@ toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap)
|
||||
unsigned long flags;
|
||||
int i = 10;
|
||||
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
if (!self || self->stopped)
|
||||
return 0;
|
||||
@@ -1728,7 +1728,7 @@ toshoboe_wakeup (struct pci_dev *pci_dev)
|
||||
struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
|
||||
unsigned long flags;
|
||||
|
||||
IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
|
||||
IRDA_DEBUG (4, "%s()\n", __func__);
|
||||
|
||||
if (!self || !self->stopped)
|
||||
return 0;
|
||||
|
||||
Loaded 20 of 73 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user