#define PCH_MINOR_NOS 1
#define CLKCFG_CAN_50MHZ 0x12000000
#define CLKCFG_CANCLK_MASK 0xFF000000
+ #define CLKCFG_UART_MASK 0xFFFFFF
+
+ /* CM-iTC */
+ #define CLKCFG_UART_48MHZ (1 << 16)
+ #define CLKCFG_BAUDDIV (2 << 20)
+ #define CLKCFG_PLL2VCO (8 << 9)
+ #define CLKCFG_UARTCLKSEL (1 << 18)
+
+ /* Macros for ML7213 */
+ #define PCI_VENDOR_ID_ROHM 0x10db
+ #define PCI_DEVICE_ID_ROHM_ML7213_PHUB 0x801A
+/* Macros for ML7213 */
+#define PCI_VENDOR_ID_ROHM 0x10db
+#define PCI_DEVICE_ID_ROHM_ML7213_PHUB 0x801A
+
/* SROM ACCESS Macro */
#define PCH_WORD_ADDR_MASK (~((1 << 2) - 1))
return 0;
}
- int
- kbd_ioctl(struct kbd_data *kbd, struct file *file,
- unsigned int cmd, unsigned long arg)
+ int kbd_ioctl(struct kbd_data *kbd, unsigned int cmd, unsigned long arg)
{
void __user *argp;
- int ct, perm;
+ unsigned int ct;
+ int perm;
argp = (void __user *)arg;
static void mct_u232_set_termios(struct tty_struct *tty,
struct usb_serial_port *port, struct ktermios *old);
static void mct_u232_break_ctl(struct tty_struct *tty, int break_state);
- static int mct_u232_tiocmget(struct tty_struct *tty, struct file *file);
- static int mct_u232_tiocmset(struct tty_struct *tty, struct file *file,
+ static int mct_u232_tiocmget(struct tty_struct *tty);
+ static int mct_u232_tiocmset(struct tty_struct *tty,
unsigned int set, unsigned int clear);
+static int mct_u232_ioctl(struct tty_struct *tty, struct file *file,
+ unsigned int cmd, unsigned long arg);
+static int mct_u232_get_icount(struct tty_struct *tty,
+ struct serial_icounter_struct *icount);
static void mct_u232_throttle(struct tty_struct *tty);
static void mct_u232_unthrottle(struct tty_struct *tty);