drivers/net: Trim trailing whitespace
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
7a29108322
commit
6aa20a2235
|
@ -37,7 +37,7 @@ struct net_local
|
|||
spinlock_t lock; /* Serializing lock */
|
||||
};
|
||||
|
||||
|
||||
|
||||
#define RX_STATUS (ioaddr + 0x06)
|
||||
#define RX_CMD RX_STATUS
|
||||
#define TX_STATUS (ioaddr + 0x07)
|
||||
|
|
|
@ -81,7 +81,7 @@ static void el2_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
|
|||
int ring_page);
|
||||
static struct ethtool_ops netdev_ethtool_ops;
|
||||
|
||||
|
||||
|
||||
/* This routine probes for a memory-mapped 3c503 board by looking for
|
||||
the "location register" at the end of the jumpered boot PROM space.
|
||||
This works even if a PROM isn't there.
|
||||
|
@ -367,7 +367,7 @@ out:
|
|||
release_region(ioaddr, EL2_IO_EXTENT);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
el2_open(struct net_device *dev)
|
||||
{
|
||||
|
|
|
@ -301,7 +301,7 @@ static int io = 0x300;
|
|||
static int irq;
|
||||
static int mem_start;
|
||||
|
||||
|
||||
|
||||
/* Check for a network adaptor of this type, and return '0' iff one exists.
|
||||
If dev->base_addr == 0, probe all likely locations.
|
||||
If dev->base_addr == 1, always return failure.
|
||||
|
@ -953,7 +953,7 @@ cleanup_module(void)
|
|||
#endif /* MODULE */
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* compile-command: "gcc -D__KERNEL__ -I/usr/src/linux/net/inet -I/usr/src/linux/drivers/net -Wall -Wstrict-prototypes -O6 -m486 -c 3c507.c"
|
||||
|
|
|
@ -380,7 +380,7 @@ static void update_stats(int addr, struct net_device *dev);
|
|||
static struct net_device_stats *corkscrew_get_stats(struct net_device *dev);
|
||||
static void set_rx_mode(struct net_device *dev);
|
||||
static struct ethtool_ops netdev_ethtool_ops;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Unfortunately maximizing the shared code between the integrated and
|
||||
|
@ -691,7 +691,7 @@ static int corkscrew_setup(struct net_device *dev, int ioaddr,
|
|||
|
||||
return register_netdev(dev);
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int corkscrew_open(struct net_device *dev)
|
||||
{
|
||||
|
@ -1567,7 +1567,7 @@ static struct ethtool_ops netdev_ethtool_ops = {
|
|||
.set_msglevel = netdev_set_msglevel,
|
||||
};
|
||||
|
||||
|
||||
|
||||
#ifdef MODULE
|
||||
void cleanup_module(void)
|
||||
{
|
||||
|
@ -1584,7 +1584,7 @@ void cleanup_module(void)
|
|||
}
|
||||
}
|
||||
#endif /* MODULE */
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* compile-command: "gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c 3c515.c"
|
||||
|
|
|
@ -1609,7 +1609,7 @@ void __exit cleanup_module(void)
|
|||
}
|
||||
|
||||
#endif /* MODULE */
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* compile-command: "gcc -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -m486 -c 82596.c"
|
||||
|
|
|
@ -148,7 +148,7 @@ static void do_set_multicast_list(struct net_device *dev);
|
|||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ei_open - Open/initialize the board.
|
||||
* @dev: network device to initialize
|
||||
|
@ -386,7 +386,7 @@ static int ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ei_interrupt - handle the interrupts from an 8390
|
||||
* @irq: interrupt number
|
||||
|
@ -1011,7 +1011,7 @@ struct net_device *__alloc_ei_netdev(int size)
|
|||
ethdev_setup);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* This page of functions should be 8390 generic */
|
||||
|
|
|
@ -89,7 +89,7 @@ static void ac_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
|
|||
int ring_page);
|
||||
|
||||
static int ac_close_card(struct net_device *dev);
|
||||
|
||||
|
||||
|
||||
/* Probe for the AC3200.
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ static struct net_device_stats *net_get_stats(struct net_device *dev);
|
|||
static void set_rx_mode(struct net_device *dev);
|
||||
static void net_tx_timeout (struct net_device *dev);
|
||||
|
||||
|
||||
|
||||
#ifdef CONFIG_MCA_LEGACY
|
||||
struct at1720_mca_adapters_struct {
|
||||
char* name;
|
||||
|
@ -487,7 +487,7 @@ err_out:
|
|||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* EEPROM_Ctrl bits. */
|
||||
#define EE_SHIFT_CLK 0x40 /* EEPROM shift clock, in reg. 16. */
|
||||
#define EE_CS 0x20 /* EEPROM chip select, in reg. 16. */
|
||||
|
@ -528,7 +528,7 @@ static int __init read_eeprom(long ioaddr, int location)
|
|||
return retval;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static int net_open(struct net_device *dev)
|
||||
{
|
||||
|
@ -645,7 +645,7 @@ static int net_send_packet (struct sk_buff *skb, struct net_device *dev)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* The typical workload of the driver:
|
||||
Handle the network interface interrupts. */
|
||||
static irqreturn_t
|
||||
|
@ -919,7 +919,7 @@ cleanup_module(void)
|
|||
#endif /* MODULE */
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* compile-command: "gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c at1700.c"
|
||||
|
|
|
@ -356,7 +356,7 @@ static void lance_tx_timeout (struct net_device *dev);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
static void *slow_memcpy( void *dst, const void *src, size_t len )
|
||||
|
||||
|
@ -650,7 +650,7 @@ static unsigned long __init lance_probe1( struct net_device *dev,
|
|||
return( 1 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int lance_open( struct net_device *dev )
|
||||
|
||||
{ struct lance_private *lp = (struct lance_private *)dev->priv;
|
||||
|
@ -1175,7 +1175,7 @@ static int lance_set_mac_address( struct net_device *dev, void *addr )
|
|||
return( 0 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef MODULE
|
||||
static struct net_device *atarilance_dev;
|
||||
|
||||
|
@ -1195,7 +1195,7 @@ void cleanup_module(void)
|
|||
}
|
||||
|
||||
#endif /* MODULE */
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
|
|
@ -299,7 +299,7 @@ static int __init media_fn(char *str)
|
|||
|
||||
__setup("cs89x0_media=", media_fn);
|
||||
|
||||
|
||||
|
||||
/* Check for a network adaptor of this type, and return '0' iff one exists.
|
||||
If dev->base_addr == 0, probe all likely locations.
|
||||
If dev->base_addr == 1, always return failure.
|
||||
|
@ -875,7 +875,7 @@ out1:
|
|||
return retval;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*********************************
|
||||
* This page contains DMA routines
|
||||
**********************************/
|
||||
|
@ -1064,7 +1064,7 @@ void __init reset_chip(struct net_device *dev)
|
|||
;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
control_dc_dc(struct net_device *dev, int on_not_off)
|
||||
{
|
||||
|
@ -1240,7 +1240,7 @@ detect_bnc(struct net_device *dev)
|
|||
return DETECTED_NONE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
write_irq(struct net_device *dev, int chip_type, int irq)
|
||||
{
|
||||
|
@ -1569,7 +1569,7 @@ static int net_send_packet(struct sk_buff *skb, struct net_device *dev)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* The typical workload of the driver:
|
||||
Handle the network interface interrupts. */
|
||||
|
||||
|
@ -1983,7 +1983,7 @@ cleanup_module(void)
|
|||
free_netdev(dev_cs89x0);
|
||||
}
|
||||
#endif /* MODULE */
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* version-control: t
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
*****************************************************************************/
|
||||
static const char version[] =
|
||||
"de620.c: $Revision: 1.40 $, Bjorn Ekwall <bj0rn@blox.se>\n";
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* "Tuning" section.
|
||||
|
@ -115,7 +115,7 @@ static const char version[] =
|
|||
#define COUNT_LOOPS
|
||||
*/
|
||||
#endif
|
||||
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
|
@ -250,7 +250,7 @@ static struct nic {
|
|||
byte Media;
|
||||
byte SCR;
|
||||
} nic_data;
|
||||
|
||||
|
||||
/**********************************************************
|
||||
* *
|
||||
* Convenience macros/functions for D-Link DE-620 adapter *
|
||||
|
@ -432,7 +432,7 @@ de620_get_register(struct net_device *dev, byte reg)
|
|||
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
/*********************************************************************
|
||||
*
|
||||
* Open/initialize the board.
|
||||
|
@ -584,7 +584,7 @@ static int de620_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
dev_kfree_skb (skb);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************
|
||||
*
|
||||
* Handle the network interface interrupts.
|
||||
|
@ -720,7 +720,7 @@ static int de620_rx_intr(struct net_device *dev)
|
|||
|
||||
return (next_rx_page != curr_page); /* That was slightly tricky... */
|
||||
}
|
||||
|
||||
|
||||
/*********************************************
|
||||
*
|
||||
* Reset the adapter to a known state
|
||||
|
@ -803,7 +803,7 @@ static int adapter_init(struct net_device *dev)
|
|||
|
||||
return 0; /* all ok */
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* Only start-up code below
|
||||
|
@ -917,7 +917,7 @@ out1:
|
|||
out:
|
||||
return ERR_PTR(err);
|
||||
}
|
||||
|
||||
|
||||
/**********************************
|
||||
*
|
||||
* Read info from on-board EEPROM
|
||||
|
@ -1003,7 +1003,7 @@ static int __init read_eeprom(struct net_device *dev)
|
|||
|
||||
return 0; /* no errors */
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* Loadable module skeleton
|
||||
|
@ -1029,7 +1029,7 @@ void cleanup_module(void)
|
|||
#endif /* MODULE */
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* (add '-DMODULE' when compiling as loadable module)
|
||||
*
|
||||
|
|
|
@ -275,7 +275,7 @@ static void dfx_xmt_flush(DFX_board_t *bp);
|
|||
|
||||
static struct net_device *root_dfx_eisa_dev;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* =======================
|
||||
* = dfx_port_write_byte =
|
||||
|
@ -377,7 +377,7 @@ static inline void dfx_port_read_long(
|
|||
*data = inl(port);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* =============
|
||||
* = dfx_init_one_pci_or_eisa =
|
||||
|
@ -537,7 +537,7 @@ static int __init dfx_eisa_init(void)
|
|||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* ================
|
||||
* = dfx_bus_init =
|
||||
|
@ -672,7 +672,7 @@ static void __devinit dfx_bus_init(struct net_device *dev)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ========================
|
||||
* = dfx_bus_config_check =
|
||||
|
@ -766,7 +766,7 @@ static void __devinit dfx_bus_config_check(DFX_board_t *bp)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ===================
|
||||
* = dfx_driver_init =
|
||||
|
@ -984,7 +984,7 @@ static int __devinit dfx_driver_init(struct net_device *dev,
|
|||
return(DFX_K_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* =================
|
||||
* = dfx_adap_init =
|
||||
|
@ -1188,7 +1188,7 @@ static int dfx_adap_init(DFX_board_t *bp, int get_buffers)
|
|||
return(DFX_K_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ============
|
||||
* = dfx_open =
|
||||
|
@ -1276,7 +1276,7 @@ static int dfx_open(struct net_device *dev)
|
|||
return(0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* =============
|
||||
* = dfx_close =
|
||||
|
@ -1368,7 +1368,7 @@ static int dfx_close(struct net_device *dev)
|
|||
return(0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ======================
|
||||
* = dfx_int_pr_halt_id =
|
||||
|
@ -1452,7 +1452,7 @@ static void dfx_int_pr_halt_id(DFX_board_t *bp)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ==========================
|
||||
* = dfx_int_type_0_process =
|
||||
|
@ -1604,7 +1604,7 @@ static void dfx_int_type_0_process(DFX_board_t *bp)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ==================
|
||||
* = dfx_int_common =
|
||||
|
@ -1678,7 +1678,7 @@ static void dfx_int_common(struct net_device *dev)
|
|||
dfx_int_type_0_process(bp); /* process Type 0 interrupts */
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* =================
|
||||
* = dfx_interrupt =
|
||||
|
@ -1780,7 +1780,7 @@ static irqreturn_t dfx_interrupt(int irq, void *dev_id, struct pt_regs *regs)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* =====================
|
||||
* = dfx_ctl_get_stats =
|
||||
|
@ -1967,7 +1967,7 @@ static struct net_device_stats *dfx_ctl_get_stats(struct net_device *dev)
|
|||
return((struct net_device_stats *) &bp->stats);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ==============================
|
||||
* = dfx_ctl_set_multicast_list =
|
||||
|
@ -2088,7 +2088,7 @@ static void dfx_ctl_set_multicast_list(struct net_device *dev)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ===========================
|
||||
* = dfx_ctl_set_mac_address =
|
||||
|
@ -2178,7 +2178,7 @@ static int dfx_ctl_set_mac_address(struct net_device *dev, void *addr)
|
|||
return(0); /* always return zero */
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ======================
|
||||
* = dfx_ctl_update_cam =
|
||||
|
@ -2263,7 +2263,7 @@ static int dfx_ctl_update_cam(DFX_board_t *bp)
|
|||
return(DFX_K_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ==========================
|
||||
* = dfx_ctl_update_filters =
|
||||
|
@ -2329,7 +2329,7 @@ static int dfx_ctl_update_filters(DFX_board_t *bp)
|
|||
return(DFX_K_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ======================
|
||||
* = dfx_hw_dma_cmd_req =
|
||||
|
@ -2450,7 +2450,7 @@ static int dfx_hw_dma_cmd_req(DFX_board_t *bp)
|
|||
return(DFX_K_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ========================
|
||||
* = dfx_hw_port_ctrl_req =
|
||||
|
@ -2534,7 +2534,7 @@ static int dfx_hw_port_ctrl_req(
|
|||
return(DFX_K_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* =====================
|
||||
* = dfx_hw_adap_reset =
|
||||
|
@ -2588,7 +2588,7 @@ static void dfx_hw_adap_reset(
|
|||
dfx_port_write_long(bp, PI_PDQ_K_REG_PORT_RESET, 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ========================
|
||||
* = dfx_hw_adap_state_rd =
|
||||
|
@ -2624,7 +2624,7 @@ static int dfx_hw_adap_state_rd(DFX_board_t *bp)
|
|||
return((port_status & PI_PSTATUS_M_STATE) >> PI_PSTATUS_V_STATE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* =====================
|
||||
* = dfx_hw_dma_uninit =
|
||||
|
@ -2676,7 +2676,7 @@ static int dfx_hw_dma_uninit(DFX_board_t *bp, PI_UINT32 type)
|
|||
return(DFX_K_HW_TIMEOUT);
|
||||
return(DFX_K_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Align an sk_buff to a boundary power of 2
|
||||
*
|
||||
|
@ -2692,7 +2692,7 @@ static void my_skb_align(struct sk_buff *skb, int n)
|
|||
skb_reserve(skb, v - x);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ================
|
||||
* = dfx_rcv_init =
|
||||
|
@ -2795,7 +2795,7 @@ static int dfx_rcv_init(DFX_board_t *bp, int get_buffers)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* =========================
|
||||
* = dfx_rcv_queue_process =
|
||||
|
@ -2945,7 +2945,7 @@ static void dfx_rcv_queue_process(
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* =====================
|
||||
* = dfx_xmt_queue_pkt =
|
||||
|
@ -3167,7 +3167,7 @@ static int dfx_xmt_queue_pkt(
|
|||
return(0); /* packet queued to adapter */
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ================
|
||||
* = dfx_xmt_done =
|
||||
|
@ -3246,7 +3246,7 @@ static int dfx_xmt_done(DFX_board_t *bp)
|
|||
return freed;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* =================
|
||||
* = dfx_rcv_flush =
|
||||
|
@ -3469,7 +3469,7 @@ MODULE_DESCRIPTION("DEC FDDIcontroller EISA/PCI (DEFEA/DEFPA) driver "
|
|||
DRV_VERSION " " DRV_RELDATE);
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* kernel-compile-command: "gcc -D__KERNEL__ -I/root/linux/include -Wall -Wstrict-prototypes -O2 -pipe -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -c defxx.c"
|
||||
|
|
|
@ -822,7 +822,7 @@ out1:
|
|||
out_priv:
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int depca_open(struct net_device *dev)
|
||||
{
|
||||
|
|
|
@ -110,7 +110,7 @@ static void e21_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
|
|||
|
||||
static int e21_close(struct net_device *dev);
|
||||
|
||||
|
||||
|
||||
/* Probe for the E2100 series ethercards. These cards have an 8390 at the
|
||||
base address and the station address at both offset 0x10 and 0x18. I read
|
||||
the station address from offset 0x18 to avoid the dataport of NE2000
|
||||
|
@ -403,7 +403,7 @@ e21_close(struct net_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef MODULE
|
||||
#define MAX_E21_CARDS 4 /* Max number of E21 cards per module */
|
||||
static struct net_device *dev_e21[MAX_E21_CARDS];
|
||||
|
|
|
@ -496,7 +496,7 @@ static void set_rx_mode(struct net_device *dev);
|
|||
static void speedo_show_state(struct net_device *dev);
|
||||
static struct ethtool_ops ethtool_ops;
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef honor_default_port
|
||||
/* Optional driver feature to allow forcing the transceiver setting.
|
||||
|
@ -2263,7 +2263,7 @@ static void set_rx_mode(struct net_device *dev)
|
|||
|
||||
sp->rx_mode = new_rx_mode;
|
||||
}
|
||||
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
static int eepro100_suspend(struct pci_dev *pdev, pm_message_t state)
|
||||
{
|
||||
|
@ -2337,7 +2337,7 @@ static void __devexit eepro100_remove_one (struct pci_dev *pdev)
|
|||
pci_disable_device(pdev);
|
||||
free_netdev(dev);
|
||||
}
|
||||
|
||||
|
||||
static struct pci_device_id eepro100_pci_tbl[] = {
|
||||
{ PCI_VENDOR_ID_INTEL, 0x1229, PCI_ANY_ID, PCI_ANY_ID, },
|
||||
{ PCI_VENDOR_ID_INTEL, 0x1209, PCI_ANY_ID, PCI_ANY_ID, },
|
||||
|
@ -2395,7 +2395,7 @@ static void __exit eepro100_cleanup_module(void)
|
|||
|
||||
module_init(eepro100_init_module);
|
||||
module_exit(eepro100_cleanup_module);
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* compile-command: "gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -c eepro100.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`"
|
||||
|
|
|
@ -627,7 +627,7 @@ ewrk3_hw_init(struct net_device *dev, u_long iobase)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int ewrk3_open(struct net_device *dev)
|
||||
{
|
||||
|
@ -1990,7 +1990,7 @@ module_init(ewrk3_init_module);
|
|||
#endif /* MODULE */
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
|
|
@ -856,7 +856,7 @@ static void mdio_write(struct net_device *dev, int phy_id, int location, int val
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int hamachi_open(struct net_device *dev)
|
||||
{
|
||||
struct hamachi_private *hmp = netdev_priv(dev);
|
||||
|
|
|
@ -112,7 +112,7 @@ static void hpp_io_block_output(struct net_device *dev, int count,
|
|||
static void hpp_io_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
|
||||
int ring_page);
|
||||
|
||||
|
||||
|
||||
/* Probe a list of addresses for an HP LAN+ adaptor.
|
||||
This routine is almost boilerplate. */
|
||||
|
||||
|
@ -430,7 +430,7 @@ hpp_mem_block_output(struct net_device *dev, int count,
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef MODULE
|
||||
#define MAX_HPP_CARDS 4 /* Max number of HPP cards per module */
|
||||
static struct net_device *dev_hpp[MAX_HPP_CARDS];
|
||||
|
|
|
@ -75,7 +75,7 @@ static void hp_init_card(struct net_device *dev);
|
|||
/* My default is IRQ5 0 1 2 3 4 5 6 7 8 9 10 11 */
|
||||
static char irqmap[16] __initdata= { 0, 0, 4, 6, 8,10, 0,14, 0, 4, 2,12,0,0,0,0};
|
||||
|
||||
|
||||
|
||||
/* Probe for an HP LAN adaptor.
|
||||
Also initialize the card and fill in STATION_ADDR with the station
|
||||
address. */
|
||||
|
|
|
@ -878,7 +878,7 @@ static void hp100_hwinit(struct net_device *dev)
|
|||
hp100_login_to_vg_hub(dev, 0); /* relogin */
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* mmuinit - Reinitialise Cascade MMU and MAC settings.
|
||||
|
@ -1131,7 +1131,7 @@ static int hp100_close(struct net_device *dev)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Configure the PDL Rx rings and LAN
|
||||
|
@ -1182,7 +1182,7 @@ static void hp100_init_pdls(struct net_device *dev)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* These functions "format" the entries in the pdl structure */
|
||||
/* They return how much memory the fragments need. */
|
||||
|
@ -1575,7 +1575,7 @@ static int hp100_start_xmit_bm(struct sk_buff *skb, struct net_device *dev)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* clean_txring checks if packets have been sent by the card by reading
|
||||
* the TX_PDL register from the performance page and comparing it to the
|
||||
|
@ -1743,7 +1743,7 @@ static int hp100_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Receive Function (Non-Busmaster mode)
|
||||
|
@ -2043,7 +2043,7 @@ static void hp100_clear_stats(struct hp100_private *lp, int ioaddr)
|
|||
hp100_page(PERFORMANCE);
|
||||
spin_unlock_irqrestore(&lp->lock, flags);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* multicast setup
|
||||
|
|
|
@ -307,7 +307,7 @@ static struct net_device_stats *lance_get_stats(struct net_device *dev);
|
|||
static void set_multicast_list(struct net_device *dev);
|
||||
static void lance_tx_timeout (struct net_device *dev);
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef MODULE
|
||||
#define MAX_CARDS 8 /* Max number of interfaces (cards) per module */
|
||||
|
@ -737,7 +737,7 @@ out_lp:
|
|||
return err;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int
|
||||
lance_open(struct net_device *dev)
|
||||
{
|
||||
|
|
|
@ -428,7 +428,7 @@ net_send_packet(struct sk_buff *skb, struct net_device *dev)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* The typical workload of the driver:
|
||||
Handle the network interface interrupts. */
|
||||
static irqreturn_t net_interrupt(int irq, void *dev_id, struct pt_regs * regs)
|
||||
|
@ -653,7 +653,7 @@ cleanup_module(void)
|
|||
free_netdev(dev_cs89x0);
|
||||
}
|
||||
#endif /* MODULE */
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* compile-command: "m68k-linux-gcc -D__KERNEL__ -I../../include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -ffixed-a2 -DMODULE -DMODVERSIONS -include ../../include/linux/modversions.h -c -o mac89x0.o mac89x0.c"
|
||||
|
|
|
@ -593,7 +593,7 @@ retry:
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef MODULE
|
||||
#define MAX_NE_CARDS 1 /* Max number of NE cards per module */
|
||||
static struct net_device *dev_ne[MAX_NE_CARDS];
|
||||
|
|
|
@ -160,7 +160,7 @@ static void ne_block_input(struct net_device *dev, int count,
|
|||
static void ne_block_output(struct net_device *dev, const int count,
|
||||
const unsigned char *buf, const int start_page);
|
||||
|
||||
|
||||
|
||||
/* Probe for various non-shared-memory ethercards.
|
||||
|
||||
NEx000-clone boards have a Station Address PROM (SAPROM) in the packet
|
||||
|
@ -807,7 +807,7 @@ retry:
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef MODULE
|
||||
#define MAX_NE_CARDS 4 /* Max number of NE cards per module */
|
||||
static struct net_device *dev_ne[MAX_NE_CARDS];
|
||||
|
|
|
@ -177,7 +177,7 @@ static void ne2k_pci_block_output(struct net_device *dev, const int count,
|
|||
const unsigned char *buf, const int start_page);
|
||||
static struct ethtool_ops ne2k_pci_ethtool_ops;
|
||||
|
||||
|
||||
|
||||
|
||||
/* There is no room in the standard 8390 structure for extra info we need,
|
||||
so we build a meta/outer-wrapper structure.. */
|
||||
|
|
|
@ -246,7 +246,7 @@ static struct pnp_driver sb1000_driver = {
|
|||
.remove = sb1000_remove_one,
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* SB1000 hardware routines to be used during open/configuration phases
|
||||
*/
|
||||
|
@ -351,7 +351,7 @@ card_send_command(const int ioaddr[], const char* name,
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* SB1000 hardware routines to be used during frame rx interrupt
|
||||
*/
|
||||
|
@ -449,7 +449,7 @@ sb1000_issue_read_command(const int ioaddr[], const char* name)
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* SB1000 commands for open/configuration
|
||||
*/
|
||||
|
@ -697,7 +697,7 @@ sb1000_set_PIDs(const int ioaddr[], const char* name, const short PID[])
|
|||
return sb1000_end_get_set_command(ioaddr, name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
static inline void
|
||||
sb1000_print_status_buffer(const char* name, unsigned char st[],
|
||||
unsigned char buffer[], int size)
|
||||
|
@ -916,7 +916,7 @@ sb1000_error_dpc(struct net_device *dev)
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Linux interface functions
|
||||
*/
|
||||
|
|
|
@ -95,7 +95,7 @@ static void hardware_send_packet(struct net_device *dev, char *buf, int length);
|
|||
extern void seeq8005_init(struct net_device *dev, int startp);
|
||||
static inline void wait_for_buffer(struct net_device *dev);
|
||||
|
||||
|
||||
|
||||
/* Check for a network adaptor of this type, and return '0' iff one exists.
|
||||
If dev->base_addr == 0, probe all likely locations.
|
||||
If dev->base_addr == 1, always return failure.
|
||||
|
@ -348,7 +348,7 @@ out:
|
|||
return retval;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Open/initialize the board. This is called (in the current kernel)
|
||||
sometime after booting when the 'ifconfig' program is run.
|
||||
|
||||
|
@ -413,7 +413,7 @@ static int seeq8005_send_packet(struct sk_buff *skb, struct net_device *dev)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wait_for_buffer
|
||||
*
|
||||
|
@ -434,7 +434,7 @@ inline void wait_for_buffer(struct net_device * dev)
|
|||
if ( (status & SEEQSTAT_WINDOW_INT) == SEEQSTAT_WINDOW_INT)
|
||||
outw( SEEQCMD_WINDOW_INT_ACK | (status & SEEQCMD_INT_MASK), SEEQ_CMD);
|
||||
}
|
||||
|
||||
|
||||
/* The typical workload of the driver:
|
||||
Handle the network interface interrupts. */
|
||||
static irqreturn_t seeq8005_interrupt(int irq, void *dev_id, struct pt_regs * regs)
|
||||
|
@ -758,7 +758,7 @@ void cleanup_module(void)
|
|||
}
|
||||
|
||||
#endif /* MODULE */
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* compile-command: "gcc -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -m486 -c skeleton.c"
|
||||
|
|
|
@ -111,7 +111,7 @@ static struct isapnp_device_id ultra_device_ids[] __initdata = {
|
|||
MODULE_DEVICE_TABLE(isapnp, ultra_device_ids);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#define START_PG 0x00 /* First page of TX buffer */
|
||||
|
||||
#define ULTRA_CMDREG 0 /* Offset to ASIC command register. */
|
||||
|
@ -122,7 +122,7 @@ MODULE_DEVICE_TABLE(isapnp, ultra_device_ids);
|
|||
#define ULTRA_NIC_OFFSET 16 /* NIC register offset from the base_addr. */
|
||||
#define ULTRA_IO_EXTENT 32
|
||||
#define EN0_ERWCNT 0x08 /* Early receive warning count. */
|
||||
|
||||
|
||||
#ifdef CONFIG_NET_POLL_CONTROLLER
|
||||
static void ultra_poll(struct net_device *dev)
|
||||
{
|
||||
|
@ -536,7 +536,7 @@ ultra_close_card(struct net_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef MODULE
|
||||
#define MAX_ULTRA_CARDS 4 /* Max number of Ultra cards per module */
|
||||
static struct net_device *dev_ultra[MAX_ULTRA_CARDS];
|
||||
|
|
|
@ -74,7 +74,7 @@ static void ultra32_block_output(struct net_device *dev, int count,
|
|||
const unsigned char *buf,
|
||||
const int start_page);
|
||||
static int ultra32_close(struct net_device *dev);
|
||||
|
||||
|
||||
#define ULTRA32_CMDREG 0 /* Offset to ASIC command register. */
|
||||
#define ULTRA32_RESET 0x80 /* Board reset, in ULTRA32_CMDREG. */
|
||||
#define ULTRA32_MEMENB 0x40 /* Enable the shared memory. */
|
||||
|
@ -413,7 +413,7 @@ static void ultra32_block_output(struct net_device *dev,
|
|||
|
||||
memcpy_toio(xfer_start, buf, count);
|
||||
}
|
||||
|
||||
|
||||
#ifdef MODULE
|
||||
#define MAX_ULTRA32_CARDS 4 /* Max number of Ultra cards per module */
|
||||
static struct net_device *dev_ultra[MAX_ULTRA32_CARDS];
|
||||
|
|
|
@ -98,7 +98,7 @@ STNIC_WRITE (int reg, byte val)
|
|||
*(vhalf *) (PA_83902 + ((reg) << 1)) = ((half) (val) << 8);
|
||||
STNIC_DELAY ();
|
||||
}
|
||||
|
||||
|
||||
static int __init stnic_probe(void)
|
||||
{
|
||||
struct net_device *dev;
|
||||
|
|
|
@ -61,7 +61,7 @@ static void wd_block_output(struct net_device *dev, int count,
|
|||
const unsigned char *buf, int start_page);
|
||||
static int wd_close(struct net_device *dev);
|
||||
|
||||
|
||||
|
||||
#define WD_START_PG 0x00 /* First page of TX buffer */
|
||||
#define WD03_STOP_PG 0x20 /* Last page +1 of RX ring */
|
||||
#define WD13_STOP_PG 0x40 /* Last page +1 of RX ring */
|
||||
|
@ -75,7 +75,7 @@ static int wd_close(struct net_device *dev);
|
|||
#define WD_NIC_OFFSET 16 /* Offset to the 8390 from the base_addr. */
|
||||
#define WD_IO_EXTENT 32
|
||||
|
||||
|
||||
|
||||
/* Probe for the WD8003 and WD8013. These cards have the station
|
||||
address PROM at I/O ports <base>+8 to <base>+13, with a checksum
|
||||
following. A Soundblaster can have the same checksum as an WDethercard,
|
||||
|
@ -478,7 +478,7 @@ wd_close(struct net_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef MODULE
|
||||
#define MAX_WD_CARDS 4 /* Max number of wd cards per module */
|
||||
static struct net_device *dev_wd[MAX_WD_CARDS];
|
||||
|
|
|
@ -208,7 +208,7 @@ IVc. Errata
|
|||
See Packet Engines confidential appendix (prototype chips only).
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
enum capability_flags {
|
||||
HasMII=1, FullTxStatus=2, IsGigabit=4, HasMulticastBug=8, FullRxStatus=16,
|
||||
|
@ -569,7 +569,7 @@ static void mdio_write(void __iomem *ioaddr, int phy_id, int location, int value
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int yellowfin_open(struct net_device *dev)
|
||||
{
|
||||
struct yellowfin_private *yp = netdev_priv(dev);
|
||||
|
@ -1444,7 +1444,7 @@ static void __exit yellowfin_cleanup (void)
|
|||
|
||||
module_init(yellowfin_init);
|
||||
module_exit(yellowfin_cleanup);
|
||||
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* compile-command: "gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c yellowfin.c"
|
||||
|
|
|
@ -359,7 +359,7 @@ static void znet_set_multicast_list (struct net_device *dev)
|
|||
/* XXX FIXME maz : Add multicast addresses here, so having a
|
||||
* multicast address configured isn't equal to IFF_ALLMULTI */
|
||||
}
|
||||
|
||||
|
||||
/* The Z-Note probe is pretty easy. The NETIDBLK exists in the safe-to-probe
|
||||
BIOS area. We just scan for the signature, and pull the vital parameters
|
||||
out of the structure. */
|
||||
|
@ -466,7 +466,7 @@ static int __init znet_probe (void)
|
|||
return err;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int znet_open(struct net_device *dev)
|
||||
{
|
||||
int ioaddr = dev->base_addr;
|
||||
|
|
Loading…
Reference in New Issue