Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c7065272
Commit
c7065272
authored
Jun 11, 2003
by
Benjamin Herrenschmidt
Committed by
David S. Miller
Jun 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SUNGEM]: Fix gcc3.3 warnings.
parent
8a8dac8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
drivers/net/sungem.c
drivers/net/sungem.c
+1
-1
drivers/net/sungem.h
drivers/net/sungem.h
+15
-15
No files found.
drivers/net/sungem.c
View file @
c7065272
...
...
@@ -2676,7 +2676,7 @@ static int __devinit gem_init_one(struct pci_dev *pdev,
*/
if
(
pdev
->
vendor
==
PCI_VENDOR_ID_SUN
&&
pdev
->
device
==
PCI_DEVICE_ID_SUN_GEM
&&
!
pci_set_dma_mask
(
pdev
,
(
u64
)
0xffffffffffffffff
))
{
!
pci_set_dma_mask
(
pdev
,
(
u64
)
0xffffffffffffffff
ULL
))
{
pci_using_dac
=
1
;
}
else
{
err
=
pci_set_dma_mask
(
pdev
,
(
u64
)
0xffffffff
);
...
...
drivers/net/sungem.h
View file @
c7065272
...
...
@@ -805,14 +805,14 @@ struct gem_txd {
u64
buffer
;
};
#define TXDCTRL_BUFSZ 0x0000000000007fff
/* Buffer Size */
#define TXDCTRL_CSTART 0x00000000001f8000
/* CSUM Start Offset */
#define TXDCTRL_COFF 0x000000001fe00000
/* CSUM Stuff Offset */
#define TXDCTRL_CENAB 0x0000000020000000
/* CSUM Enable */
#define TXDCTRL_EOF 0x0000000040000000
/* End of Frame */
#define TXDCTRL_SOF 0x0000000080000000
/* Start of Frame */
#define TXDCTRL_INTME 0x0000000100000000
/* "Interrupt Me" */
#define TXDCTRL_NOCRC 0x0000000200000000
/* No CRC Present */
#define TXDCTRL_BUFSZ 0x0000000000007fff
ULL
/* Buffer Size */
#define TXDCTRL_CSTART 0x00000000001f8000
ULL
/* CSUM Start Offset */
#define TXDCTRL_COFF 0x000000001fe00000
ULL
/* CSUM Stuff Offset */
#define TXDCTRL_CENAB 0x0000000020000000
ULL
/* CSUM Enable */
#define TXDCTRL_EOF 0x0000000040000000
ULL
/* End of Frame */
#define TXDCTRL_SOF 0x0000000080000000
ULL
/* Start of Frame */
#define TXDCTRL_INTME 0x0000000100000000
ULL
/* "Interrupt Me" */
#define TXDCTRL_NOCRC 0x0000000200000000
ULL
/* No CRC Present */
/* GEM requires that RX descriptors are provided four at a time,
* aligned. Also, the RX ring may not wrap around. This means that
...
...
@@ -840,13 +840,13 @@ struct gem_rxd {
u64
buffer
;
};
#define RXDCTRL_TCPCSUM 0x000000000000ffff
/* TCP Pseudo-CSUM */
#define RXDCTRL_BUFSZ 0x000000007fff0000
/* Buffer Size */
#define RXDCTRL_OWN 0x0000000080000000
/* GEM owns this entry */
#define RXDCTRL_HASHVAL 0x0ffff00000000000
/* Hash Value */
#define RXDCTRL_HPASS 0x1000000000000000
/* Passed Hash Filter */
#define RXDCTRL_ALTMAC 0x2000000000000000
/* Matched ALT MAC */
#define RXDCTRL_BAD 0x4000000000000000
/* Frame has bad CRC */
#define RXDCTRL_TCPCSUM 0x000000000000ffff
ULL
/* TCP Pseudo-CSUM */
#define RXDCTRL_BUFSZ 0x000000007fff0000
ULL
/* Buffer Size */
#define RXDCTRL_OWN 0x0000000080000000
ULL
/* GEM owns this entry */
#define RXDCTRL_HASHVAL 0x0ffff00000000000
ULL
/* Hash Value */
#define RXDCTRL_HPASS 0x1000000000000000
ULL
/* Passed Hash Filter */
#define RXDCTRL_ALTMAC 0x2000000000000000
ULL
/* Matched ALT MAC */
#define RXDCTRL_BAD 0x4000000000000000
ULL
/* Frame has bad CRC */
#define RXDCTRL_FRESH(gp) \
((((RX_BUF_ALLOC_SIZE(gp) - RX_OFFSET) << 16) & RXDCTRL_BUFSZ) | \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment