connectionSignalSlot.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* include/asm-m68knommu/MC68VZ328.h: 'VZ328 control registers
  2. *
  3. * Copyright (c) 2000-2001 Lineo Inc. <www.lineo.com>
  4. * Copyright (c) 2000-2001 Lineo Canada Corp. <www.lineo.ca>
  5. * Copyright (C) 1999 Vladimir Gurevich <vgurevic@cisco.com>
  6. * Bare & Hare Software, Inc.
  7. * Based on include/asm-m68knommu/MC68332.h
  8. * Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>,
  9. * The Silver Hammer Group, Ltd.
  10. *
  11. * M68VZ328 fixes by Evan Stawnyczy <evan@lineo.com>
  12. * vz multiport fixes by Michael Leslie <mleslie@lineo.com>
  13. */
  14. #ifndef _MC68VZ328_H_
  15. #define _MC68VZ328_H_
  16. #define BYTE_REF(addr) (*((volatile unsigned char*)addr))
  17. #define WORD_REF(addr) (*((volatile unsigned short*)addr))
  18. #define LONG_REF(addr) (*((volatile unsigned long*)addr))
  19. #define PUT_FIELD(field, val) (((val) << field##_SHIFT) & field##_MASK)
  20. #define GET_FIELD(reg, field) (((reg) & field##_MASK) >> field##_SHIFT)
  21. /**********
  22. *
  23. * 0xFFFFF0xx -- System Control
  24. *
  25. **********/
  26. /*
  27. * System Control Register (SCR)
  28. */
  29. #define SCR_ADDR 0xfffff000
  30. #define SCR BYTE_REF(SCR_ADDR)
  31. #define SCR_WDTH8 0x01 /* 8-Bit Width Select */
  32. #define SCR_DMAP 0x04 /* Double Map */
  33. #define SCR_SO 0x08 /* Supervisor Only */
  34. #define SCR_BETEN 0x10 /* Bus-Error Time-Out Enable */
  35. #define SCR_PRV 0x20 /* Privilege Violation */
  36. #define SCR_WPV 0x40 /* Write Protect Violation */
  37. #define SCR_BETO 0x80 /* Bus-Error TimeOut */
  38. /*
  39. * Silicon ID Register (Mask Revision Register (MRR) for '328 Compatibility)
  40. */
  41. #define MRR_ADDR 0xfffff004
  42. #define MRR LONG_REF(MRR_ADDR)
  43. /**********
  44. *
  45. * 0xFFFFF1xx -- Chip-Select logic
  46. *
  47. **********/
  48. /*
  49. * Chip Select Group Base Registers
  50. */
  51. #define CSGBA_ADDR 0xfffff100
  52. #define CSGBB_ADDR 0xfffff102
  53. #define CSGBC_ADDR 0xfffff104
  54. #define CSGBD_ADDR 0xfffff106
  55. #define CSGBA WORD_REF(CSGBA_ADDR)
  56. #define CSGBB WORD_REF(CSGBB_ADDR)
  57. #define CSGBC WORD_REF(CSGBC_ADDR)