blob: ff2120215decca77cb0fa1f0fd90c65a54bb2c68 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Saeed Bisharaf351b2d2008-02-01 18:08:03 -05002#ifndef __LINUX_ATA_PLATFORM_H
3#define __LINUX_ATA_PLATFORM_H
Paul Mundta20c9e82006-10-27 19:08:48 -07004
5struct pata_platform_info {
6 /*
7 * I/O port shift, for platforms with ports that are
8 * constantly spaced and need larger than the 1-byte
9 * spacing used by ata_std_ports().
10 */
11 unsigned int ioport_shift;
Paul Mundta20c9e82006-10-27 19:08:48 -070012};
13
Akinobu Mita17263902015-01-29 08:30:30 +090014struct scsi_host_template;
15
Greg Kroah-Hartmane3896232012-12-21 15:15:49 -080016extern int __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,
Akinobu Mita17263902015-01-29 08:30:30 +090021 int __pio_mask,
22 struct scsi_host_template *sht);
Anton Vorontsovcf036132008-01-09 22:10:22 +030023
Saeed Bisharaf351b2d2008-02-01 18:08:03 -050024/*
25 * Marvell SATA private data
26 */
27struct mv_sata_platform_data {
28 int n_ports; /* number of sata ports */
29};
30
31#endif /* __LINUX_ATA_PLATFORM_H */