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
d1cdccb3
Commit
d1cdccb3
authored
Sep 10, 2004
by
Linus Torvalds
Committed by
Linus Torvalds
Sep 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sungem: PCI memory annotations
parent
8fe36052
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
drivers/net/sungem.c
drivers/net/sungem.c
+4
-4
drivers/net/sungem.h
drivers/net/sungem.h
+1
-1
No files found.
drivers/net/sungem.c
View file @
d1cdccb3
...
@@ -2656,7 +2656,7 @@ static void find_eth_addr_in_vpd(void *rom_base, int len, unsigned char *dev_add
...
@@ -2656,7 +2656,7 @@ static void find_eth_addr_in_vpd(void *rom_base, int len, unsigned char *dev_add
static
void
get_gem_mac_nonobp
(
struct
pci_dev
*
pdev
,
unsigned
char
*
dev_addr
)
static
void
get_gem_mac_nonobp
(
struct
pci_dev
*
pdev
,
unsigned
char
*
dev_addr
)
{
{
u32
rom_reg_orig
;
u32
rom_reg_orig
;
void
*
p
;
void
__iomem
*
p
;
if
(
pdev
->
resource
[
PCI_ROM_RESOURCE
].
parent
==
NULL
)
{
if
(
pdev
->
resource
[
PCI_ROM_RESOURCE
].
parent
==
NULL
)
{
if
(
pci_assign_resource
(
pdev
,
PCI_ROM_RESOURCE
)
<
0
)
if
(
pci_assign_resource
(
pdev
,
PCI_ROM_RESOURCE
)
<
0
)
...
@@ -2825,7 +2825,7 @@ static int __devinit gem_init_one(struct pci_dev *pdev,
...
@@ -2825,7 +2825,7 @@ static int __devinit gem_init_one(struct pci_dev *pdev,
gp
->
timer_ticks
=
0
;
gp
->
timer_ticks
=
0
;
netif_carrier_off
(
dev
);
netif_carrier_off
(
dev
);
gp
->
regs
=
(
unsigned
long
)
ioremap
(
gemreg_base
,
gemreg_len
);
gp
->
regs
=
ioremap
(
gemreg_base
,
gemreg_len
);
if
(
gp
->
regs
==
0UL
)
{
if
(
gp
->
regs
==
0UL
)
{
printk
(
KERN_ERR
PFX
"Cannot map device registers, "
printk
(
KERN_ERR
PFX
"Cannot map device registers, "
"aborting.
\n
"
);
"aborting.
\n
"
);
...
@@ -2944,7 +2944,7 @@ static int __devinit gem_init_one(struct pci_dev *pdev,
...
@@ -2944,7 +2944,7 @@ static int __devinit gem_init_one(struct pci_dev *pdev,
gem_shutdown
(
gp
);
gem_shutdown
(
gp
);
up
(
&
gp
->
pm_sem
);
up
(
&
gp
->
pm_sem
);
iounmap
(
(
void
*
)
gp
->
regs
);
iounmap
(
gp
->
regs
);
err_out_free_res:
err_out_free_res:
pci_release_regions
(
pdev
);
pci_release_regions
(
pdev
);
...
@@ -2978,7 +2978,7 @@ static void __devexit gem_remove_one(struct pci_dev *pdev)
...
@@ -2978,7 +2978,7 @@ static void __devexit gem_remove_one(struct pci_dev *pdev)
sizeof
(
struct
gem_init_block
),
sizeof
(
struct
gem_init_block
),
gp
->
init_block
,
gp
->
init_block
,
gp
->
gblock_dvma
);
gp
->
gblock_dvma
);
iounmap
(
(
void
*
)
gp
->
regs
);
iounmap
(
gp
->
regs
);
pci_release_regions
(
pdev
);
pci_release_regions
(
pdev
);
free_netdev
(
dev
);
free_netdev
(
dev
);
...
...
drivers/net/sungem.h
View file @
d1cdccb3
...
@@ -953,7 +953,7 @@ enum link_state {
...
@@ -953,7 +953,7 @@ enum link_state {
struct
gem
{
struct
gem
{
spinlock_t
lock
;
spinlock_t
lock
;
unsigned
long
regs
;
void
__iomem
*
regs
;
int
rx_new
,
rx_old
;
int
rx_new
,
rx_old
;
int
tx_new
,
tx_old
;
int
tx_new
,
tx_old
;
...
...
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