1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2932e0c20SMorten H. Larsen 3932e0c20SMorten H. Larsen #ifndef _PC873xx_H_ 4932e0c20SMorten H. Larsen #define _PC873xx_H_ 5932e0c20SMorten H. Larsen 6932e0c20SMorten H. Larsen /* 7932e0c20SMorten H. Larsen * Control Register Values 8932e0c20SMorten H. Larsen */ 9932e0c20SMorten H. Larsen #define REG_FER 0x00 10932e0c20SMorten H. Larsen #define REG_FAR 0x01 11932e0c20SMorten H. Larsen #define REG_PTR 0x02 12932e0c20SMorten H. Larsen #define REG_FCR 0x03 13932e0c20SMorten H. Larsen #define REG_PCR 0x04 14932e0c20SMorten H. Larsen #define REG_KRR 0x05 15932e0c20SMorten H. Larsen #define REG_PMC 0x06 16932e0c20SMorten H. Larsen #define REG_TUP 0x07 17932e0c20SMorten H. Larsen #define REG_SID 0x08 18932e0c20SMorten H. Larsen #define REG_ASC 0x09 19932e0c20SMorten H. Larsen #define REG_IRC 0x0e 20932e0c20SMorten H. Larsen 21932e0c20SMorten H. Larsen /* 22932e0c20SMorten H. Larsen * Model numbers 23932e0c20SMorten H. Larsen */ 24932e0c20SMorten H. Larsen #define PC87303 0 25932e0c20SMorten H. Larsen #define PC87306 1 26932e0c20SMorten H. Larsen #define PC87312 2 27932e0c20SMorten H. Larsen #define PC87332 3 28932e0c20SMorten H. Larsen #define PC87334 4 29932e0c20SMorten H. Larsen 30932e0c20SMorten H. Larsen int pc873xx_probe(void); 31932e0c20SMorten H. Larsen unsigned int pc873xx_get_base(void); 32932e0c20SMorten H. Larsen char *pc873xx_get_model(void); 33932e0c20SMorten H. Larsen void pc873xx_enable_epp19(void); 34932e0c20SMorten H. Larsen void pc873xx_enable_ide(void); 35932e0c20SMorten H. Larsen 36932e0c20SMorten H. Larsen #endif 37