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
3c447ef1
Commit
3c447ef1
authored
Oct 10, 2004
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ide] cmd64x: kill dead DEBUG_CMD_REGS code
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
d04907ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
drivers/ide/pci/cmd64x.c
drivers/ide/pci/cmd64x.c
+0
-17
drivers/ide/pci/cmd64x.h
drivers/ide/pci/cmd64x.h
+0
-4
No files found.
drivers/ide/pci/cmd64x.c
View file @
3c447ef1
...
...
@@ -38,8 +38,6 @@ static u8 cmd64x_proc = 0;
static
struct
pci_dev
*
cmd_devs
[
CMD_MAX_DEVS
];
static
int
n_cmd_devs
;
#undef DEBUG_CMD_REGS
static
char
*
print_cmd64x_get_info
(
char
*
buf
,
struct
pci_dev
*
dev
,
int
index
)
{
char
*
p
=
buf
;
...
...
@@ -49,9 +47,6 @@ static char * print_cmd64x_get_info (char *buf, struct pci_dev *dev, int index)
u8
reg72
=
0
,
reg73
=
0
;
/* primary */
u8
reg7a
=
0
,
reg7b
=
0
;
/* secondary */
u8
reg50
=
0
,
reg71
=
0
;
/* extra */
#ifdef DEBUG_CMD_REGS
u8
hi_byte
=
0
,
lo_byte
=
0
;
#endif
/* DEBUG_CMD_REGS */
p
+=
sprintf
(
p
,
"
\n
Controller: %d
\n
"
,
index
);
p
+=
sprintf
(
p
,
"CMD%x Chipset.
\n
"
,
dev
->
device
);
...
...
@@ -127,18 +122,6 @@ static char * print_cmd64x_get_info (char *buf, struct pci_dev *dev, int index)
(
reg71
&
MRDMODE_BLK_CH0
)
?
"blocked"
:
"enabled"
,
(
reg71
&
MRDMODE_BLK_CH1
)
?
"blocked"
:
"enabled"
);
#ifdef DEBUG_CMD_REGS
SPLIT_BYTE
(
reg50
,
hi_byte
,
lo_byte
);
p
+=
sprintf
(
p
,
"CFR = 0x%02x, HI = 0x%02x, "
"LOW = 0x%02x
\n
"
,
reg50
,
hi_byte
,
lo_byte
);
SPLIT_BYTE
(
reg57
,
hi_byte
,
lo_byte
);
p
+=
sprintf
(
p
,
"ARTTIM23 = 0x%02x, HI = 0x%02x, "
"LOW = 0x%02x
\n
"
,
reg57
,
hi_byte
,
lo_byte
);
SPLIT_BYTE
(
reg71
,
hi_byte
,
lo_byte
);
p
+=
sprintf
(
p
,
"MRDMODE = 0x%02x, HI = 0x%02x, "
"LOW = 0x%02x
\n
"
,
reg71
,
hi_byte
,
lo_byte
);
#endif
/* DEBUG_CMD_REGS */
return
(
char
*
)
p
;
}
...
...
drivers/ide/pci/cmd64x.h
View file @
3c447ef1
...
...
@@ -15,10 +15,6 @@
#define cmdprintk(x...)
#endif
#ifndef SPLIT_BYTE
#define SPLIT_BYTE(B,H,L) ((H)=(B>>4), (L)=(B-((B>>4)<<4)))
#endif
/*
* CMD64x specific registers definition.
*/
...
...
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