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

VxWorks

开发平台:

C/C++

  1. /* usrConfig.h - header file for usrConfig.c */
  2. /* Copyright 1984-2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 03t,05mar02,mas  updated to support new SM components (SPR 73371)
  7. 03s,22jan02,mas  made smObjLib.h and smNetLib.h conditional inclusions
  8. 03r,21jan02,sn   include cplusLib.h
  9. 03q,13nov01,yvp  Added include for private/excLibP.h
  10. 03p,31oct01,gls  merged in pthread code from AE
  11. 03o,04oct01,jkf  added dosFs2 headers.
  12. 03n,14oct99,jk   added conditional include for sound driver (sb16drv.h).
  13. 03m,01sep98,drm  added extern for usrWindMPInit()
  14. 03l,18jun98,cjtc including header files to prevent compilation warnings for
  15.                  WV2.0 (SPR 21494)
  16. 03s,04may98,cym  fixed end and edata for SIMNT.
  17. 03r,27jan98,cth  changed INCLUDE_INSTRUMENTATION to INCLUDE_WINDVIEW,
  18.  removed connLib.h
  19. 03p,21jan98,jmb  removed end and edata for SIMNT (only when using Visual C)
  20. 03o,02jan98,cym  removed end and edata for SIMNT.
  21. 03n,16nov97,cth  removed includes of evtTsfsSockLibP.h and evtSockLibP.h
  22. 03m,21aug97,cth  added conditional include of evtTsfsSockLibP.h
  23. 03l,18aug97,cdp  added conditional declaration of thumbSymTblAdd().
  24. 03k,07apr97,spm  added support for unit numbers
  25. 03j,24feb97,gnn  added conditional RIP includes
  26. 03i,27nov96,spm  added conditional includes for DHCP client
  27. 03h,28dec96,ms   added conditional include of tapeFs.h
  28. 03g,13dec96,elp  changed syncLib.c into symSyncLib.c
  29. 03f,30oct96,elp  Added syncLib.h.
  30. 03e,09aug96,dbt  include all posix headers if INCLUDE_POSIX_ALL is defined
  31.  (SPR #5524).
  32. 03d,26jul96,hdn  added a function declaration of usrAtaConfig().
  33. 03c,20mar96,hdn  made inclusion of pppLib.h conditional.
  34. 03b,15mar96,sgv  made inclusion of strmLib.h conditional.
  35. 03a,22jun95,caf  no longer need "_" for GHSxPPC.
  36. 02m,10oct95,dat  removed #include "bspVersion.h"
  37. 02l,27jul95,dzb  added strmLib.h inclusion.  Added usrStrmInit().
  38. 02k,25jul95,dzb  added sockLib.h and bsdSockLib.h inclusion.
  39. 02j,09may95,ms  prototype for WDB agent
  40. 02i,28mar95,kkk  changed edata and end to arrays (SPR #3917)
  41. 02h,09jan95,dzb  added prototype for PPP.
  42. 02h,22may95,yao  add "_" to edata, end for PowerPC with Green Hills tool.
  43. 02g,25oct93,hdn  added prototype for floppy and IDE driver.
  44. 02m,22feb94,elh  added function defs for snmp.
  45. 02m,25jul94,jmm  removed prototype of printConfig() (spr 3461)
  46. 02l,28jan94,dvs  changed INCLUDE_POSIX_MM_MAN to INCLUDE_POSIX_MEM
  47. 02k,12jan94,kdl  changed aio includes.
  48. 02j,10dec93,smb  added include of seqDrvP.h  for windview
  49. 02i,07dec93,dvs  added #ifdef's around POSIX includes for component releases
  50. 02h,02dec93,dvs  added includes for POSIX modules
  51. 02g,22nov93,dvs  added include of sched.h
  52. 02f,23aug93,srh  added include of private/cplusLibP.h.
  53. 02e,20oct92,pme  added vxLib.h.
  54. 02d,22sep92,rrr  added support for c++
  55. 02c,21sep92,ajm  fixes for lack of #elif support on mips
  56. 02b,20sep92,kdl  added include of private/ftpLibP.h.
  57. 02a,18sep92,jcf  major clean up.  added prototypes and #includes.
  58. 01d,04jul92,jcf  cleaned up.
  59. 01c,26may92,rrr  the tree shuffle
  60. 01b,04oct91,rrr  passed through the ansification filter
  61.   -fixed #else and #endif
  62.   -changed VOID to void
  63.   -changed copyright notice
  64. 01a,05oct90,shl created.
  65. */
  66. #ifndef __INCusrConfigh
  67. #define __INCusrConfigh
  68. #ifdef __cplusplus
  69. extern "C" {
  70. #endif
  71. #include "bootLib.h"
  72. #include "bsdSockLib.h"
  73. #include "cacheLib.h"
  74. #include "cplusLib.h"
  75. #include "ctype.h"
  76. #include "dbgLib.h"
  77. #include "dosFsLib.h"
  78. #include "cbioLib.h"
  79. #include "tarLib.h"
  80. #include "dcacheCbio.h"
  81. #include "dpartCbio.h"
  82. #include "usrFdiskPartLib.h"
  83. #include "ramDiskCbio.h"
  84. #include "envLib.h"
  85. #include "errno.h"
  86. #include "esf.h"
  87. #include "fcntl.h"
  88. #include "fioLib.h"
  89. #include "fppLib.h"
  90. #include "ftpLib.h"
  91. #include "ftpdLib.h"
  92. #include "hostLib.h"
  93. #include "ifLib.h"
  94. #include "if_bp.h"
  95. #include "if_sl.h"
  96. #include "inetLib.h"
  97. #include "intLib.h"
  98. #include "ioLib.h"
  99. #include "iosLib.h"
  100. #include "iv.h"
  101. #include "kernelLib.h"
  102. #include "loadLib.h"
  103. #include "logLib.h"
  104. #include "loginLib.h"
  105. #include "math.h"
  106. #include "memLib.h"
  107. #include "mmuLib.h"
  108. #include "msgQLib.h"
  109. #include "netDrv.h"
  110. #include "netLib.h"
  111. #include "netShow.h"
  112. #include "xdr_nfs.h"
  113. #include "nfsDrv.h"
  114. #include "nfsLib.h"
  115. #include "pipeDrv.h"
  116. #include "proxyArpLib.h"
  117. #include "qLib.h"
  118. #include "qPriBMapLib.h"
  119. #include "ramDrv.h"
  120. #include "rawFsLib.h"
  121. #include "rebootLib.h"
  122. #include "remLib.h"
  123. #include "rlogLib.h"
  124. #include "routeLib.h"
  125. #include "rpcLib.h"
  126. #include "rt11FsLib.h"
  127. #include "scsiLib.h"
  128. #include "selectLib.h"
  129. #include "semLib.h"
  130. #include "shellLib.h"
  131. #include "sockLib.h"
  132. #include "spyLib.h"
  133. #include "stdio.h"
  134. #include "string.h"
  135. #include "symSyncLib.h"
  136. #include "sysLib.h"
  137. #include "sysSymTbl.h"
  138. #include "taskHookLib.h"
  139. #include "taskLib.h"
  140. #include "taskVarLib.h"
  141. #include "telnetLib.h"
  142. #include "tftpLib.h"
  143. #include "tftpdLib.h"
  144. #include "tickLib.h"
  145. #include "time.h"
  146. #include "timers.h"
  147. #include "timexLib.h"
  148. #include "unistd.h"
  149. #include "unldLib.h"
  150. #include "usrLib.h"
  151. #include "version.h"
  152. #include "vxLib.h"
  153. #include "wdLib.h"
  154. #include "net/mbuf.h"
  155. #include "rpc/rpcGbl.h"
  156. #include "rpc/rpctypes.h"
  157. #include "rpc/xdr.h"
  158. #include "private/cplusLibP.h"
  159. #include "private/excLibP.h"
  160. #include "private/ftpLibP.h"
  161. #include "private/kernelLibP.h"
  162. #include "private/sigLibP.h"
  163. #include "private/vmLibP.h"
  164. #include "private/workQLibP.h"
  165. /* INCLUDE_SM_COMMON */
  166. #include "smLib.h"
  167. #include "smUtilLib.h"
  168. /* INCLUDE_SM_OBJ */
  169. #include "smObjLib.h"
  170. #include "smDllLib.h"
  171. #include "smMemLib.h"
  172. #include "smNameLib.h"
  173. /* INCLUDE_SM_NET */
  174. #include "smPktLib.h"
  175. #include "drv/netif/smNetLib.h"
  176. #ifdef INCLUDE_TAPEFS
  177. #include "seqIo.h"
  178. #include "tapeFsLib.h"
  179. #endif /* INCLUDE_TAPEFS */
  180. #ifdef INCLUDE_STANDALONE_SYM_TBL
  181. #include "symbol.h"
  182. #endif /* INCLUDE_STANDALONE_SYM_TBL */
  183. #ifdef INCLUDE_PPP
  184. #include "pppLib.h"
  185. #endif /* INCLUDE_PPP */
  186. #if defined(INCLUDE_STREAMS) || defined(INCLUDE_STREAMS_ALL)
  187. #include "strmLib.h"
  188. #endif /* INCLUDE_STREAMS */
  189. #ifdef INCLUDE_RIP
  190. #include "rip/ripLib.h"
  191. #endif /* INCLUDE_RIP */
  192. #ifdef INCLUDE_POSIX_ALL
  193. #include "aio.h"
  194. #include "aioSysDrv.h"
  195. #include "private/mqPxLibP.h"
  196. #include "mqPxShow.h"
  197. #include "pthread.h"
  198. #include "sched.h"
  199. #include "private/semPxLibP.h"
  200. #include "semPxShow.h"
  201. #include "sys/mman.h"
  202. #else   /* INCLUDE_POSIX_ALL */
  203. #ifdef INCLUDE_POSIX_AIO
  204. #include "aio.h"
  205. #ifdef INCLUDE_POSIX_AIO_SYSDRV
  206. #include "aioSysDrv.h"
  207. #endif  /* INCLUDE_POSIX_AIO_SYSDRV */
  208. #endif /* INCLUDE_POSIX_AIO */
  209. #ifdef INCLUDE_POSIX_MQ
  210. #include "private/mqPxLibP.h"
  211. #ifdef INCLUDE_SHOW_ROUTINES
  212. #include "mqPxShow.h"
  213. #endif  /* INCLUDE_SHOW_ROUTINES */
  214. #endif  /* INCLUDE_POSIX_MQ */
  215. #ifdef INCLUDE_POSIX_PTHREADS
  216. #include "pthread.h"
  217. #endif  /* INCLUDE_POSIX_PTHREADS */
  218. #ifdef INCLUDE_POSIX_SCHED
  219. #include "sched.h"
  220. #endif /* INCLUDE_POSIX_SCHED */
  221. #ifdef INCLUDE_POSIX_SEM
  222. #include "private/semPxLibP.h"
  223. #ifdef INCLUDE_SHOW_ROUTINES
  224. #include "semPxShow.h"
  225. #endif  /* INCLUDE_SHOW_ROUTINES */
  226. #endif /* INCLUDE_POSIX_SEM */
  227. #ifdef INCLUDE_POSIX_MEM
  228. #include "sys/mman.h"
  229. #endif  /* INCLUDE_POSIX_MEM */
  230. #endif  /* INCLUDE_POSIX_ALL */
  231. #if     defined(INCLUDE_RBUFF)
  232. #include "rBuffLib.h"
  233. #endif  /* INCLUDE_RBUFF */
  234. #if  defined(INCLUDE_WINDVIEW)
  235. #include "wvLib.h"
  236. #include "wvTmrLib.h"
  237. #include "private/seqDrvP.h"
  238. #endif  /* INCLUDE_WINDVIEW */
  239. #if defined(INCLUDE_TRIGGERING)
  240. #include "private/trgLibP.h"
  241. #endif  /* INCLUDE_TRIGGERING */
  242. #if     defined(INCLUDE_AOUT)
  243. #include "loadAoutLib.h"
  244. #else   /* coff or ecoff */
  245. #if     defined(INCLUDE_ECOFF)
  246. #include "loadEcoffLib.h"
  247. #else   /* coff */
  248. #if     defined(INCLUDE_COFF)
  249. #include "loadCoffLib.h"
  250. #else   /* elf */
  251. #if     defined(INCLUDE_ELF)
  252. #include "loadElfLib.h"
  253. #endif                                          /* mips cpp no elif */
  254. #endif
  255. #endif
  256. #endif
  257. #if defined(INCLUDE_SOUND) && defined(INCLUDE_SB16)
  258. #include "drv/sound/sb16drv.h"
  259. #endif /* INCLUDE_SOUND && INCLUDE_SB16 */
  260. /* variable declarations */
  261. #if (CPU!=SIMNT)
  262. extern char edata []; /* automatically defined by loader */
  263. extern char end []; /* automatically defined by loader */
  264. #endif
  265. /* function declarations */
  266. #if defined(__STDC__) || defined(__cplusplus)
  267. extern void usrInit (int startType);
  268. extern void usrRoot (char *pMemPoolStart, unsigned memPoolSize);
  269. extern void usrClock (void);
  270. extern STATUS usrScsiConfig (void);
  271. extern STATUS   usrFdConfig (int type, int drive, char *fileName);
  272. extern STATUS   usrIdeConfig (int drive, char *fileName);
  273. extern STATUS usrAtaConfig (int ctrl, int drive, char *fileName);
  274. extern void     devSplit (char *fullFileName, char *devName);
  275. extern STATUS usrNetInit (char *bootString);
  276. extern STATUS checkInetAddrField (char *pInetAddr, BOOL subnetMaskOK);
  277. extern STATUS loadSymTbl (char *symTblName);
  278. extern STATUS netLoadSymTbl (void);
  279. extern STATUS usrBootLineCrack (char *bootString, BOOT_PARAMS *pParams);
  280. extern void usrBootLineInit (int startType);
  281. extern STATUS usrBpInit (char * devName, int unitNum, u_long startAddr);
  282. extern void usrDemo (void);
  283. extern STATUS usrNetIfAttach (char *devName, int unitNum, char *inetAdrs);
  284. extern STATUS usrSlipInit (char * pBootDev, int unitNum, char * localAddr,
  285.                              char *peerAddr);
  286. extern STATUS usrPPPInit (char * pBootDev, int unitNum, char * localAddr,
  287.                             char *peerAddr);
  288. #ifdef  INCLUDE_SM_OBJ
  289. extern STATUS usrSmObjInit (char * bootString);
  290. #endif  /* INCLUDE_SM_OBJ */
  291. extern STATUS usrWindMPInit (char * bootString);
  292. extern void usrStartupScript (char *fileName);
  293. extern STATUS usrStrmInit (void);
  294. extern STATUS usrNetIfConfig (char *devName, int unitNum, char *inetAdrs,
  295.                                 char *inetName, int netmask);
  296. extern STATUS   usrSnmpdInit (void);
  297. extern STATUS  usrMib2Init (void);
  298. extern STATUS  usrMib2CleanUp (void);
  299. extern STATUS wdbConfig (void);
  300. #if (defined(INCLUDE_STANDALONE_SYM_TBL) && (CPU_FAMILY == ARM) && ARM_THUMB)
  301. extern STATUS   thumbSymTblAdd (SYMTAB_ID, SYMBOL *);
  302. #endif
  303. #else /* __STDC__ */
  304. extern void usrInit ();
  305. extern void usrRoot ();
  306. extern void usrClock ();
  307. extern STATUS usrScsiConfig ();
  308. extern STATUS   usrFdConfig ();
  309. extern STATUS   usrIdeConfig ();
  310. extern STATUS usrAtaConfig ();
  311. extern void     devSplit ();
  312. extern STATUS usrNetInit ();
  313. extern STATUS checkInetAddrField ();
  314. extern STATUS loadSymTbl ();
  315. extern STATUS netLoadSymTbl ();
  316. extern STATUS usrBootLineCrack ();
  317. extern void usrBootLineInit ();
  318. extern STATUS usrBpInit ();
  319. extern void usrDemo ();
  320. extern STATUS usrNetIfAttach ();
  321. extern STATUS usrSlipInit ();
  322. extern STATUS usrPPPInit ();
  323. #ifdef  INCLUDE_SM_OBJ
  324. extern STATUS usrSmObjInit ();
  325. #endif  /* INCLUDE_SM_OBJ */
  326. extern STATUS usrWindMPInit ();
  327. extern void usrStartupScript ();
  328. extern STATUS usrStrmInit ();
  329. extern STATUS usrNetIfConfig ();
  330. extern STATUS   usrSnmpdInit ();
  331. extern STATUS  usrMib2Init ();
  332. extern STATUS  usrMib2CleanUp ();
  333. extern STATUS  wdbConfig ();
  334. #if (defined(INCLUDE_STANDALONE_SYM_TBL) && (CPU_FAMILY == ARM) && ARM_THUMB)
  335. extern STATUS   thumbSymTblAdd ();
  336. #endif
  337. #endif /* __STDC__ */
  338. #ifdef __cplusplus
  339. }
  340. #endif
  341. #endif /* __INCusrConfigh */