Date: Sun, 9 Aug 2009 21:41:23 GMT From: Alexander Motin <mav@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 167142 for review Message-ID: <200908092141.n79LfNBk008199@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=167142 Change 167142 by mav@mav_mavbook on 2009/08/09 21:40:48 Mark DMA commands with special flag. Affected files ... .. //depot/projects/scottl-camlock/src/sys/cam/ata/ata_all.c#14 edit .. //depot/projects/scottl-camlock/src/sys/cam/ata/ata_all.h#14 edit Differences ... ==== //depot/projects/scottl-camlock/src/sys/cam/ata/ata_all.c#14 (text+ko) ==== @@ -96,6 +96,11 @@ { bzero(&ataio->cmd, sizeof(ataio->cmd)); ataio->cmd.flags = 0; + if (cmd == ATA_READ_DMA || + cmd == ATA_READ_DMA_QUEUED || + cmd == ATA_WRITE_DMA || + cmd == ATA_WRITE_DMA_QUEUED) + ataio->cmd.flags |= CAM_ATAIO_DMA; ataio->cmd.command = cmd; ataio->cmd.features = features; ataio->cmd.lba_low = lba; @@ -111,6 +116,11 @@ { bzero(&ataio->cmd, sizeof(ataio->cmd)); ataio->cmd.flags = CAM_ATAIO_48BIT; + if (cmd == ATA_READ_DMA48 || + cmd == ATA_READ_DMA_QUEUED48 || + cmd == ATA_WRITE_DMA48 || + cmd == ATA_WRITE_DMA_QUEUED48) + ataio->cmd.flags |= CAM_ATAIO_DMA; ataio->cmd.command = cmd; ataio->cmd.features = features; ataio->cmd.lba_low = lba; ==== //depot/projects/scottl-camlock/src/sys/cam/ata/ata_all.h#14 (text+ko) ==== @@ -41,6 +41,7 @@ #define CAM_ATAIO_FPDMA 0x02 /* FPDMA command */ #define CAM_ATAIO_CONTROL 0x04 /* Control, not a command */ #define CAM_ATAIO_NEEDRESULT 0x08 /* Request requires result. */ +#define CAM_ATAIO_DMA 0x10 /* DMA command */ u_int8_t command; u_int8_t features;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908092141.n79LfNBk008199>