lkml.org 
[lkml]   [2003]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[RFC]: Changes to ide_task_request

Seagate has been kind enough to tell me how to update the firmware on
their drives (under NDA of course). I believe adding a timeout field, a
recovery time field and an error handling field to ide_task_request_t
(and of course appropriate kernel handling code) would be enough to
allow a userspace program to update the drive firmware. I am hoping
that if I write such a program and send the source back to Seagate that
they will support it. I'm also hoping that the other manufacturers
firmware update methods are similiar enough to be handled by the same
system.

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/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.021 / U:23.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site