]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/media/dvb/mantis/mantis_uart.h
Merge branch 'fix/hda' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
[mv-sheeva.git] / drivers / media / dvb / mantis / mantis_uart.h
index 61138639c366866c962d6d9cc3990eb972e9fa89..ffb62a0a5a1319c60fb353d575caa2df0b86ff16 100644 (file)
@@ -1,7 +1,7 @@
 /*
        Mantis PCI bridge driver
 
-       Copyright (C) 2005, 2006 Manu Abraham (abraham.manu@gmail.com)
+       Copyright (C) Manu Abraham (abraham.manu@gmail.com)
 
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
 #ifndef __MANTIS_UART_H
 #define __MANTIS_UART_H
 
+#define MANTIS_UART_CTL                        0xe0
+#define MANTIS_UART_RXINT              (1 << 4)
+#define MANTIS_UART_RXFLUSH            (1 << 2)
+
+#define MANTIS_UART_RXD                        0xe8
+#define MANTIS_UART_BAUD               0xec
+
+#define MANTIS_UART_STAT               0xf0
+#define MANTIS_UART_RXFIFO_DATA                (1 << 7)
+#define MANTIS_UART_RXFIFO_EMPTY       (1 << 6)
+#define MANTIS_UART_RXFIFO_FULL                (1 << 3)
+#define MANTIS_UART_FRAME_ERR          (1 << 2)
+#define MANTIS_UART_PARITY_ERR         (1 << 1)
+#define MANTIS_UART_RXTHRESH_INT       (1 << 0)
+
 enum mantis_baud {
        MANTIS_BAUD_9600        = 0,
        MANTIS_BAUD_19200,
@@ -32,7 +47,12 @@ enum mantis_baud {
 enum mantis_parity {
        MANTIS_PARITY_NONE      = 0,
        MANTIS_PARITY_EVEN,
-       MANTIS_PARITY_ODD
+       MANTIS_PARITY_ODD,
 };
 
-#endif // __MANTIS_UART_H
+struct mantis_pci;
+
+extern int mantis_uart_init(struct mantis_pci *mantis);
+extern void mantis_uart_exit(struct mantis_pci *mantis);
+
+#endif /* __MANTIS_UART_H */