summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/mediabay.h
blob: 85146e69ae8994210daf64973d4d06374fe75b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * mediabay.h: definitions for using the media bay
 * on PowerBook 3400 and similar computers.
 *
 * Copyright (C) 1997 Paul Mackerras.
 */
#ifndef _PPC_MEDIABAY_H
#define _PPC_MEDIABAY_H

#define MB_FD	0		/* media bay contains floppy drive */
#define MB_CD	3		/* media bay contains ATA drive such as CD */
#define MB_NO	7		/* media bay contains nothing */

#ifdef __KERNEL__

void media_bay_init(void);
int check_media_bay(int what);
int media_bay_task(void *);

extern int media_bay_present;	/* 1 if this machine has a media bay */

/*
 * The following give information about the IDE interface
 * of the media bay: the base virtual address and IRQ number,
 * and the index that the IDE driver has assigned to it
 * (or -1 if it is not currently registered with the driver).
 */
extern unsigned long mb_cd_base;
extern int mb_cd_irq;
extern int mb_cd_index;

#endif /* __KERNEL__ */
#endif /* _PPC_MEDIABAY_H */