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
7ca70e4d
Commit
7ca70e4d
authored
Dec 03, 2009
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd64x: remove no longer needed debugging code
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
2db3dae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
drivers/ide/cmd64x.c
drivers/ide/cmd64x.c
+0
-17
No files found.
drivers/ide/cmd64x.c
View file @
7ca70e4d
...
...
@@ -20,14 +20,6 @@
#define DRV_NAME "cmd64x"
#define CMD_DEBUG 0
#if CMD_DEBUG
#define cmdprintk(x...) printk(x)
#else
#define cmdprintk(x...)
#endif
/*
* CMD64x specific registers definition.
*/
...
...
@@ -76,9 +68,6 @@ static void program_cycle_times (ide_drive_t *drive, int cycle_time, int active_
{
15
,
15
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
0
};
static
const
u8
drwtim_regs
[
4
]
=
{
DRWTIM0
,
DRWTIM1
,
DRWTIM2
,
DRWTIM3
};
cmdprintk
(
"program_cycle_times parameters: total=%d, active=%d
\n
"
,
cycle_time
,
active_time
);
cycle_count
=
quantize_timing
(
cycle_time
,
clock_time
);
active_count
=
quantize_timing
(
active_time
,
clock_time
);
recovery_count
=
cycle_count
-
active_count
;
...
...
@@ -94,9 +83,6 @@ static void program_cycle_times (ide_drive_t *drive, int cycle_time, int active_
if
(
active_count
>
16
)
/* shouldn't actually happen... */
active_count
=
16
;
cmdprintk
(
"Final counts: total=%d, active=%d, recovery=%d
\n
"
,
cycle_count
,
active_count
,
recovery_count
);
/*
* Convert values to internal chipset representation
*/
...
...
@@ -106,7 +92,6 @@ static void program_cycle_times (ide_drive_t *drive, int cycle_time, int active_
/* Program the active/recovery counts into the DRWTIM register */
drwtim
=
(
active_count
<<
4
)
|
recovery_count
;
(
void
)
pci_write_config_byte
(
dev
,
drwtim_regs
[
drive
->
dn
],
drwtim
);
cmdprintk
(
"Write 0x%02x to reg 0x%x
\n
"
,
drwtim
,
drwtim_regs
[
drive
->
dn
]);
}
/*
...
...
@@ -150,7 +135,6 @@ static void cmd64x_tune_pio(ide_drive_t *drive, const u8 pio)
if
(
setup_count
>
5
)
/* shouldn't actually happen... */
setup_count
=
5
;
cmdprintk
(
"Final address setup count: %d
\n
"
,
setup_count
);
/*
* Program the address setup clocks into the ARTTIM registers.
...
...
@@ -162,7 +146,6 @@ static void cmd64x_tune_pio(ide_drive_t *drive, const u8 pio)
arttim
&=
~
0xc0
;
arttim
|=
setup_values
[
setup_count
];
(
void
)
pci_write_config_byte
(
dev
,
arttim_regs
[
drive
->
dn
],
arttim
);
cmdprintk
(
"Write 0x%02x to reg 0x%x
\n
"
,
arttim
,
arttim_regs
[
drive
->
dn
]);
}
/*
...
...
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