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
35124441
Commit
35124441
authored
Dec 16, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[libata] update new geometry code for 2.6.x specifics not present in 2.4
parent
b67b6758
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
drivers/scsi/libata-scsi.c
drivers/scsi/libata-scsi.c
+5
-7
include/linux/libata.h
include/linux/libata.h
+5
-1
No files found.
drivers/scsi/libata-scsi.c
View file @
35124441
...
...
@@ -28,7 +28,6 @@
#include <scsi/scsi.h>
#include "scsi.h"
#include "hosts.h"
#include "sd.h"
#include <linux/libata.h>
#include "libata.h"
...
...
@@ -45,13 +44,12 @@
* RETURNS:
*
*/
int
ata_std_bios_param
(
Disk
*
disk
,
/* SCSI disk */
kdev_t
dev
,
/* Device major, minor */
int
*
ip
/* Heads, sectors, cylinders in that order */
)
int
ata_std_bios_param
(
struct
scsi_device
*
sdev
,
struct
block_device
*
bdev
,
sector_t
capacity
,
int
geom
[])
{
ip
[
0
]
=
255
;
ip
[
1
]
=
63
;
ip
[
2
]
=
disk
->
capacity
/
(
ip
[
0
]
*
ip
[
1
]);
geom
[
0
]
=
255
;
geom
[
1
]
=
63
;
geom
[
2
]
=
capacity
/
(
geom
[
0
]
*
geom
[
1
]);
return
0
;
}
...
...
include/linux/libata.h
View file @
35124441
...
...
@@ -28,6 +28,7 @@
#include <asm/io.h>
#include <linux/ata.h>
/*
* compile-time options
*/
...
...
@@ -171,6 +172,7 @@ enum {
};
/* forward declarations */
struct
scsi_device
;
struct
ata_port_operations
;
struct
ata_port
;
struct
ata_queued_cmd
;
...
...
@@ -427,7 +429,9 @@ extern void ata_bmdma_start_pio (struct ata_queued_cmd *qc);
extern
int
pci_test_config_bits
(
struct
pci_dev
*
pdev
,
struct
pci_bits
*
bits
);
extern
void
ata_qc_complete
(
struct
ata_queued_cmd
*
qc
,
u8
drv_stat
,
unsigned
int
done_late
);
extern
void
ata_eng_timeout
(
struct
ata_port
*
ap
);
extern
int
ata_std_bios_param
(
Disk
*
disk
,
kdev_t
dev
,
int
*
ip
);
extern
int
ata_std_bios_param
(
struct
scsi_device
*
sdev
,
struct
block_device
*
bdev
,
sector_t
capacity
,
int
geom
[]);
static
inline
unsigned
long
msecs_to_jiffies
(
unsigned
long
msecs
)
...
...
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