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
d567aa42
Commit
d567aa42
authored
Jan 10, 2004
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SCSI: atp870u update
From: Zwane Mwaikambo <zwane@arm.linux.org.uk>
parent
7f3999c8
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
378 additions
and
331 deletions
+378
-331
drivers/scsi/atp870u.c
drivers/scsi/atp870u.c
+332
-323
drivers/scsi/atp870u.h
drivers/scsi/atp870u.h
+46
-8
No files found.
drivers/scsi/atp870u.c
View file @
d567aa42
This diff is collapsed.
Click to expand it.
drivers/scsi/atp870u.h
View file @
d567aa42
#ifndef _ATP870U_H
#define _ATP870U_H
/* $Id: atp870u.h,v 1.0 1997/05/07 15:09:00 root Exp root $
...
...
@@ -16,18 +17,55 @@
#define MAX_CDB 12
#define MAX_SENSE 14
#define qcnt 32
#define ATP870U_SCATTER 128
#define ATP870U_CMDLUN 1
struct
atp_unit
{
unsigned
long
ioport
;
unsigned
long
pciport
;
unsigned
char
last_cmd
;
unsigned
char
in_snd
;
unsigned
char
in_int
;
unsigned
char
quhdu
;
unsigned
char
quendu
;
unsigned
char
scam_on
;
unsigned
char
global_map
;
unsigned
char
chip_veru
;
unsigned
char
host_idu
;
volatile
int
working
;
unsigned
short
wide_idu
;
unsigned
short
active_idu
;
unsigned
short
ultra_map
;
unsigned
short
async
;
unsigned
short
deviceid
;
unsigned
char
ata_cdbu
[
16
];
unsigned
char
sp
[
16
];
Scsi_Cmnd
*
querequ
[
qcnt
];
struct
atp_id
{
unsigned
char
dirctu
;
unsigned
char
devspu
;
unsigned
char
devtypeu
;
unsigned
long
prdaddru
;
unsigned
long
tran_lenu
;
unsigned
long
last_lenu
;
unsigned
char
*
prd_posu
;
unsigned
char
*
prd_tableu
;
dma_addr_t
prd_phys
;
Scsi_Cmnd
*
curr_req
;
}
id
[
16
];
struct
Scsi_Host
*
host
;
struct
pci_dev
*
pdev
;
unsigned
int
unit
;
};
static
int
atp870u_detect
(
Scsi_Host_Template
*
);
static
int
atp870u_queuecommand
(
Scsi_Cmnd
*
,
void
(
*
done
)
(
Scsi_Cmnd
*
));
static
int
atp870u_abort
(
Scsi_Cmnd
*
);
static
int
atp870u_biosparam
(
struct
scsi_device
*
,
struct
block_device
*
,
sector_t
,
int
*
);
static
int
atp870u_release
(
struct
Scsi_Host
*
);
#define qcnt 32
#define ATP870U_SCATTER 128
#define ATP870U_CMDLUN 1
static
void
send_s870
(
struct
Scsi_Host
*
);
extern
const
char
*
atp870u_info
(
struct
Scsi_Host
*
);
static
Scsi_Host_Template
atp870u_template
;
#endif
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