~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to arch/powerpc/include/asm/mediabay.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno, Martin Michlmayr
  • Date: 2011-04-06 13:53:30 UTC
  • mfrom: (43.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110406135330-wjufxhd0tvn3zx4z
Tags: 2.6.38-3
[ Ben Hutchings ]
* [ppc64] Add to linux-tools package architectures (Closes: #620124)
* [amd64] Save cr4 to mmu_cr4_features at boot time (Closes: #620284)
* appletalk: Fix bugs introduced when removing use of BKL
* ALSA: Fix yet another race in disconnection
* cciss: Fix lost command issue
* ath9k: Fix kernel panic in AR2427
* ses: Avoid kernel panic when lun 0 is not mapped
* PCI/ACPI: Report ASPM support to BIOS if not disabled from command line

[ Aurelien Jarno ]
* rtlwifi: fix build when PCI is not enabled.

[ Martin Michlmayr ]
* rtlwifi: Eliminate udelay calls with too large values (Closes: #620204)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#define MB_POWER        6       /* media bay contains a Power device (???) */
18
18
#define MB_NO           7       /* media bay contains nothing */
19
19
 
20
 
/* Number of bays in the machine or 0 */
21
 
extern int media_bay_count;
22
 
 
23
 
#ifdef CONFIG_BLK_DEV_IDE_PMAC
24
 
#include <linux/ide.h>
25
 
 
26
 
int check_media_bay_by_base(unsigned long base, int what);
27
 
/* called by IDE PMAC host driver to register IDE controller for media bay */
28
 
int media_bay_set_ide_infos(struct device_node *which_bay, unsigned long base,
29
 
                            int irq, ide_hwif_t *hwif);
30
 
 
31
 
int check_media_bay(struct device_node *which_bay, int what);
 
20
struct macio_dev;
 
21
 
 
22
#ifdef CONFIG_PMAC_MEDIABAY
 
23
 
 
24
/* Check the content type of the bay, returns MB_NO if the bay is still
 
25
 * transitionning
 
26
 */
 
27
extern int check_media_bay(struct macio_dev *bay);
 
28
 
 
29
/* The ATA driver uses the calls below to temporarily hold on the
 
30
 * media bay callbacks while initializing the interface
 
31
 */
 
32
extern void lock_media_bay(struct macio_dev *bay);
 
33
extern void unlock_media_bay(struct macio_dev *bay);
32
34
 
33
35
#else
34
36
 
35
 
static inline int check_media_bay(struct device_node *which_bay, int what)
 
37
static inline int check_media_bay(struct macio_dev *bay)
36
38
{
37
 
        return -ENODEV;
 
39
        return MB_NO;
38
40
}
39
41
 
 
42
static inline void lock_media_bay(struct macio_dev *bay) { }
 
43
static inline void unlock_media_bay(struct macio_dev *bay) { }
 
44
 
40
45
#endif
41
46
 
42
47
#endif /* __KERNEL__ */