提交 6aa20a22 编写于 作者: J Jeff Garzik

drivers/net: Trim trailing whitespace

Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 7a291083
......@@ -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 @@ el2_probe1(struct net_device *dev, int ioaddr)
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 @@ static int __init at1700_probe1(struct net_device *dev, int ioaddr)
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 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular)
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 @@ struct net_device * __init de620_probe(int unit)
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 @@ static int __init depca_hw_init (struct net_device *dev, struct device *device)
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 @@ static int __init lance_probe1(struct net_device *dev, int ioaddr, int irq, int
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"
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册