Skip to content

Commit 6ed1425

Browse files
author
Jeff Garzik
committed
[netdrvr pcnet_cs, myri] trim trailing whitespace
1 parent cf393eb commit 6ed1425

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

drivers/net/myri10ge/myri10ge_mcp.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ struct mcp_cmd_response {
3535
u32 result;
3636
};
3737

38-
/*
38+
/*
3939
* flags used in mcp_kreq_ether_send_t:
40-
*
40+
*
4141
* The SMALL flag is only needed in the first segment. It is raised
4242
* for packets that are total less or equal 512 bytes.
43-
*
43+
*
4444
* The CKSUM flag must be set in all segments.
45-
*
45+
*
4646
* The PADDED flags is set if the packet needs to be padded, and it
4747
* must be set for all segments.
48-
*
48+
*
4949
* The MXGEFW_FLAGS_ALIGN_ODD must be set if the cumulative
5050
* length of all previous segments was odd.
5151
*/
@@ -111,7 +111,7 @@ enum myri10ge_mcp_cmd_type {
111111
MXGEFW_CMD_SET_BIG_BUFFER_SIZE, /* in bytes, power of 2 */
112112
MXGEFW_CMD_SET_SMALL_BUFFER_SIZE, /* in bytes */
113113

114-
/* Parameters which refer to lanai SRAM addresses where the
114+
/* Parameters which refer to lanai SRAM addresses where the
115115
* driver must issue PIO writes for various things */
116116

117117
MXGEFW_CMD_GET_SEND_OFFSET,
@@ -128,7 +128,7 @@ enum myri10ge_mcp_cmd_type {
128128

129129
/* Parameters which refer to rings stored in the host,
130130
* and whose size is controlled by the host. Note that
131-
* all must be physically contiguous and must contain
131+
* all must be physically contiguous and must contain
132132
* a power of 2 number of entries. */
133133

134134
MXGEFW_CMD_SET_INTRQ_SIZE, /* in bytes */

drivers/net/myri10ge/myri10ge_mcp_gen_header.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
* the .data section, because some fields needs to be initialized at
88
* compile time.
99
* The 32bit word at offset MX_HEADER_PTR_OFFSET in the mcp must
10-
* contains the location of the header.
11-
*
10+
* contains the location of the header.
11+
*
1212
* Typically a MCP will start with the following:
1313
* .text
1414
* .space 52 ! to help catch MEMORY_INT errors
1515
* bt start ! jump to real code
1616
* nop
1717
* .long _gen_mcp_header
18-
*
18+
*
1919
* The source will have a definition like:
20-
*
20+
*
2121
* mcp_gen_header_t gen_mcp_header = {
2222
* .header_length = sizeof(mcp_gen_header_t),
2323
* .mcp_type = MCP_TYPE_XXX,
@@ -46,11 +46,11 @@ struct mcp_gen_header {
4646
unsigned string_specs_len;
4747

4848
/* Fields above this comment are guaranteed to be present.
49-
*
49+
*
5050
* Fields below this comment are extensions added in later versions
5151
* of this struct, drivers should compare the header_length against
5252
* offsetof(field) to check wether a given MCP implements them.
53-
*
53+
*
5454
* Never remove any field. Keep everything naturally align.
5555
*/
5656
};

drivers/net/pcmcia/pcnet_cs.c

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Copyright (C) 1999 David A. Hinds -- [email protected]
1313
1414
pcnet_cs.c 1.153 2003/11/09 18:53:09
15-
15+
1616
The network driver code is based on Donald Becker's NE2000 code:
1717
1818
Written 1992,1993 by Donald Becker.
@@ -146,7 +146,7 @@ typedef struct hw_info_t {
146146
#define MII_PHYID_REG2 0x03
147147

148148
static hw_info_t hw_info[] = {
149-
{ /* Accton EN2212 */ 0x0ff0, 0x00, 0x00, 0xe8, DELAY_OUTPUT },
149+
{ /* Accton EN2212 */ 0x0ff0, 0x00, 0x00, 0xe8, DELAY_OUTPUT },
150150
{ /* Allied Telesis LA-PCM */ 0x0ff0, 0x00, 0x00, 0xf4, 0 },
151151
{ /* APEX MultiCard */ 0x03f4, 0x00, 0x20, 0xe5, 0 },
152152
{ /* ASANTE FriendlyNet */ 0x4910, 0x00, 0x00, 0x94,
@@ -193,7 +193,7 @@ static hw_info_t hw_info[] = {
193193
{ /* NE2000 Compatible */ 0x0ff0, 0x00, 0xa0, 0x0c, 0 },
194194
{ /* Network General Sniffer */ 0x0ff0, 0x00, 0x00, 0x65,
195195
HAS_MISC_REG | HAS_IBM_MISC },
196-
{ /* Panasonic VEL211 */ 0x0ff0, 0x00, 0x80, 0x45,
196+
{ /* Panasonic VEL211 */ 0x0ff0, 0x00, 0x80, 0x45,
197197
HAS_MISC_REG | HAS_IBM_MISC },
198198
{ /* PreMax PE-200 */ 0x07f0, 0x00, 0x20, 0xe0, 0 },
199199
{ /* RPTI EP400 */ 0x0110, 0x00, 0x40, 0x95, 0 },
@@ -330,7 +330,7 @@ static hw_info_t *get_hwinfo(struct pcmcia_device *link)
330330
for (j = 0; j < 6; j++)
331331
dev->dev_addr[j] = readb(base + (j<<1));
332332
}
333-
333+
334334
iounmap(virt);
335335
j = pcmcia_release_window(link->win);
336336
if (j != CS_SUCCESS)
@@ -490,7 +490,7 @@ static int try_io_port(struct pcmcia_device *link)
490490
if (link->io.NumPorts2 > 0) {
491491
/* for master/slave multifunction cards */
492492
link->io.Attributes2 = IO_DATA_PATH_WIDTH_8;
493-
link->irq.Attributes =
493+
link->irq.Attributes =
494494
IRQ_TYPE_DYNAMIC_SHARING|IRQ_FIRST_SHARED;
495495
}
496496
} else {
@@ -543,19 +543,19 @@ static int pcnet_config(struct pcmcia_device *link)
543543
manfid = le16_to_cpu(buf[0]);
544544
prodid = le16_to_cpu(buf[1]);
545545
}
546-
546+
547547
tuple.DesiredTuple = CISTPL_CFTABLE_ENTRY;
548548
tuple.Attributes = 0;
549549
CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(link, &tuple));
550550
while (last_ret == CS_SUCCESS) {
551551
cistpl_cftable_entry_t *cfg = &(parse.cftable_entry);
552552
cistpl_io_t *io = &(parse.cftable_entry.io);
553-
553+
554554
if (pcmcia_get_tuple_data(link, &tuple) != 0 ||
555555
pcmcia_parse_tuple(link, &tuple, &parse) != 0 ||
556556
cfg->index == 0 || cfg->io.nwin == 0)
557557
goto next_entry;
558-
558+
559559
link->conf.ConfigIndex = cfg->index;
560560
/* For multifunction cards, by convention, we configure the
561561
network function with window 0, and serial with window 1 */
@@ -584,15 +584,15 @@ static int pcnet_config(struct pcmcia_device *link)
584584
}
585585

586586
CS_CHECK(RequestIRQ, pcmcia_request_irq(link, &link->irq));
587-
587+
588588
if (link->io.NumPorts2 == 8) {
589589
link->conf.Attributes |= CONF_ENABLE_SPKR;
590590
link->conf.Status = CCSR_AUDIO_ENA;
591591
}
592592
if ((manfid == MANFID_IBM) &&
593593
(prodid == PRODID_IBM_HOME_AND_AWAY))
594594
link->conf.ConfigIndex |= 0x10;
595-
595+
596596
CS_CHECK(RequestConfiguration, pcmcia_request_configuration(link, &link->conf));
597597
dev->irq = link->irq.AssignedIRQ;
598598
dev->base_addr = link->io.BasePort1;
@@ -614,7 +614,7 @@ static int pcnet_config(struct pcmcia_device *link)
614614
hw_info = get_ax88190(link);
615615
if (hw_info == NULL)
616616
hw_info = get_hwired(link);
617-
617+
618618
if (hw_info == NULL) {
619619
printk(KERN_NOTICE "pcnet_cs: unable to read hardware net"
620620
" address for io base %#3lx\n", dev->base_addr);
@@ -631,7 +631,7 @@ static int pcnet_config(struct pcmcia_device *link)
631631
info->flags &= ~USE_BIG_BUF;
632632
if (!use_big_buf)
633633
info->flags &= ~USE_BIG_BUF;
634-
634+
635635
if (info->flags & USE_BIG_BUF) {
636636
start_pg = SOCKET_START_PG;
637637
stop_pg = SOCKET_STOP_PG;
@@ -929,7 +929,7 @@ static void set_misc_reg(struct net_device *dev)
929929
kio_addr_t nic_base = dev->base_addr;
930930
pcnet_dev_t *info = PRIV(dev);
931931
u_char tmp;
932-
932+
933933
if (info->flags & HAS_MISC_REG) {
934934
tmp = inb_p(nic_base + PCNET_MISC) & ~3;
935935
if (dev->if_port == 2)
@@ -1022,7 +1022,7 @@ static int pcnet_close(struct net_device *dev)
10221022

10231023
ei_close(dev);
10241024
free_irq(dev->irq, dev);
1025-
1025+
10261026
link->open--;
10271027
netif_stop_queue(dev);
10281028
del_timer_sync(&info->watchdog);
@@ -1054,12 +1054,12 @@ static void pcnet_reset_8390(struct net_device *dev)
10541054
udelay(100);
10551055
}
10561056
outb_p(ENISR_RESET, nic_base + EN0_ISR); /* Ack intr. */
1057-
1057+
10581058
if (i == 100)
10591059
printk(KERN_ERR "%s: pcnet_reset_8390() did not complete.\n",
10601060
dev->name);
10611061
set_misc_reg(dev);
1062-
1062+
10631063
} /* pcnet_reset_8390 */
10641064

10651065
/*====================================================================*/
@@ -1233,7 +1233,7 @@ static void dma_get_8390_hdr(struct net_device *dev,
12331233
dev->name, ei_status.dmaing, ei_status.irqlock);
12341234
return;
12351235
}
1236-
1236+
12371237
ei_status.dmaing |= 0x01;
12381238
outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base + PCNET_CMD);
12391239
outb_p(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO);
@@ -1458,7 +1458,7 @@ static void shmem_get_8390_hdr(struct net_device *dev,
14581458
void __iomem *xfer_start = ei_status.mem + (TX_PAGES<<8)
14591459
+ (ring_page << 8)
14601460
- (ei_status.rx_start_page << 8);
1461-
1461+
14621462
copyin(hdr, xfer_start, sizeof(struct e8390_pkt_hdr));
14631463
/* Fix for big endian systems */
14641464
hdr->count = le16_to_cpu(hdr->count);
@@ -1473,7 +1473,7 @@ static void shmem_block_input(struct net_device *dev, int count,
14731473
unsigned long offset = (TX_PAGES<<8) + ring_offset
14741474
- (ei_status.rx_start_page << 8);
14751475
char *buf = skb->data;
1476-
1476+
14771477
if (offset + count > ei_status.priv) {
14781478
/* We must wrap the input move. */
14791479
int semi_count = ei_status.priv - offset;
@@ -1541,7 +1541,7 @@ static int setup_shmem_window(struct pcmcia_device *link, int start_pg,
15411541
info->base = NULL; link->win = NULL;
15421542
goto failed;
15431543
}
1544-
1544+
15451545
ei_status.mem = info->base + offset;
15461546
ei_status.priv = req.Size;
15471547
dev->mem_start = (u_long)ei_status.mem;
@@ -1768,7 +1768,7 @@ static struct pcmcia_device_id pcnet_ids[] = {
17681768
PCMCIA_DEVICE_CIS_PROD_ID12("NDC", "Ethernet", 0x01c43ae1, 0x00b2e941, "NE2K.cis"),
17691769
PCMCIA_DEVICE_CIS_PROD_ID12("PMX ", "PE-200", 0x34f3f1c8, 0x10b59f8c, "PE-200.cis"),
17701770
PCMCIA_DEVICE_CIS_PROD_ID12("TAMARACK", "Ethernet", 0xcf434fba, 0x00b2e941, "tamarack.cis"),
1771-
PCMCIA_DEVICE_PROD_ID123("Fast Ethernet", "CF Size PC Card", "1.0",
1771+
PCMCIA_DEVICE_PROD_ID123("Fast Ethernet", "CF Size PC Card", "1.0",
17721772
0xb4be14e3, 0x43ac239b, 0x0877b627),
17731773
PCMCIA_DEVICE_NULL
17741774
};

0 commit comments

Comments
 (0)