~ubuntu-branches/ubuntu/natty/hdparm/natty

« back to all changes in this revision

Viewing changes to sgio.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2010-01-17 18:02:44 UTC
  • mto: (2.1.5 sid)
  • mto: This revision was merged to the branch mainline in revision 31.
  • Revision ID: james.westby@ubuntu.com-20100117180244-p53m2zbnkf9my7sp
Tags: upstream-9.27
ImportĀ upstreamĀ versionĀ 9.27

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#include <linux/types.h>
4
4
 
5
5
enum {
 
6
        ATA_OP_DSM                      = 0x06, // Data Set Management (TRIM)
6
7
        ATA_OP_READ_PIO                 = 0x20,
7
8
        ATA_OP_READ_PIO_ONCE            = 0x21,
8
9
        ATA_OP_READ_LONG                = 0x22,
113
114
        TASKFILE_DPHASE_PIO_OUT = 4,    /* ide: TASKFILE_OUT */
114
115
};
115
116
 
116
 
struct reg_flags {
 
117
union reg_flags {
 
118
        unsigned all                            : 16;
117
119
        union {
118
 
        unsigned lob_all                : 8;
119
 
        struct {
120
 
                unsigned data           : 1;
121
 
                unsigned feat           : 1;
122
 
                unsigned lbal           : 1;
123
 
                unsigned nsect          : 1;
124
 
                unsigned lbam           : 1;
125
 
                unsigned lbah           : 1;
126
 
                unsigned dev            : 1;
127
 
                unsigned command        : 1;
128
 
        } lob;
 
120
                unsigned lob_all                : 8;
 
121
                struct {
 
122
                        unsigned data           : 1;
 
123
                        unsigned feat           : 1;
 
124
                        unsigned lbal           : 1;
 
125
                        unsigned nsect          : 1;
 
126
                        unsigned lbam           : 1;
 
127
                        unsigned lbah           : 1;
 
128
                        unsigned dev            : 1;
 
129
                        unsigned command        : 1;
 
130
                } lob;
129
131
        };
130
132
        union {
131
 
        unsigned hob_all                : 8;
132
 
        struct {
133
 
                unsigned data           : 1;
134
 
                unsigned feat           : 1;
135
 
                unsigned lbal           : 1;
136
 
                unsigned nsect          : 1;
137
 
                unsigned lbam           : 1;
138
 
                unsigned lbah           : 1;
139
 
                unsigned dev            : 1;
140
 
                unsigned command        : 1;
141
 
        } hob;
 
133
                unsigned hob_all                : 8;
 
134
                struct {
 
135
                        unsigned data           : 1;
 
136
                        unsigned feat           : 1;
 
137
                        unsigned lbal           : 1;
 
138
                        unsigned nsect          : 1;
 
139
                        unsigned lbam           : 1;
 
140
                        unsigned lbah           : 1;
 
141
                        unsigned dev            : 1;
 
142
                        unsigned command        : 1;
 
143
                } hob;
142
144
        };
143
145
};
144
146
 
156
158
struct hdio_taskfile {
157
159
        struct taskfile_regs    lob;
158
160
        struct taskfile_regs    hob;
159
 
        struct reg_flags        oflags;
160
 
        struct reg_flags        iflags;
 
161
        union reg_flags         oflags;
 
162
        union reg_flags         iflags;
161
163
        int                     dphase;
162
164
        int                     cmd_req;     /* IDE command_type */
163
165
        unsigned long           obytes;