pip405.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * (C) Copyright 2001
  3. * Denis Peter, MPL AG Switzerland, d.peter@mpl.ch
  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. /****************************************************************************
  25. * Global routines used for PIP405
  26. *****************************************************************************/
  27. extern int mem_test(unsigned long start, unsigned long ramsize,int mode);
  28. void print_pip405_info(void);
  29. void user_led0(unsigned char on);
  30. void user_led1(unsigned char on);
  31. #define PLD_BASE_ADDRESS CFG_ISA_IO_BASE_ADDRESS + 0x800
  32. #define PLD_PART_REG PLD_BASE_ADDRESS + 0
  33. #define PLD_VERS_REG PLD_BASE_ADDRESS + 1
  34. #define PLD_BOARD_CFG_REG PLD_BASE_ADDRESS + 2
  35. #define PLD_LED_USER_REG PLD_BASE_ADDRESS + 3
  36. #define PLD_SYS_MAN_REG PLD_BASE_ADDRESS + 4
  37. #define PLD_FLASH_COM_REG PLD_BASE_ADDRESS + 5
  38. #define PLD_CAN_REG PLD_BASE_ADDRESS + 6
  39. #define PLD_SER_PWR_REG PLD_BASE_ADDRESS + 7
  40. #define PLD_COM_PWR_REG PLD_BASE_ADDRESS + 8
  41. #define PLD_NIC_VGA_REG PLD_BASE_ADDRESS + 9
  42. #define PLD_SCSI_RST_REG PLD_BASE_ADDRESS + 0xA
  43. #define PIIX4_VENDOR_ID 0x8086
  44. #define PIIX4_IDE_DEV_ID 0x7111