smsc_lpc47m.h 1.2 KB

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