]>
git.ipfire.org Git - people/ms/u-boot.git/blob - include/ali512x.h
3 * Daniel Engström, Omicron Ceti AB <daniel@omicron.se>.
5 * See file CREDITS for list of people who contributed to this
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.
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.
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,
24 #ifndef __ASM_IC_ALI512X_H_
25 #define __ASM_IC_ALI512X_H_
27 # define ALI_INDEX 0x3f0
28 # define ALI_DATA 0x3f1
30 # define ALI_ENABLED 1
31 # define ALI_DISABLED 0
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
);
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
);
52 void ali512x_set_uart2_irda(int enabled
);