m68360Sio.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* m68360Sio.h - SCC UART device structrue */
  2. /* Copyright 1994 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01b,15jun95,ms   updated for new driver.
  7. 01a,22may95,myz  written
  8. */
  9. #ifndef __INCm68360Sioh
  10. #define __INCm68360Sioh
  11. #include "drv/multi/m68360.h"
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /* device and channel structures */
  16. typedef struct          
  17.     {
  18.     /* always goes first */
  19.     SIO_DRV_FUNCS *     pDrvFuncs;      /* driver functions */
  20.     /* callbacks */
  21.     STATUS      (*getTxChar) ();
  22.     STATUS      (*putRcvChar) ();
  23.     void *      getTxArg;
  24.     void *      putRcvArg;
  25.     UINT16              int_vec;        /* interrupt vector number */
  26.     UINT16              channelMode;    /* SIO_MODE                */
  27.     int                 baudRate;        
  28.     int clockRate; /* CPU clock frequency (Hz) */
  29.     int  bgrNum; /* number of BRG being used */
  30.     UINT32 * pBaud; /* BRG registers */
  31.     UINT32 regBase; /* register/DPR base address */
  32.     SCC_DEV uart; /* UART SCC device */
  33.     } M68360_CHAN;
  34. /* function declarations */
  35. #if defined(__STDC__) || defined(__cplusplus)
  36. extern void m68360Int (M68360_CHAN *pDev);
  37. extern void m68360DevInit (M68360_CHAN *pDev);
  38. #else /* __STDC__ */
  39. extern void m68360Int ();
  40. extern void m68360DevInit ();
  41. #endif /* __STDC__ */
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif /* __INCm68360Sioh */