~ubuntu-branches/ubuntu/saucy/hdparm/saucy

« back to all changes in this revision

Viewing changes to sgio.h

  • Committer: Steve Langasek
  • Date: 2012-10-25 03:08:04 UTC
  • mfrom: (1.2.2)
  • mto: This revision was merged to the branch mainline in revision 48.
  • Revision ID: steve.langasek@canonical.com-20121025030804-152nqahuv596891y
Prepared upstream tree for merging into target branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        ATA_OP_SECURITY_ERASE_UNIT      = 0xf4,
55
55
        ATA_OP_SECURITY_FREEZE_LOCK     = 0xf5,
56
56
        ATA_OP_SECURITY_DISABLE         = 0xf6,
 
57
        ATA_OP_VENDOR_SPECIFIC_0x80     = 0x80,
57
58
};
58
59
 
59
60
/*
114
115
        TASKFILE_DPHASE_PIO_OUT = 4,    /* ide: TASKFILE_OUT */
115
116
};
116
117
 
117
 
struct reg_flags {
 
118
union reg_flags {
 
119
        unsigned all                            :16;
118
120
        union {
119
121
                unsigned lob_all                : 8;
120
122
                struct {
141
143
                        unsigned command        : 1;
142
144
                } hob;
143
145
        };
144
 
};
 
146
} __attribute__((packed));
145
147
 
146
148
struct taskfile_regs {
147
149
        __u8    data;
157
159
struct hdio_taskfile {
158
160
        struct taskfile_regs    lob;
159
161
        struct taskfile_regs    hob;
160
 
        struct reg_flags        oflags;
161
 
        struct reg_flags        iflags;
 
162
        union reg_flags         oflags;
 
163
        union reg_flags         iflags;
162
164
        int                     dphase;
163
165
        int                     cmd_req;     /* IDE command_type */
164
166
        unsigned long           obytes;