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
b271c6b2
Commit
b271c6b2
authored
Jan 10, 2003
by
Alan Cox
Committed by
Linus Torvalds
Jan 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix 64bit cleanness in promise ide
parent
ba59777f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
drivers/ide/pci/pdc202xx_new.c
drivers/ide/pci/pdc202xx_new.c
+3
-3
drivers/ide/pci/pdc202xx_old.c
drivers/ide/pci/pdc202xx_old.c
+9
-9
No files found.
drivers/ide/pci/pdc202xx_new.c
View file @
b271c6b2
...
...
@@ -237,11 +237,11 @@ static int pdcnew_tune_chipset (ide_drive_t *drive, u8 xferspeed)
static
int
pdcnew_new_tune_chipset
(
ide_drive_t
*
drive
,
u8
xferspeed
)
{
ide_hwif_t
*
hwif
=
HWIF
(
drive
);
u
32
indexreg
=
hwif
->
dma_vendor1
;
u
32
datareg
=
hwif
->
dma_vendor3
;
u
nsigned
long
indexreg
=
hwif
->
dma_vendor1
;
u
nsigned
long
datareg
=
hwif
->
dma_vendor3
;
u8
thold
=
0x10
;
u8
adj
=
(
drive
->
dn
%
2
)
?
0x08
:
0x00
;
u8
speed
=
ide_rate_filter
(
pdcnew_ratemask
(
drive
),
xferspeed
);
u8
speed
=
ide_rate_filter
(
pdcnew_ratemask
(
drive
),
xferspeed
);
if
(
speed
==
XFER_UDMA_2
)
{
hwif
->
OUTB
((
thold
+
adj
),
indexreg
);
...
...
drivers/ide/pci/pdc202xx_old.c
View file @
b271c6b2
...
...
@@ -64,7 +64,7 @@ static char * pdc202xx_info (char *buf, struct pci_dev *dev)
{
char
*
p
=
buf
;
u
32
bibma
=
pci_resource_start
(
dev
,
4
);
u
nsigned
long
bibma
=
pci_resource_start
(
dev
,
4
);
u32
reg60h
=
0
,
reg64h
=
0
,
reg68h
=
0
,
reg6ch
=
0
;
u16
reg50h
=
0
,
pmask
=
(
1
<<
10
),
smask
=
(
1
<<
11
);
u8
hi
=
0
,
lo
=
0
;
...
...
@@ -535,9 +535,9 @@ static int pdc202xx_old_ide_dma_begin(ide_drive_t *drive)
struct
request
*
rq
=
HWGROUP
(
drive
)
->
rq
;
ide_hwif_t
*
hwif
=
HWIF
(
drive
);
// struct pci_dev *dev = hwif->pci_dev;
// u
32
high_16 = pci_resource_start(dev, 4);
u
32
high_16
=
hwif
->
dma_master
;
u
32
atapi_reg
=
high_16
+
(
hwif
->
channel
?
0x24
:
0x20
);
// u
nsgned long
high_16 = pci_resource_start(dev, 4);
u
nsigned
long
high_16
=
hwif
->
dma_master
;
u
nsigned
long
atapi_reg
=
high_16
+
(
hwif
->
channel
?
0x24
:
0x20
);
u32
word_count
=
0
;
u8
clock
=
hwif
->
INB
(
high_16
+
0x11
);
...
...
@@ -555,10 +555,10 @@ static int pdc202xx_old_ide_dma_end(ide_drive_t *drive)
{
if
(
drive
->
addressing
==
1
)
{
ide_hwif_t
*
hwif
=
HWIF
(
drive
);
// u
32
high_16 = pci_resource_start(hwif->pci_dev, 4);
u
32
high_16
=
hwif
->
dma_master
;
u
32
atapi_reg
=
high_16
+
(
hwif
->
channel
?
0x24
:
0x20
);
u8
clock
=
0
;
// u
nsigned long
high_16 = pci_resource_start(hwif->pci_dev, 4);
u
nsigned
long
high_16
=
hwif
->
dma_master
;
u
nsigned
long
atapi_reg
=
high_16
+
(
hwif
->
channel
?
0x24
:
0x20
);
u8
clock
=
0
;
hwif
->
OUTL
(
0
,
atapi_reg
);
/* zero out extra */
clock
=
hwif
->
INB
(
high_16
+
0x11
);
...
...
@@ -572,7 +572,7 @@ static int pdc202xx_old_ide_dma_test_irq(ide_drive_t *drive)
ide_hwif_t
*
hwif
=
HWIF
(
drive
);
// struct pci_dev *dev = hwif->pci_dev;
// unsigned long high_16 = pci_resource_start(dev, 4);
u
32
high_16
=
hwif
->
dma_master
;
u
nsigned
long
high_16
=
hwif
->
dma_master
;
u8
dma_stat
=
hwif
->
INB
(
hwif
->
dma_status
);
u8
sc1d
=
hwif
->
INB
((
high_16
+
0x001d
));
...
...
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