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
45f841b0
Commit
45f841b0
authored
Nov 23, 2002
by
Willem Riede
Committed by
Doug Ledford
Nov 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osst update
fro Willem Riede.
parent
30950d15
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
498 additions
and
455 deletions
+498
-455
drivers/scsi/osst.c
drivers/scsi/osst.c
+487
-445
drivers/scsi/osst.h
drivers/scsi/osst.h
+11
-10
No files found.
drivers/scsi/osst.c
View file @
45f841b0
This diff is collapsed.
Click to expand it.
drivers/scsi/osst.h
View file @
45f841b0
...
@@ -510,7 +510,7 @@ typedef struct os_header_s {
...
@@ -510,7 +510,7 @@ typedef struct os_header_s {
#define OS_AUX_SIZE (512)
#define OS_AUX_SIZE (512)
//#define OSST_MAX_SG 2
//#define OSST_MAX_SG 2
/* The tape buffer descriptor. */
/* The
OnStream
tape buffer descriptor. */
typedef
struct
{
typedef
struct
{
unsigned
char
in_use
;
unsigned
char
in_use
;
unsigned
char
dma
;
/* DMA-able buffer */
unsigned
char
dma
;
/* DMA-able buffer */
...
@@ -523,14 +523,14 @@ typedef struct {
...
@@ -523,14 +523,14 @@ typedef struct {
int
syscall_result
;
int
syscall_result
;
Scsi_Request
*
last_SRpnt
;
Scsi_Request
*
last_SRpnt
;
unsigned
char
*
b_data
;
unsigned
char
*
b_data
;
os_aux_t
*
aux
;
/* onstream AUX structure at end of each block */
os_aux_t
*
aux
;
/* onstream AUX structure at end of each block
*/
unsigned
short
use_sg
;
/* zero or number of segments for this adapter */
unsigned
short
use_sg
;
/* zero or number of s
/g s
egments for this adapter */
unsigned
short
sg_segs
;
/*
total number of allocated segments
*/
unsigned
short
sg_segs
;
/*
number of segments in s/g list
*/
unsigned
short
orig_sg_segs
;
/* number of segments allocated at first try */
unsigned
short
orig_sg_segs
;
/* number of segments allocated at first try
*/
struct
scatterlist
sg
[
1
];
/* MUST BE last item */
struct
scatterlist
sg
[
1
];
/* MUST BE last item
*/
}
OSST_buffer
;
}
OSST_buffer
;
/* The tape drive descriptor */
/* The
OnStream
tape drive descriptor */
typedef
struct
{
typedef
struct
{
struct
Scsi_Device_Template
*
driver
;
struct
Scsi_Device_Template
*
driver
;
unsigned
capacity
;
unsigned
capacity
;
...
@@ -549,6 +549,7 @@ typedef struct {
...
@@ -549,6 +549,7 @@ typedef struct {
unsigned
char
restr_dma
;
unsigned
char
restr_dma
;
unsigned
char
scsi2_logical
;
unsigned
char
scsi2_logical
;
unsigned
char
default_drvbuffer
;
/* 0xff = don't touch, value 3 bits */
unsigned
char
default_drvbuffer
;
/* 0xff = don't touch, value 3 bits */
unsigned
char
pos_unknown
;
/* after reset position unknown */
int
write_threshold
;
int
write_threshold
;
int
timeout
;
/* timeout for normal commands */
int
timeout
;
/* timeout for normal commands */
int
long_timeout
;
/* timeout for commands known to take long time*/
int
long_timeout
;
/* timeout for commands known to take long time*/
...
@@ -556,10 +557,10 @@ typedef struct {
...
@@ -556,10 +557,10 @@ typedef struct {
/* Mode characteristics */
/* Mode characteristics */
ST_mode
modes
[
ST_NBR_MODES
];
ST_mode
modes
[
ST_NBR_MODES
];
int
current_mode
;
int
current_mode
;
#ifdef CONFIG_DEVFS_FS
devfs_handle_t
de_r
[
ST_NBR_MODES
];
/* Rewind entries */
devfs_handle_t
de_r
[
ST_NBR_MODES
];
/* Rewind entries */
devfs_handle_t
de_n
[
ST_NBR_MODES
];
/* No-rewind entries */
devfs_handle_t
de_n
[
ST_NBR_MODES
];
/* No-rewind entries */
#endif
struct
device
driverfs_dev_r
[
ST_NBR_MODES
];
struct
device
driverfs_dev_n
[
ST_NBR_MODES
];
/* Status variables */
/* Status variables */
int
partition
;
int
partition
;
...
@@ -628,7 +629,7 @@ typedef struct {
...
@@ -628,7 +629,7 @@ typedef struct {
unsigned
char
last_cmnd
[
6
];
unsigned
char
last_cmnd
[
6
];
unsigned
char
last_sense
[
16
];
unsigned
char
last_sense
[
16
];
#endif
#endif
struct
gendisk
*
d
isk
;
struct
gendisk
*
d
rive
;
}
OS_Scsi_Tape
;
}
OS_Scsi_Tape
;
/* Values of write_type */
/* Values of write_type */
...
...
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