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
159ea78e
Commit
159ea78e
authored
May 27, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge redhat.com:/spare/repo/netdev-2.6/sis900
into redhat.com:/spare/repo/net-drivers-2.6
parents
64de62b4
018713f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
drivers/net/sis900.c
drivers/net/sis900.c
+8
-3
drivers/net/sis900.h
drivers/net/sis900.h
+3
-3
No files found.
drivers/net/sis900.c
View file @
159ea78e
...
...
@@ -260,10 +260,14 @@ static int __devinit sis630e_get_mac_addr(struct pci_dev * pci_dev, struct net_d
u8
reg
;
int
i
;
if
((
isa_bridge
=
pci_find_device
(
0x1039
,
0x0008
,
isa_bridge
))
==
NULL
)
{
isa_bridge
=
pci_find_device
(
PCI_VENDOR_ID_SI
,
0x0008
,
isa_bridge
);
if
(
!
isa_bridge
)
{
isa_bridge
=
pci_find_device
(
PCI_VENDOR_ID_SI
,
0x0018
,
isa_bridge
);
if
(
!
isa_bridge
)
{
printk
(
"%s: Can not find ISA bridge
\n
"
,
net_dev
->
name
);
return
0
;
}
}
pci_read_config_byte
(
isa_bridge
,
0x48
,
&
reg
);
pci_write_config_byte
(
isa_bridge
,
0x48
,
reg
|
0x40
);
...
...
@@ -2195,6 +2199,7 @@ static int sis900_suspend(struct pci_dev *pci_dev, u32 state)
return
0
;
netif_stop_queue
(
net_dev
);
netif_device_detach
(
net_dev
);
/* Stop the chip's Tx and Rx Status Machine */
outl
(
RxDIS
|
TxDIS
|
inl
(
ioaddr
+
cr
),
ioaddr
+
cr
);
...
...
drivers/net/sis900.h
View file @
159ea78e
...
...
@@ -77,7 +77,7 @@ enum sis900_interrupt_enable_reigster_bits {
IE
=
0x00000001
};
/* maximum dma burst f
ro transmission and receive
*/
/* maximum dma burst f
or transmission and receive
*/
#define MAX_DMA_RANGE 7
/* actually 0 means MAXIMUM !! */
#define TxMXDMA_shift 20
#define RxMXDMA_shift 20
...
...
@@ -86,7 +86,7 @@ enum sis900_tx_rx_dma{
DMA_BURST_512
=
0
,
DMA_BURST_64
=
5
};
/* transmit FIFO thresh
h
olds */
/* transmit FIFO thresholds */
#define TX_FILL_THRESH 16
/* 1/4 FIFO size */
#define TxFILLT_shift 8
#define TxDRNT_shift 0
...
...
@@ -140,7 +140,7 @@ enum sis96x_eeprom_command {
EEREQ
=
0x00000400
,
EEDONE
=
0x00000200
,
EEGNT
=
0x00000100
};
/* Mana
m
gement Data I/O (mdio) frame */
/* Management Data I/O (mdio) frame */
#define MIIread 0x6000
#define MIIwrite 0x5002
#define MIIpmdShift 7
...
...
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