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
9edf0fff
Commit
9edf0fff
authored
Mar 08, 2005
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge pobox.com:/garz/repo/netdev-2.6/ibmtr
into pobox.com:/garz/repo/net-drivers-2.6
parents
cf4a4652
5e03b79d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
95 deletions
+85
-95
drivers/net/pcmcia/ibmtr_cs.c
drivers/net/pcmcia/ibmtr_cs.c
+4
-3
drivers/net/tokenring/ibmtr.c
drivers/net/tokenring/ibmtr.c
+73
-85
include/linux/ibmtr.h
include/linux/ibmtr.h
+8
-7
No files found.
drivers/net/pcmcia/ibmtr_cs.c
View file @
9edf0fff
...
...
@@ -343,7 +343,8 @@ static void ibmtr_config(dev_link_t *link)
CS_CHECK
(
MapMemPage
,
pcmcia_map_mem_page
(
info
->
sram_win_handle
,
&
mem
));
ti
->
sram_base
=
mem
.
CardOffset
>>
12
;
ti
->
sram_virt
=
(
u_long
)
ioremap
(
req
.
Base
,
req
.
Size
);
ti
->
sram_virt
=
ioremap
(
req
.
Base
,
req
.
Size
);
ti
->
sram_phys
=
req
.
Base
;
CS_CHECK
(
RequestConfiguration
,
pcmcia_request_configuration
(
link
->
handle
,
&
link
->
conf
));
...
...
@@ -401,7 +402,7 @@ static void ibmtr_release(dev_link_t *link)
pcmcia_release_irq
(
link
->
handle
,
&
link
->
irq
);
if
(
link
->
win
)
{
struct
tok_info
*
ti
=
netdev_priv
(
dev
);
iounmap
(
(
void
*
)
ti
->
mmio
);
iounmap
(
ti
->
mmio
);
pcmcia_release_window
(
link
->
win
);
pcmcia_release_window
(
info
->
sram_win_handle
);
}
...
...
@@ -433,7 +434,7 @@ static int ibmtr_event(event_t event, int priority,
if
(
link
->
state
&
DEV_CONFIG
)
{
/* set flag to bypass normal interrupt code */
struct
tok_info
*
priv
=
netdev_priv
(
dev
);
priv
->
sram_
virt
|=
1
;
priv
->
sram_
phys
|=
1
;
netif_device_detach
(
dev
);
}
break
;
...
...
drivers/net/tokenring/ibmtr.c
View file @
9edf0fff
This diff is collapsed.
Click to expand it.
include/linux/ibmtr.h
View file @
9edf0fff
...
...
@@ -169,7 +169,7 @@ typedef enum { CLOSED, OPEN } open_state;
struct
tok_info
{
unsigned
char
irq
;
void
*
mmio
;
void
__iomem
*
mmio
;
unsigned
char
hw_address
[
32
];
unsigned
char
adapter_type
;
unsigned
char
data_rate
;
...
...
@@ -192,12 +192,13 @@ struct tok_info {
/* Additions by Peter De Schrijver */
unsigned
char
page_mask
;
/* mask to select RAM page to Map*/
unsigned
char
mapped_ram_size
;
/* size of RAM page */
__u32
sram_virt
;
/* Shared memory base address */
__u32
init_srb
;
/* Initial System Request Block address */
__u32
srb
;
/* System Request Block address */
__u32
ssb
;
/* System Status Block address */
__u32
arb
;
/* Adapter Request Block address */
__u32
asb
;
/* Adapter Status Block address */
__u32
sram_phys
;
/* Shared memory base address */
void
__iomem
*
sram_virt
;
/* Shared memory base address */
void
__iomem
*
init_srb
;
/* Initial System Request Block address */
void
__iomem
*
srb
;
/* System Request Block address */
void
__iomem
*
ssb
;
/* System Status Block address */
void
__iomem
*
arb
;
/* Adapter Request Block address */
void
__iomem
*
asb
;
/* Adapter Status Block address */
__u8
init_srb_page
;
__u8
srb_page
;
__u8
ssb_page
;
...
...
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