2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 19:53:59 +08:00
linux-next/drivers/block
Rusty Russell e467cde238 Block driver using virtio.
The block driver uses scatter-gather lists with sg[0] being the
request information (struct virtio_blk_outhdr) with the type, sector
and inbuf id.  The next N sg entries are the bio itself, then the last
sg is the status byte.  Whether the N entries are in or out depends on
whether it's a read or a write.

We accept the normal (SCSI) ioctls: they get handed through to the other
side which can then handle it or reply that it's unsupported.  It's
not clear that this actually works in general, since I don't know
if blk_pc_request() requests have an accurate rq_data_dir().

Although we try to reply -ENOTTY on unsupported commands, ioctl(fd,
CDROMEJECT) returns success to userspace.  This needs a separate
patch.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jens Axboe <jens.axboe@oracle.com>
2007-10-23 15:49:54 +10:00
..
aoe aoe: remove unecessary wrapper function 2007-10-17 08:42:52 -07:00
paride [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
amiflop.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
ataflop.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
cciss_cmd.h [PATCH] cciss: add support for 1024 logical volumes 2006-12-07 08:39:30 -08:00
cciss_scsi.c [SCSI] cciss: convert to use the data buffer accessors 2007-05-29 11:22:13 -05:00
cciss_scsi.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cciss.c [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
cciss.h [PATCH] cciss: add support for 1024 logical volumes 2006-12-07 08:39:30 -08:00
cpqarray.c [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
cpqarray.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cryptoloop.c [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
DAC960.c [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
DAC960.h Fix DAC960 driver on machines which don't support 64-bit DMA 2007-09-11 17:21:19 -07:00
floppy.c floppy: remove register keyword use from floppy driver 2007-10-17 08:43:03 -07:00
ida_cmd.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ida_ioctl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig Block driver using virtio. 2007-10-23 15:49:54 +10:00
lguest_blk.c Fixup rq_for_each_segment() indentation 2007-10-10 09:25:56 +02:00
loop.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
Makefile Block driver using virtio. 2007-10-23 15:49:54 +10:00
nbd.c remove unused return within void return function 2007-10-20 02:18:21 +02:00
pktcdvd.c pktcdvd: don't rely on bio_init() preserving bio->bi_destructor 2007-10-16 11:05:09 +02:00
ps2esdi.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
ps3disk.c block: convert blkdev_issue_flush() to use empty barriers 2007-10-16 11:05:02 +02:00
rd.c Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
smart1,2.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sunvdc.c [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
swim3.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
sx8.c [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
ub.c [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
umem.c drivers/block/umem: use DRIVER_NAME where appropriate 2007-10-10 09:25:59 +02:00
umem.h drivers/block/umem: trim trailing whitespace 2007-10-10 09:25:59 +02:00
viodasd.c [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
virtio_blk.c Block driver using virtio. 2007-10-23 15:49:54 +10:00
xd.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
xd.h [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
xen-blkfront.c Fixup rq_for_each_segment() indentation 2007-10-10 09:25:56 +02:00
xsysace.c Add missing newlines to some uses of dev_<level> messages 2007-10-18 14:37:28 -07:00
z2ram.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00