Blame view

include/linux/ahci_platform.h 893 Bytes
1c2a49f61   Anton Vorontsov   ahci: Add platfor...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  /*
   * AHCI SATA platform driver
   *
   * Copyright 2004-2005  Red Hat, Inc.
   *   Jeff Garzik <jgarzik@pobox.com>
   * Copyright 2010  MontaVista Software, LLC.
   *   Anton Vorontsov <avorontsov@ru.mvista.com>
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation; either version 2, or (at your option)
   * any later version.
   */
  
  #ifndef _AHCI_PLATFORM_H
  #define _AHCI_PLATFORM_H
08354809d   Jassi Brar   ahci_platform: Pr...
17
  #include <linux/compiler.h>
1c2a49f61   Anton Vorontsov   ahci: Add platfor...
18
19
20
21
  struct device;
  struct ata_port_info;
  
  struct ahci_platform_data {
08354809d   Jassi Brar   ahci_platform: Pr...
22
  	int (*init)(struct device *dev, void __iomem *addr);
1c2a49f61   Anton Vorontsov   ahci: Add platfor...
23
  	void (*exit)(struct device *dev);
17ab594fa   Brian Norris   ahci: platform su...
24
25
  	int (*suspend)(struct device *dev);
  	int (*resume)(struct device *dev);
1c2a49f61   Anton Vorontsov   ahci: Add platfor...
26
27
28
29
30
31
  	const struct ata_port_info *ata_port_info;
  	unsigned int force_port_map;
  	unsigned int mask_port_map;
  };
  
  #endif /* _AHCI_PLATFORM_H */