averageMemoryDefinition.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /***********************************
  2. * $Id: m68360_pram.h,v 1.1 2002/03/02 15:01:07 gerg Exp $
  3. ***********************************
  4. *
  5. ***************************************
  6. * Definitions of the parameter area RAM.
  7. * Note that different structures are overlaid
  8. * at the same offsets for the different modes
  9. * of operation.
  10. ***************************************
  11. */
  12. #ifndef __PRAM_H
  13. #define __PRAM_H
  14. /* Time slot assignment table */
  15. #define VALID_SLOT 0x8000
  16. #define WRAP_SLOT 0x4000
  17. /*****************************************************************
  18. Global Multichannel parameter RAM
  19. *****************************************************************/
  20. struct global_multi_pram {
  21. /*
  22. * Global Multichannel parameter RAM
  23. */
  24. unsigned long mcbase; /* Multichannel Base pointer */
  25. unsigned short qmcstate; /* Multichannel Controller state */
  26. unsigned short mrblr; /* Maximum Receive Buffer Length */
  27. unsigned short tx_s_ptr; /* TSTATx Pointer */
  28. unsigned short rxptr; /* Current Time slot entry in TSATRx */
  29. unsigned short grfthr; /* Global Receive frame threshold */
  30. unsigned short grfcnt; /* Global Receive Frame Count */
  31. unsigned long intbase; /* Multichannel Base address */
  32. unsigned long iintptr; /* Pointer to interrupt queue */
  33. unsigned short rx_s_ptr; /* TSTARx Pointer */
  34. unsigned short txptr; /* Current Time slot entry in TSATTx */
  35. unsigned long c_mask32; /* CRC Constant (debb20e3) */
  36. unsigned short tsatrx[32]; /* Time Slot Assignment Table Rx */
  37. unsigned short tsattx[32]; /* Time Slot Assignment Table Tx */
  38. unsigned short c_mask16; /* CRC Constant (f0b8) */
  39. };
  40. /*****************************************************************
  41. Quicc32 HDLC parameter RAM
  42. *****************************************************************/
  43. struct quicc32_pram {
  44. unsigned short tbase; /* Tx Buffer Descriptors Base Address */
  45. unsigned short chamr; /* Channel Mode Register */
  46. unsigned long tstate; /* Tx Internal State */
  47. unsigned long txintr; /* Tx Internal Data Pointer */