xref: /openbmc/linux/arch/alpha/kernel/pc873xx.h (revision 7effbd18)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef _PC873xx_H_
4 #define _PC873xx_H_
5 
6 /*
7  * Control Register Values
8  */
9 #define REG_FER	0x00
10 #define REG_FAR	0x01
11 #define REG_PTR	0x02
12 #define REG_FCR	0x03
13 #define REG_PCR	0x04
14 #define REG_KRR	0x05
15 #define REG_PMC	0x06
16 #define REG_TUP	0x07
17 #define REG_SID	0x08
18 #define REG_ASC	0x09
19 #define REG_IRC	0x0e
20 
21 /*
22  * Model numbers
23  */
24 #define PC87303	0
25 #define PC87306	1
26 #define PC87312	2
27 #define PC87332	3
28 #define PC87334	4
29 
30 int pc873xx_probe(void);
31 unsigned int pc873xx_get_base(void);
32 char *pc873xx_get_model(void);
33 void pc873xx_enable_epp19(void);
34 void pc873xx_enable_ide(void);
35 
36 #endif
37