ata_platform.h 842 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __LINUX_ATA_PLATFORM_H
  2. #define __LINUX_ATA_PLATFORM_H
  3. struct pata_platform_info {
  4. /*
  5. * I/O port shift, for platforms with ports that are
  6. * constantly spaced and need larger than the 1-byte
  7. * spacing used by ata_std_ports().
  8. */
  9. unsigned int ioport_shift;
  10. /*
  11. * Indicate platform specific irq types and initial
  12. * IRQ flags when call request_irq()
  13. */
  14. unsigned int irq_flags;
  15. };
  16. extern int __devinit __pata_platform_probe(struct device *dev,
  17. struct resource *io_res,
  18. struct resource *ctl_res,
  19. struct resource *irq_res,
  20. unsigned int ioport_shift,
  21. int __pio_mask);
  22. extern int __devexit __pata_platform_remove(struct device *dev);
  23. /*
  24. * Marvell SATA private data
  25. */
  26. struct mv_sata_platform_data {
  27. int n_ports; /* number of sata ports */
  28. };
  29. #endif /* __LINUX_ATA_PLATFORM_H */