8250_boca.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2005 Russell King.
  4. * Data taken from include/asm-i386/serial.h
  5. */
  6. #include <linux/module.h>
  7. #include <linux/init.h>
  8. #include <linux/serial_8250.h>
  9. #include "8250.h"
  10. static struct plat_serial8250_port boca_data[] = {
  11. SERIAL8250_PORT(0x100, 12),
  12. SERIAL8250_PORT(0x108, 12),
  13. SERIAL8250_PORT(0x110, 12),
  14. SERIAL8250_PORT(0x118, 12),
  15. SERIAL8250_PORT(0x120, 12),
  16. SERIAL8250_PORT(0x128, 12),
  17. SERIAL8250_PORT(0x130, 12),
  18. SERIAL8250_PORT(0x138, 12),
  19. SERIAL8250_PORT(0x140, 12),
  20. SERIAL8250_PORT(0x148, 12),
  21. SERIAL8250_PORT(0x150, 12),
  22. SERIAL8250_PORT(0x158, 12),
  23. SERIAL8250_PORT(0x160, 12),
  24. SERIAL8250_PORT(0x168, 12),
  25. SERIAL8250_PORT(0x170, 12),
  26. SERIAL8250_PORT(0x178, 12),
  27. { },
  28. };
  29. static struct platform_device boca_device = {
  30. .name = "serial8250",
  31. .id = PLAT8250_DEV_BOCA,
  32. .dev = {
  33. .platform_data = boca_data,
  34. },
  35. };
  36. static int __init boca_init(void)
  37. {
  38. return platform_device_register(&boca_device);
  39. }
  40. module_init(boca_init);
  41. MODULE_AUTHOR("Russell King");
  42. MODULE_DESCRIPTION("8250 serial probe module for Boca cards");
  43. MODULE_LICENSE("GPL");