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
5766fa80
Commit
5766fa80
authored
Oct 29, 2004
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ide] hpt34x: kill hpt34x.h
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
20a15593
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
32 deletions
+14
-32
drivers/ide/pci/hpt34x.c
drivers/ide/pci/hpt34x.c
+14
-3
drivers/ide/pci/hpt34x.h
drivers/ide/pci/hpt34x.h
+0
-29
No files found.
drivers/ide/pci/hpt34x.c
View file @
5766fa80
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
#include <asm/io.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/irq.h>
#
include "hpt34x.h"
#
define HPT343_DEBUG_DRIVE_INFO 0
static
u8
hpt34x_ratemask
(
ide_drive_t
*
drive
)
static
u8
hpt34x_ratemask
(
ide_drive_t
*
drive
)
{
{
...
@@ -69,7 +69,8 @@ static int hpt34x_tune_chipset (ide_drive_t *drive, u8 xferspeed)
...
@@ -69,7 +69,8 @@ static int hpt34x_tune_chipset (ide_drive_t *drive, u8 xferspeed)
u32
reg1
=
0
,
tmp1
=
0
,
reg2
=
0
,
tmp2
=
0
;
u32
reg1
=
0
,
tmp1
=
0
,
reg2
=
0
,
tmp2
=
0
;
u8
hi_speed
,
lo_speed
;
u8
hi_speed
,
lo_speed
;
SPLIT_BYTE
(
speed
,
hi_speed
,
lo_speed
);
hi_speed
=
speed
>>
4
;
lo_speed
=
speed
&
0x0f
;
if
(
hi_speed
&
7
)
{
if
(
hi_speed
&
7
)
{
hi_speed
=
(
hi_speed
&
4
)
?
0x01
:
0x10
;
hi_speed
=
(
hi_speed
&
4
)
?
0x01
:
0x10
;
...
@@ -229,9 +230,19 @@ static void __devinit init_hwif_hpt34x(ide_hwif_t *hwif)
...
@@ -229,9 +230,19 @@ static void __devinit init_hwif_hpt34x(ide_hwif_t *hwif)
hwif
->
drives
[
1
].
autodma
=
hwif
->
autodma
;
hwif
->
drives
[
1
].
autodma
=
hwif
->
autodma
;
}
}
static
ide_pci_device_t
hpt34x_chipset
__devinitdata
=
{
.
name
=
"HPT34X"
,
.
init_chipset
=
init_chipset_hpt34x
,
.
init_hwif
=
init_hwif_hpt34x
,
.
channels
=
2
,
.
autodma
=
NOAUTODMA
,
.
bootable
=
NEVER_BOARD
,
.
extra
=
16
};
static
int
__devinit
hpt34x_init_one
(
struct
pci_dev
*
dev
,
const
struct
pci_device_id
*
id
)
static
int
__devinit
hpt34x_init_one
(
struct
pci_dev
*
dev
,
const
struct
pci_device_id
*
id
)
{
{
ide_pci_device_t
*
d
=
&
hpt34x_chipset
s
[
id
->
driver_data
]
;
ide_pci_device_t
*
d
=
&
hpt34x_chipset
;
static
char
*
chipset_names
[]
=
{
"HPT343"
,
"HPT345"
};
static
char
*
chipset_names
[]
=
{
"HPT343"
,
"HPT345"
};
u16
pcicmd
=
0
;
u16
pcicmd
=
0
;
...
...
drivers/ide/pci/hpt34x.h
deleted
100644 → 0
View file @
20a15593
#ifndef HPT34X_H
#define HPT34X_H
#include <linux/config.h>
#include <linux/pci.h>
#include <linux/ide.h>
#define HPT343_DEBUG_DRIVE_INFO 0
#ifndef SPLIT_BYTE
#define SPLIT_BYTE(B,H,L) ((H)=(B>>4), (L)=(B-((B>>4)<<4)))
#endif
static
unsigned
int
init_chipset_hpt34x
(
struct
pci_dev
*
,
const
char
*
);
static
void
init_hwif_hpt34x
(
ide_hwif_t
*
);
static
ide_pci_device_t
hpt34x_chipsets
[]
__devinitdata
=
{
{
/* 0 */
.
name
=
"HPT34X"
,
.
init_chipset
=
init_chipset_hpt34x
,
.
init_hwif
=
init_hwif_hpt34x
,
.
channels
=
2
,
.
autodma
=
NOAUTODMA
,
.
bootable
=
NEVER_BOARD
,
.
extra
=
16
}
};
#endif
/* HPT34X_H */
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