2  *  linux/drivers/serial/8250_hub6.c
 
   4  *  Copyright (C) 2005 Russell King.
 
   5  *  Data taken from include/asm-i386/serial.h
 
   7  * This program is free software; you can redistribute it and/or modify
 
   8  * it under the terms of the GNU General Public License version 2 as
 
   9  * published by the Free Software Foundation.
 
  11 #include <linux/module.h>
 
  12 #include <linux/init.h>
 
  13 #include <linux/serial_8250.h>
 
  15 #define HUB6(card,port)                                                 \
 
  20                 .iotype         = UPIO_HUB6,                            \
 
  21                 .flags          = UPF_BOOT_AUTOCONF,                    \
 
  22                 .hub6           = (card) << 6 | (port) << 3 | 1,        \
 
  25 static struct plat_serial8250_port hub6_data[] = {
 
  41 static struct platform_device hub6_device = {
 
  43         .id                     = PLAT8250_DEV_HUB6,
 
  45                 .platform_data  = hub6_data,
 
  49 static int __init hub6_init(void)
 
  51         return platform_device_register(&hub6_device);
 
  54 module_init(hub6_init);
 
  56 MODULE_AUTHOR("Russell King");
 
  57 MODULE_DESCRIPTION("8250 serial probe module for Hub6 cards");
 
  58 MODULE_LICENSE("GPL");