1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com> 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * SPDX-License-Identifier: GPL-2.0+ 5*4882a593Smuzhiyun */ 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun #ifndef _SMSC_LPC47M_H_ 8*4882a593Smuzhiyun #define _SMSC_LPC47M_H_ 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun /* I/O address of LPC47M */ 11*4882a593Smuzhiyun #define LPC47M_IO_PORT 0x2e 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun /* Logical device number */ 14*4882a593Smuzhiyun #define LPC47M_FDC 0 /* Floppy */ 15*4882a593Smuzhiyun #define LPC47M_SP2 2 /* Serial Port 2 */ 16*4882a593Smuzhiyun #define LPC47M_PP 3 /* Parallel Port */ 17*4882a593Smuzhiyun #define LPC47M_SP1 4 /* Serial Port 1 */ 18*4882a593Smuzhiyun #define LPC47M_KBC 7 /* Keyboard & Mouse */ 19*4882a593Smuzhiyun #define LPC47M_PME 10 /* Power Control */ 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun /** 22*4882a593Smuzhiyun * Configure the base I/O port of the specified serial device and enable the 23*4882a593Smuzhiyun * serial device. 24*4882a593Smuzhiyun * 25*4882a593Smuzhiyun * @dev: high 8 bits = super I/O port, low 8 bits = logical device number 26*4882a593Smuzhiyun * @iobase: processor I/O port address to assign to this serial device 27*4882a593Smuzhiyun * @irq: processor IRQ number to assign to this serial device 28*4882a593Smuzhiyun */ 29*4882a593Smuzhiyun void lpc47m_enable_serial(uint dev, uint iobase, uint irq); 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun /** 32*4882a593Smuzhiyun * Configure the specified keyboard controller device and enable the keyboard 33*4882a593Smuzhiyun * controller device. 34*4882a593Smuzhiyun * 35*4882a593Smuzhiyun * @dev: high 8 bits = Super I/O port, low 8 bits = logical device number 36*4882a593Smuzhiyun * @irq0: processor IRQ number to assign to keyboard 37*4882a593Smuzhiyun * @irq1: processor IRQ number to assign to mouse 38*4882a593Smuzhiyun */ 39*4882a593Smuzhiyun void lpc47m_enable_kbc(uint dev, uint irq0, uint irq1); 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun #endif /* _SMSC_LPC47M_H_ */ 42