lkml.org 
[lkml]   [2002]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: IDE/ATAPI in 2.5

As my textual description has not been read, here comes a acsii art
of the proposal for a driver structure:



User programs

----------------------------------------------------------------
----------------------------------------------------------------
| |
| Kernel driver interface |
| |
----------------------------------------------------------------
| |
-------------------------------- ------------------------------
| | | |
| One or more SCSI | | One or more simple |
| target drivers | | Block based drivers |
| e.g. sd.c | | e.g. dsata.c |
| | | |
| | | |
-------------------------------- ------------------------------
| |
| |------------------ Locked when
| | SCSI glue
---------------------------------------------------------------- Interface is
| | | used for a
| | | specific
| SCSI glue layer | Block access glue layer | drive.
| | |
| Will check if target | |
| supports SCSI commands | |
| and lock Block access | |
| layer in this case. | |
| | |
----------------------------------------------------------------
| |
| Low level glue |
| |
----------------------------------------------------------------
| SCSI CDB/IF | SCSI CDB/IF | Block IF
-------------------------------- ------------------------------
| | | |
| | | |
| SCSI HBA driver | | ATA HBA driver |
| | | deals with simple ATA |
| Only supports | | interface and with |
| SCSI CDB interface | | ATA packet interface |
| | | |
| | | |
-------------------------------- ------------------------------


All HBA drivers include DMA setup callback functions to make the
target drivers completely independant from the HW.

Communication for all types of interfaces is HW address cookie
based and done via callback.

Above the glue layer, no knowledge about SCSI disconnect/reconnect
is needed.



Jörg

EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni) If you don't have iso-8859-1
schilling@fokus.gmd.de (work) chars I am J"org Schilling
URL: http://www.fokus.gmd.de/usr/schilling ftp://ftp.fokus.gmd.de/pub/unix
-
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:27    [W:1.259 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site