Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX_ATA_PLATFORM_H
0003 #define __LINUX_ATA_PLATFORM_H
0004 
0005 struct pata_platform_info {
0006     /*
0007      * I/O port shift, for platforms with ports that are
0008      * constantly spaced and need larger than the 1-byte
0009      * spacing used by ata_std_ports().
0010      */
0011     unsigned int ioport_shift;
0012 };
0013 
0014 struct scsi_host_template;
0015 
0016 extern int __pata_platform_probe(struct device *dev,
0017                  struct resource *io_res,
0018                  struct resource *ctl_res,
0019                  struct resource *irq_res,
0020                  unsigned int ioport_shift,
0021                  int __pio_mask,
0022                  struct scsi_host_template *sht,
0023                  bool use16bit);
0024 
0025 /*
0026  * Marvell SATA private data
0027  */
0028 struct mv_sata_platform_data {
0029     int n_ports; /* number of sata ports */
0030 };
0031 
0032 #endif /* __LINUX_ATA_PLATFORM_H */