]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/ali512x.h
x86: Enable generic board support
[people/ms/u-boot.git] / include / ali512x.h
CommitLineData
2262cfee
WD
1/*
2 * (C) Copyright 2002
fa82f871 3 * Daniel Engström, Omicron Ceti AB <daniel@omicron.se>.
2262cfee
WD
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 */
37void ali512x_init(void);
38void ali512x_set_fdc(int enabled, u16 io, u8 irq, u8 dma_channel);
39void ali512x_set_pp(int enabled, u16 io, u8 irq, u8 dma_channel);
40void ali512x_set_uart(int enabled, int index, u16 io, u8 irq);
41void ali512x_set_rtc(int enabled, u16 io, u8 irq);
42void ali512x_set_kbc(int enabled, u8 kbc_irq, u8 mouse_irq);
43void ali512x_set_cio(int enabled);
44
45
46/* common I/O functions */
47void ali512x_cio_function(int pin, int special, int inv, int input);
48void ali512x_cio_out(int pin, int value);
49int ali512x_cio_in(int pin);
50
51/* misc features */
52void ali512x_set_uart2_irda(int enabled);
53
54#endif