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
Kirill Smelkov
linux
Commits
4e896d73
Commit
4e896d73
authored
Jul 27, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge pobox.com:/spare/repo/linux-2.6
into pobox.com:/spare/repo/netdev-2.6/skge
parents
a6ba40b5
05ef36d4
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
322 additions
and
478 deletions
+322
-478
drivers/net/sk98lin/h/skdrv2nd.h
drivers/net/sk98lin/h/skdrv2nd.h
+0
-54
drivers/net/sk98lin/skaddr.c
drivers/net/sk98lin/skaddr.c
+2
-2
drivers/net/sk98lin/skge.c
drivers/net/sk98lin/skge.c
+320
-422
No files found.
drivers/net/sk98lin/h/skdrv2nd.h
View file @
4e896d73
...
...
@@ -53,60 +53,6 @@
#include "h/skrlmt.h"
#include "h/skgedrv.h"
#define SK_PCI_ISCOMPLIANT(result, pdev) { \
result = SK_FALSE;
/* default */
\
/* 3Com (0x10b7) */
\
if (pdev->vendor == 0x10b7) { \
/* Gigabit Ethernet Adapter (0x1700) */
\
if ((pdev->device == 0x1700) || \
(pdev->device == 0x80eb)) { \
result = SK_TRUE; \
} \
/* SysKonnect (0x1148) */
\
} else if (pdev->vendor == 0x1148) { \
/* SK-98xx Gigabit Ethernet Server Adapter (0x4300) */
\
/* SK-98xx V2.0 Gigabit Ethernet Adapter (0x4320) */
\
if ((pdev->device == 0x4300) || \
(pdev->device == 0x4320)) { \
result = SK_TRUE; \
} \
/* D-Link (0x1186) */
\
} else if (pdev->vendor == 0x1186) { \
/* Gigabit Ethernet Adapter (0x4c00) */
\
if ((pdev->device == 0x4c00)) { \
result = SK_TRUE; \
} \
/* Marvell (0x11ab) */
\
} else if (pdev->vendor == 0x11ab) { \
/* Gigabit Ethernet Adapter (0x4320) */
\
/* Gigabit Ethernet Adapter (0x4360) */
\
/* Gigabit Ethernet Adapter (0x4361) */
\
/* Belkin (0x5005) */
\
if ((pdev->device == 0x4320) || \
(pdev->device == 0x4360) || \
(pdev->device == 0x4361) || \
(pdev->device == 0x5005)) { \
result = SK_TRUE; \
} \
/* CNet (0x1371) */
\
} else if (pdev->vendor == 0x1371) { \
/* GigaCard Network Adapter (0x434e) */
\
if ((pdev->device == 0x434e)) { \
result = SK_TRUE; \
} \
/* Linksys (0x1737) */
\
} else if (pdev->vendor == 0x1737) { \
/* Gigabit Network Adapter (0x1032) */
\
/* Gigabit Network Adapter (0x1064) */
\
if ((pdev->device == 0x1032) || \
(pdev->device == 0x1064)) { \
result = SK_TRUE; \
} \
} else { \
result = SK_FALSE; \
} \
}
extern
SK_MBUF
*
SkDrvAllocRlmtMbuf
(
SK_AC
*
,
SK_IOC
,
unsigned
);
extern
void
SkDrvFreeRlmtMbuf
(
SK_AC
*
,
SK_IOC
,
SK_MBUF
*
);
...
...
drivers/net/sk98lin/skaddr.c
View file @
4e896d73
...
...
@@ -892,7 +892,7 @@ SK_AC *pAC, /* adapter context */
SK_IOC
IoC
,
/* I/O context */
SK_U32
PortNumber
)
/* Port Number */
{
int
ReturnCode
;
int
ReturnCode
=
0
;
#if (!defined(SK_SLIM) || defined(DEBUG))
if
(
PortNumber
>=
(
SK_U32
)
pAC
->
GIni
.
GIMacsFound
)
{
return
(
SK_ADDR_ILLEGAL_PORT
);
...
...
@@ -1424,7 +1424,7 @@ SK_IOC IoC, /* I/O context */
SK_U32
PortNumber
,
/* port whose promiscuous mode changes */
int
NewPromMode
)
/* new promiscuous mode */
{
int
ReturnCode
;
int
ReturnCode
=
0
;
#if (!defined(SK_SLIM) || defined(DEBUG))
if
(
PortNumber
>=
(
SK_U32
)
pAC
->
GIni
.
GIMacsFound
)
{
return
(
SK_ADDR_ILLEGAL_PORT
);
...
...
drivers/net/sk98lin/skge.c
View file @
4e896d73
This diff is collapsed.
Click to expand it.
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