ali512x.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. #ifndef __ASM_IC_ALI512X_H_
  24. #define __ASM_IC_ALI512X_H_
  25. # define ALI_INDEX 0x3f0
  26. # define ALI_DATA 0x3f1
  27. # define ALI_ENABLED 1
  28. # define ALI_DISABLED 0
  29. # define ALI_UART1 0
  30. # define ALI_UART2 1
  31. /* setup functions */
  32. void ali512x_init(void);
  33. void ali512x_set_fdc(int enabled, u16 io, u8 irq, u8 dma_channel);
  34. void ali512x_set_pp(int enabled, u16 io, u8 irq, u8 dma_channel);
  35. void ali512x_set_uart(int enabled, int index, u16 io, u8 irq);
  36. void ali512x_set_rtc(int enabled, u16 io, u8 irq);
  37. void ali512x_set_kbc(int enabled, u8 kbc_irq, u8 mouse_irq);
  38. void ali512x_set_cio(int enabled);
  39. /* common I/O functions */
  40. void ali512x_cio_function(int pin, int special, int inv, int input);
  41. void ali512x_cio_out(int pin, int value);
  42. int ali512x_cio_in(int pin);
  43. /* misc features */
  44. void ali512x_set_uart2_irda(int enabled);
  45. #endif