diff options
author | Borislav Petkov <bbpetkov@yahoo.de> | 2008-02-02 13:56:50 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-02 13:56:50 -0500 |
commit | 860ff5ecbf352ee7a97685bf01fcd91f44b0ac72 (patch) | |
tree | 5a3953af5714f86b24336ef1ddbdbb0a42b025c8 /drivers | |
parent | 4278c2d5ba867f427d823e31947a6fb97508a1ce (diff) |
ide-tape: use generic byteorder macros
This is not a network driver.
Signed-off-by: Borislav Petkov <bbpetkov@yahoo.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/ide-tape.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 502ca06bcc08..620cba04b1b5 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -812,7 +812,7 @@ static void idetape_analyze_error(ide_drive_t *drive, u8 *sense) | |||
812 | if (test_bit(PC_DMA_ERROR, &pc->flags)) { | 812 | if (test_bit(PC_DMA_ERROR, &pc->flags)) { |
813 | pc->actually_transferred = pc->request_transfer - | 813 | pc->actually_transferred = pc->request_transfer - |
814 | tape->tape_block_size * | 814 | tape->tape_block_size * |
815 | ntohl(get_unaligned((u32 *)&sense[3])); | 815 | be32_to_cpu(get_unaligned((u32 *)&sense[3])); |
816 | idetape_update_buffers(pc); | 816 | idetape_update_buffers(pc); |
817 | } | 817 | } |
818 | 818 | ||
@@ -1679,7 +1679,7 @@ static void idetape_create_read_cmd(idetape_tape_t *tape, idetape_pc_t *pc, unsi | |||
1679 | { | 1679 | { |
1680 | idetape_init_pc(pc); | 1680 | idetape_init_pc(pc); |
1681 | pc->c[0] = READ_6; | 1681 | pc->c[0] = READ_6; |
1682 | put_unaligned(htonl(length), (unsigned int *) &pc->c[1]); | 1682 | put_unaligned(cpu_to_be32(length), (unsigned int *) &pc->c[1]); |
1683 | pc->c[1] = 1; | 1683 | pc->c[1] = 1; |
1684 | pc->callback = &idetape_rw_callback; | 1684 | pc->callback = &idetape_rw_callback; |
1685 | pc->bh = bh; | 1685 | pc->bh = bh; |
@@ -1715,7 +1715,7 @@ static void idetape_create_write_cmd(idetape_tape_t *tape, idetape_pc_t *pc, uns | |||
1715 | { | 1715 | { |
1716 | idetape_init_pc(pc); | 1716 | idetape_init_pc(pc); |
1717 | pc->c[0] = WRITE_6; | 1717 | pc->c[0] = WRITE_6; |
1718 | put_unaligned(htonl(length), (unsigned int *) &pc->c[1]); | 1718 | put_unaligned(cpu_to_be32(length), (unsigned int *) &pc->c[1]); |
1719 | pc->c[1] = 1; | 1719 | pc->c[1] = 1; |
1720 | pc->callback = &idetape_rw_callback; | 1720 | pc->callback = &idetape_rw_callback; |
1721 | set_bit(PC_WRITING, &pc->flags); | 1721 | set_bit(PC_WRITING, &pc->flags); |
@@ -2263,7 +2263,7 @@ static void idetape_create_locate_cmd (ide_drive_t *drive, idetape_pc_t *pc, uns | |||
2263 | idetape_init_pc(pc); | 2263 | idetape_init_pc(pc); |
2264 | pc->c[0] = POSITION_TO_ELEMENT; | 2264 | pc->c[0] = POSITION_TO_ELEMENT; |
2265 | pc->c[1] = 2; | 2265 | pc->c[1] = 2; |
2266 | put_unaligned(htonl(block), (unsigned int *) &pc->c[3]); | 2266 | put_unaligned(cpu_to_be32(block), (unsigned int *) &pc->c[3]); |
2267 | pc->c[8] = partition; | 2267 | pc->c[8] = partition; |
2268 | set_bit(PC_WAIT_FOR_DSC, &pc->flags); | 2268 | set_bit(PC_WAIT_FOR_DSC, &pc->flags); |
2269 | pc->callback = &idetape_pc_callback; | 2269 | pc->callback = &idetape_pc_callback; |
@@ -2455,7 +2455,7 @@ static void idetape_create_space_cmd (idetape_pc_t *pc,int count, u8 cmd) | |||
2455 | { | 2455 | { |
2456 | idetape_init_pc(pc); | 2456 | idetape_init_pc(pc); |
2457 | pc->c[0] = SPACE; | 2457 | pc->c[0] = SPACE; |
2458 | put_unaligned(htonl(count), (unsigned int *) &pc->c[1]); | 2458 | put_unaligned(cpu_to_be32(count), (unsigned int *) &pc->c[1]); |
2459 | pc->c[1] = cmd; | 2459 | pc->c[1] = cmd; |
2460 | set_bit(PC_WAIT_FOR_DSC, &pc->flags); | 2460 | set_bit(PC_WAIT_FOR_DSC, &pc->flags); |
2461 | pc->callback = &idetape_pc_callback; | 2461 | pc->callback = &idetape_pc_callback; |