wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2002 |
| 3 | * Daniel Engström, Omicron Ceti AB <daniel@omicron.se>. |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
| 23 | |
| 24 | #ifndef __ASM_IC_ALI512X_H_ |
| 25 | #define __ASM_IC_ALI512X_H_ |
| 26 | |
| 27 | # define ALI_INDEX 0x3f0 |
| 28 | # define ALI_DATA 0x3f1 |
| 29 | |
| 30 | # define ALI_ENABLED 1 |
| 31 | # define ALI_DISABLED 0 |
| 32 | |
| 33 | # define ALI_UART1 0 |
| 34 | # define ALI_UART2 1 |
| 35 | |
| 36 | /* setup functions */ |
| 37 | void ali512x_init(void); |
| 38 | void ali512x_set_fdc(int enabled, u16 io, u8 irq, u8 dma_channel); |
| 39 | void ali512x_set_pp(int enabled, u16 io, u8 irq, u8 dma_channel); |
| 40 | void ali512x_set_uart(int enabled, int index, u16 io, u8 irq); |
| 41 | void ali512x_set_rtc(int enabled, u16 io, u8 irq); |
| 42 | void ali512x_set_kbc(int enabled, u8 kbc_irq, u8 mouse_irq); |
| 43 | void ali512x_set_cio(int enabled); |
| 44 | |
| 45 | |
| 46 | /* common I/O functions */ |
| 47 | void ali512x_cio_function(int pin, int special, int inv, int input); |
| 48 | void ali512x_cio_out(int pin, int value); |
| 49 | int ali512x_cio_in(int pin); |
| 50 | |
| 51 | /* misc features */ |
| 52 | void ali512x_set_uart2_irda(int enabled); |
| 53 | |
| 54 | #endif |