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
0ad626a2
Commit
0ad626a2
authored
Aug 26, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc32: Kill iounit_map_dma_*().
Unused. Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
47a2d728
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
55 deletions
+0
-55
arch/sparc/include/asm/io-unit.h
arch/sparc/include/asm/io-unit.h
+0
-4
arch/sparc/kernel/sparc_ksyms.c
arch/sparc/kernel/sparc_ksyms.c
+0
-3
arch/sparc/mm/io-unit.c
arch/sparc/mm/io-unit.c
+0
-48
No files found.
arch/sparc/include/asm/io-unit.h
View file @
0ad626a2
...
...
@@ -55,8 +55,4 @@ struct iounit_struct {
#define IOUNIT_BMAPM_START IOUNIT_BMAP2_END
#define IOUNIT_BMAPM_END ((IOUNIT_DMA_SIZE - IOUNIT_DVMA_SIZE) >> PAGE_SHIFT)
extern
__u32
iounit_map_dma_init
(
struct
sbus_bus
*
,
int
);
#define iounit_map_dma_finish(sbus, addr, len) mmu_release_scsi_one(addr, len, sbus)
extern
__u32
iounit_map_dma_page
(
__u32
,
void
*
,
struct
sbus_bus
*
);
#endif
/* !(_SPARC_IO_UNIT_H) */
arch/sparc/kernel/sparc_ksyms.c
View file @
0ad626a2
...
...
@@ -134,9 +134,6 @@ EXPORT_SYMBOL(set_auxio);
EXPORT_SYMBOL
(
get_auxio
);
#endif
EXPORT_SYMBOL
(
io_remap_pfn_range
);
/* P3: iounit_xxx may be needed, sun4d users */
/* EXPORT_SYMBOL(iounit_map_dma_init); */
/* EXPORT_SYMBOL(iounit_map_dma_page); */
#ifndef CONFIG_SMP
EXPORT_SYMBOL
(
BTFIXUP_CALL
(
___xchg32
));
...
...
arch/sparc/mm/io-unit.c
View file @
0ad626a2
...
...
@@ -267,51 +267,3 @@ void __init ld_mmu_iounit(void)
BTFIXUPSET_CALL
(
mmu_unmap_dma_area
,
iounit_unmap_dma_area
,
BTFIXUPCALL_NORM
);
#endif
}
__u32
iounit_map_dma_init
(
struct
sbus_bus
*
sbus
,
int
size
)
{
int
i
,
j
,
k
,
npages
;
unsigned
long
rotor
,
scan
,
limit
;
unsigned
long
flags
;
__u32
ret
;
struct
iounit_struct
*
iounit
=
sbus
->
ofdev
.
dev
.
archdata
.
iommu
;
npages
=
(
size
+
(
PAGE_SIZE
-
1
))
>>
PAGE_SHIFT
;
i
=
0x0213
;
spin_lock_irqsave
(
&
iounit
->
lock
,
flags
);
next:
j
=
(
i
&
15
);
rotor
=
iounit
->
rotor
[
j
-
1
];
limit
=
iounit
->
limit
[
j
];
scan
=
rotor
;
nexti:
scan
=
find_next_zero_bit
(
iounit
->
bmap
,
limit
,
scan
);
if
(
scan
+
npages
>
limit
)
{
if
(
limit
!=
rotor
)
{
limit
=
rotor
;
scan
=
iounit
->
limit
[
j
-
1
];
goto
nexti
;
}
i
>>=
4
;
if
(
!
(
i
&
15
))
panic
(
"iounit_map_dma_init: Couldn't find free iopte slots for %d bytes
\n
"
,
size
);
goto
next
;
}
for
(
k
=
1
,
scan
++
;
k
<
npages
;
k
++
)
if
(
test_bit
(
scan
++
,
iounit
->
bmap
))
goto
nexti
;
iounit
->
rotor
[
j
-
1
]
=
(
scan
<
limit
)
?
scan
:
iounit
->
limit
[
j
-
1
];
scan
-=
npages
;
ret
=
IOUNIT_DMA_BASE
+
(
scan
<<
PAGE_SHIFT
);
for
(
k
=
0
;
k
<
npages
;
k
++
,
scan
++
)
set_bit
(
scan
,
iounit
->
bmap
);
spin_unlock_irqrestore
(
&
iounit
->
lock
,
flags
);
return
ret
;
}
__u32
iounit_map_dma_page
(
__u32
vaddr
,
void
*
addr
,
struct
sbus_bus
*
sbus
)
{
int
scan
=
(
vaddr
-
IOUNIT_DMA_BASE
)
>>
PAGE_SHIFT
;
struct
iounit_struct
*
iounit
=
sbus
->
ofdev
.
dev
.
archdata
.
iommu
;
iounit
->
page_table
[
scan
]
=
MKIOPTE
(
__pa
(((
unsigned
long
)
addr
)
&
PAGE_MASK
));
return
vaddr
+
(((
unsigned
long
)
addr
)
&
~
PAGE_MASK
);
}
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