Andre, We spoke a while back about a GET/SET BUSSTATE API for IDE. Attached is my (very simple) patch adding 2 ioctls, and obsoleting 1. I will send the implementation of this for the HPT370 in a different message. Please let me know if there are any problems with this preventing general inclusion. This patch also includes support for a configurable 'max failures' parameter, and one change for better DMA error reporting. Tim Andre Hedrick wrote: > > Bring it on! ;-) > > On Tue, 27 Mar 2001, Tim Hockin wrote: > > > Andre, > > > > I'm doing some work toward hotswap IDE, and I had a query for you. On > > 2.2.x we added a HDIO_GET_BUSSTATE and HDIO_SET_BUSSTATE ioctl() pair. Now > > I see in 2.4 that there is an HDIO_TRISTATE_HWIF ioctl(), but no way to > > un-tristate or query the status. > > > > Are there plans to add the converse APIs? I see no one has yet implemented > > the HWIF_TRISTATE_BUS ioctl() - would you accept my patch to > > implement the HDIO_{GET,SET}_BUSSTATE, and implementation of it on the > > HPT366 driver? -- Tim Hockin Systems Software Engineer Sun Microsystems, Cobalt Server Appliances thockin@sun.com