ata_platform.h 749 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_ATA_PLATFORM_H
  3. #define __LINUX_ATA_PLATFORM_H
  4. struct pata_platform_info {
  5. /*
  6. * I/O port shift, for platforms with ports that are
  7. * constantly spaced and need larger than the 1-byte
  8. * spacing used by ata_std_ports().
  9. */
  10. unsigned int ioport_shift;
  11. };
  12. struct scsi_host_template;
  13. extern int __pata_platform_probe(struct device *dev,
  14. struct resource *io_res,
  15. struct resource *ctl_res,
  16. struct resource *irq_res,
  17. unsigned int ioport_shift,
  18. int __pio_mask,
  19. struct scsi_host_template *sht,
  20. bool use16bit);
  21. /*
  22. * Marvell SATA private data
  23. */
  24. struct mv_sata_platform_data {
  25. int n_ports; /* number of sata ports */
  26. };
  27. #endif /* __LINUX_ATA_PLATFORM_H */