Merge branch 'master'
authorJeff Garzik <jgarzik@pobox.com>
Fri, 28 Oct 2005 16:31:34 +0000 (12:31 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 28 Oct 2005 16:31:34 +0000 (12:31 -0400)
1  2 
drivers/scsi/libata-scsi.c
drivers/scsi/libata.h

  
  #include "libata.h"
  
- typedef unsigned int (*ata_xlat_func_t)(struct ata_queued_cmd *qc, u8 *scsicmd);
 +#define SECTOR_SIZE   512
 +
+ typedef unsigned int (*ata_xlat_func_t)(struct ata_queued_cmd *qc, const u8 *scsicmd);
  static struct ata_device *
- ata_scsi_find_dev(struct ata_port *ap, struct scsi_device *scsidev);
+ ata_scsi_find_dev(struct ata_port *ap, const struct scsi_device *scsidev);
  
  
  static void ata_scsi_invalid_field(struct scsi_cmnd *cmd,
@@@ -48,10 -48,8 +48,10 @@@ extern int ata_qc_issue(struct ata_queu
  extern int ata_check_atapi_dma(struct ata_queued_cmd *qc);
  extern void ata_dev_select(struct ata_port *ap, unsigned int device,
                             unsigned int wait, unsigned int can_sleep);
- extern void ata_tf_to_host_nolock(struct ata_port *ap, struct ata_taskfile *tf);
+ extern void ata_tf_to_host_nolock(struct ata_port *ap, const struct ata_taskfile *tf);
  extern void swap_buf_le16(u16 *buf, unsigned int buf_words);
 +extern int ata_task_ioctl(struct scsi_device *scsidev, void __user *arg);
 +extern int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg);
  
  
  /* libata-scsi.c */