I'd like to make the following changes to hdreg.h:
#define ERROR_IGNORE 0 /* Just ignore it. */
#define ERROR_NORMAL 1 /* Just call the device error handler */
#define ERROR_SRST 2 /* Just do an SRST */
#define ERROR_RETRY_ONCE 3 /* Retry Once */
#define ERROR_RETRY 4 /* Retry until it suceedes. */
.
.
.
typedef struct ide_task_request_s {
task_ioreg_t io_ports[8];
task_ioreg_t hob_ports[8];
ide_reg_valid_t out_flags;
ide_reg_valid_t in_flags;
int data_phase;
int req_cmd;
unsigned long out_size;
unsigned long in_size;
int timeout; /* How long in HZ to wait for the
command to complete. */
int recovery_time; /* How long in HZ to wait after
command completion or an error
before issuing a new command. */
int error_handling;
} ide_task_request_t;
I chose HZ instead of microseconds for the timeouts because I envision a
kernel specific shared library that does the translatation and actual
ioctl and HZ should make the kernel side of things a bit easier.
Ross
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/