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
737fc38a
Commit
737fc38a
authored
Sep 18, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://gkernel.bkbits.net/net-drivers-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
414a2449
b9049286
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
18 deletions
+21
-18
Makefile
Makefile
+0
-2
drivers/ide/ide-dma.c
drivers/ide/ide-dma.c
+0
-14
drivers/ide/ide-lib.c
drivers/ide/ide-lib.c
+16
-0
drivers/ide/ide-probe.c
drivers/ide/ide-probe.c
+2
-0
include/linux/ide.h
include/linux/ide.h
+1
-0
scripts/mkcompile_h
scripts/mkcompile_h
+2
-2
No files found.
Makefile
View file @
737fc38a
...
...
@@ -270,8 +270,6 @@ NETWORKS += $(patsubst %/, %/built-in.o, $(networks-y))
SUBDIRS
+=
$(
patsubst
%/,%,
$(
filter
%/,
$
(
libs-y
)
$
(
libs-m
)))
LIBS
+=
$(
patsubst
%/, %/lib.a,
$
(
libs-y
))
$(warning
$(SUBDIRS))
export
NETWORKS
DRIVERS
LIBS
HEAD
LDFLAGS
MAKEBOOT
# boot target
...
...
drivers/ide/ide-dma.c
View file @
737fc38a
...
...
@@ -445,20 +445,6 @@ static int dma_timer_expiry (ide_drive_t *drive)
return
0
;
}
static
void
ide_toggle_bounce
(
ide_drive_t
*
drive
,
int
on
)
{
u64
addr
=
BLK_BOUNCE_HIGH
;
/* dma64_addr_t */
if
(
on
&&
drive
->
media
==
ide_disk
)
{
if
(
!
PCI_DMA_BUS_IS_PHYS
)
addr
=
BLK_BOUNCE_ANY
;
else
addr
=
HWIF
(
drive
)
->
pci_dev
->
dma_mask
;
}
blk_queue_bounce_limit
(
&
drive
->
queue
,
addr
);
}
int
__ide_dma_host_off
(
ide_drive_t
*
drive
)
{
ide_hwif_t
*
hwif
=
HWIF
(
drive
);
...
...
drivers/ide/ide-lib.c
View file @
737fc38a
...
...
@@ -386,3 +386,19 @@ u8 ide_get_best_pio_mode (ide_drive_t *drive, u8 mode_wanted, u8 max_mode, ide_p
}
EXPORT_SYMBOL_GPL
(
ide_get_best_pio_mode
);
void
ide_toggle_bounce
(
ide_drive_t
*
drive
,
int
on
)
{
u64
addr
=
BLK_BOUNCE_HIGH
;
/* dma64_addr_t */
if
(
on
&&
drive
->
media
==
ide_disk
)
{
if
(
!
PCI_DMA_BUS_IS_PHYS
)
addr
=
BLK_BOUNCE_ANY
;
else
addr
=
HWIF
(
drive
)
->
pci_dev
->
dma_mask
;
}
blk_queue_bounce_limit
(
&
drive
->
queue
,
addr
);
}
EXPORT_SYMBOL
(
ide_toggle_bounce
);
drivers/ide/ide-probe.c
View file @
737fc38a
...
...
@@ -778,6 +778,8 @@ static void ide_init_queue(ide_drive_t *drive)
/* This is a driver limit and could be eliminated. */
blk_queue_max_phys_segments
(
q
,
PRD_ENTRIES
);
ide_toggle_bounce
(
drive
,
1
);
}
/*
...
...
include/linux/ide.h
View file @
737fc38a
...
...
@@ -1753,6 +1753,7 @@ extern u8 ide_dma_speed(ide_drive_t *drive, u8 mode);
extern
u8
ide_rate_filter
(
u8
mode
,
u8
speed
);
extern
int
ide_dma_enable
(
ide_drive_t
*
drive
);
extern
char
*
ide_xfer_verbose
(
u8
xfer_rate
);
extern
void
ide_toggle_bounce
(
ide_drive_t
*
drive
,
int
on
);
extern
spinlock_t
ide_lock
;
...
...
scripts/mkcompile_h
View file @
737fc38a
...
...
@@ -67,8 +67,8 @@ UTS_TRUNCATE="sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/"
# first line.
if [ -r $TARGET ] && \
grep -v '
auto generated\|
UTS_VERSION\|LINUX_COMPILE_TIME' $TARGET > .tmpver.1 && \
grep -v '
auto generated\|
UTS_VERSION\|LINUX_COMPILE_TIME' .tmpcompile > .tmpver.2 && \
grep -v 'UTS_VERSION\|LINUX_COMPILE_TIME' $TARGET > .tmpver.1 && \
grep -v 'UTS_VERSION\|LINUX_COMPILE_TIME' .tmpcompile > .tmpver.2 && \
cmp -s .tmpver.1 .tmpver.2; then
echo ' (unchanged)'
rm -f .tmpcompile
...
...
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