Commit 97a18d92 authored by Willem Riede's avatar Willem Riede Committed by James Bottomley

[PATCH] osst: remove typedefs

Make style changes that are the equivalent of recent changes to st,
such as using 'struct osst_tape' where we used to have 'OS_Scsi_Tape'
as a typedef. Osst behavior is not affected by this patch.
signed-off-by: default avatarWillem Riede <osst@riede.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 1a832dd5
This diff is collapsed.
/* /*
* $Header: /cvsroot/osst/Driver/osst.h,v 1.14 2003/12/14 14:34:38 wriede Exp $ * $Header: /cvsroot/osst/Driver/osst.h,v 1.16 2005/01/01 21:13:35 wriede Exp $
*/ */
#include <asm/byteorder.h> #include <asm/byteorder.h>
...@@ -508,7 +508,7 @@ typedef struct os_header_s { ...@@ -508,7 +508,7 @@ typedef struct os_header_s {
//#define OSST_MAX_SG 2 //#define OSST_MAX_SG 2
/* The OnStream tape buffer descriptor. */ /* The OnStream tape buffer descriptor. */
typedef struct { struct osst_buffer {
unsigned char in_use; unsigned char in_use;
unsigned char dma; /* DMA-able buffer */ unsigned char dma; /* DMA-able buffer */
int buffer_size; int buffer_size;
...@@ -525,16 +525,16 @@ typedef struct { ...@@ -525,16 +525,16 @@ typedef struct {
unsigned short sg_segs; /* number of segments in s/g list */ 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; } ;
/* The OnStream tape drive descriptor */ /* The OnStream tape drive descriptor */
typedef struct { struct osst_tape {
struct scsi_driver *driver; struct scsi_driver *driver;
unsigned capacity; unsigned capacity;
Scsi_Device* device; Scsi_Device* device;
struct semaphore lock; /* for serialization */ struct semaphore lock; /* for serialization */
struct completion wait; /* for SCSI commands */ struct completion wait; /* for SCSI commands */
OSST_buffer * buffer; struct osst_buffer * buffer;
/* Drive characteristics */ /* Drive characteristics */
unsigned char omit_blklims; unsigned char omit_blklims;
...@@ -623,7 +623,7 @@ typedef struct { ...@@ -623,7 +623,7 @@ typedef struct {
unsigned char last_sense[16]; unsigned char last_sense[16];
#endif #endif
struct gendisk *drive; struct gendisk *drive;
} OS_Scsi_Tape; } ;
/* Values of write_type */ /* Values of write_type */
#define OS_WRITE_DATA 0 #define OS_WRITE_DATA 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment