Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

aoe: WIN_* -> ATA_CMD_*

* Use ATA_CMD_* defines instead of WIN_* ones.

* Include <linux/ata.h> directly instead of through <linux/hdreg.h>.

Cc: Ed L. Cashin <ecashin@coraid.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

+12 -11
+12 -11
drivers/block/aoe/aoecmd.c
··· 4 4 * Filesystem request handling methods 5 5 */ 6 6 7 + #include <linux/ata.h> 7 8 #include <linux/hdreg.h> 8 9 #include <linux/blkdev.h> 9 10 #include <linux/skbuff.h> ··· 268 267 writebit = 0; 269 268 } 270 269 271 - ah->cmdstat = WIN_READ | writebit | extbit; 270 + ah->cmdstat = ATA_CMD_PIO_READ | writebit | extbit; 272 271 273 272 /* mark all tracking fields and load out */ 274 273 buf->nframesout += 1; ··· 363 362 switch (ah->cmdstat) { 364 363 default: 365 364 break; 366 - case WIN_READ: 367 - case WIN_READ_EXT: 368 - case WIN_WRITE: 369 - case WIN_WRITE_EXT: 365 + case ATA_CMD_PIO_READ: 366 + case ATA_CMD_PIO_READ_EXT: 367 + case ATA_CMD_PIO_WRITE: 368 + case ATA_CMD_PIO_WRITE_EXT: 370 369 put_lba(ah, f->lba); 371 370 372 371 n = f->bcnt; ··· 813 812 d->htgt = NULL; 814 813 n = ahout->scnt << 9; 815 814 switch (ahout->cmdstat) { 816 - case WIN_READ: 817 - case WIN_READ_EXT: 815 + case ATA_CMD_PIO_READ: 816 + case ATA_CMD_PIO_READ_EXT: 818 817 if (skb->len - sizeof *hin - sizeof *ahin < n) { 819 818 printk(KERN_ERR 820 819 "aoe: %s. skb->len=%d need=%ld\n", ··· 824 823 return; 825 824 } 826 825 memcpy(f->bufaddr, ahin+1, n); 827 - case WIN_WRITE: 828 - case WIN_WRITE_EXT: 826 + case ATA_CMD_PIO_WRITE: 827 + case ATA_CMD_PIO_WRITE_EXT: 829 828 ifp = getif(t, skb->dev); 830 829 if (ifp) { 831 830 ifp->lost = 0; ··· 839 838 goto xmit; 840 839 } 841 840 break; 842 - case WIN_IDENTIFY: 841 + case ATA_CMD_ID_ATA: 843 842 if (skb->len - sizeof *hin - sizeof *ahin < 512) { 844 843 printk(KERN_INFO 845 844 "aoe: runt data size in ataid. skb->len=%d\n", ··· 915 914 916 915 /* set up ata header */ 917 916 ah->scnt = 1; 918 - ah->cmdstat = WIN_IDENTIFY; 917 + ah->cmdstat = ATA_CMD_ID_ATA; 919 918 ah->lba3 = 0xa0; 920 919 921 920 skb->dev = t->ifp->nd;